Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • I see no problem (except it is in dutch, looks weird to me 🙂 ?)

    opened braces are not closed…
    is that it ?

    Just one more thing :
    you can’t suppress that way the “commentstatusdiv” fielset if you want the comments to default to “opened”.
    What I did is enclose that fieldset in a div with style=”display:none”.
    Before : <?php if ($user_level < 3) echo '<div style="display:none;">'; ?>
    After : <?php if ($user_level < 3) echo '</div>'; ?>

    I hope this helps… It works for me but I’m just a beginner to php…

    You can do something based on user level to hide all the fields you don’t want to appear for these users by adding a few lines to “edit_form_advanced.php”.
    I did this : I added <?php if ($user_level > 2) : ?> before all the fieldsets (or anything you don’t want to display) that were to not show. And <?php endif; ?> after.
    For example to hide the password field :

    <?php if ($user_level > 2) : ?>
    <fieldset id="passworddiv" class="dbx-box">
    <h3 class="dbx-handle"><?php _e('Password-Protect Post') ?></h3>
    <div class="dbx-content"><input name="post_password" type="text" size="13" id="post_password" value="<?php echo $post->post_password ?>" /></div>
    </fieldset>
    <?php endif; ?>

Viewing 4 replies - 1 through 4 (of 4 total)