damj
Forum Replies Created
-
Forum: Plugins
In reply to: Registration form looks really weird, can someone help?I see no problem (except it is in dutch, looks weird to me 🙂 ?)
Forum: Plugins
In reply to: “if” to hide this plugin when deactivated?opened braces are not closed…
is that it ?Forum: Plugins
In reply to: custom ‘write post’ pageJust 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…
Forum: Plugins
In reply to: custom ‘write post’ pageYou 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; ?>