steelfrog
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: User-role based conditions without depracated $user_level?This is an old post, but it keeps coming up in search results so I feel I should expand on my solution.
You can check user’s permissions via current_user_can(‘var’). You can check the Roles page for variables.
For example, if you want to check whether the current user is on a page or post, and has the rights to edit it and return a link to edit the post in a list:
<?php if (is_single() or is_page() && current_user_can('edit_post')) { edit_post_link('Edit post', '<li>', '</li>') ;} ?>
Forum: Fixing WordPress
In reply to: Checking value of meta data and returning post differently styledUgh. You were right, that’s all that was missing. Thanks a bunch!
Forum: Fixing WordPress
In reply to: Post meta – returning the ‘class’ keyThat did it. Can’t believe it was that simple. Thanks!
Forum: Themes and Templates
In reply to: fatal error: call to undefined functionPHP is looking for a function called “get_mystique_option”. I’ve never working with other themes than the ones I make, but I’d assume this function should be found within the theme’s functions file.
Alternatively, you could remove the call from your header. I’m not sure what it’s used for or how important it is to the theme’s function.
Look for something like this:
<?php get_mystique_option() ?>
Forum: Themes and Templates
In reply to: Customized ‘edit comment’ link?Sorry it took so long. I assumed no one else had replied to this post. Your solution worked perfectly, nebulus. Thank you! Post marked as resolved.
Forum: Fixing WordPress
In reply to: Custom comment_reply_link() ?Up.
Forum: Fixing WordPress
In reply to: Custom comment_reply_link() ?Up.
Forum: Fixing WordPress
In reply to: Login PageYup. Here’s an over-simplified form to give you an idea.
<form action="<?php echo wp_login_url(get_permalink()); ?>" method="post"> <fieldset> <label for="log">Username</label> <input type="text" id="log" name="log" /> <label for="pwd">Password</label> <input type="password" id="pwd" name="pwd" /> <input type="submit" /> </fieldset> </form>
Forum: Fixing WordPress
In reply to: How to make comment responses visible only to adminTry this? To be honest, I’ve no idea if this is deprecated or not but it might be worth a shot.
<?php if ( current_user_can('manage_options')) { ?> Comments go here. <?php } ?>
Forum: Fixing WordPress
In reply to: How to make comment responses visible only to adminYou could wrap your comment display inside a conditional tag that checks your user level. If your user level is above X (whatever you need it to be), then the comments are displayed to you.
Unfortunately, user levels are deprecated and I’m not sure what they’ve been replaced with.
Forum: Themes and Templates
In reply to: Am I allowed to Modify a template?gopanthers, I would get in touch with the theme’s developer and ask. Some people would welcome that, others wouldn’t.
Forum: Themes and Templates
In reply to: Uploaded a New Theme to WordPress. What Next?What are you trying to do, exactly? It’s a little hard for me to understand what you’re asking without seeing it, or having a detailed explanation of what you’re trying to achieve.
Forum: Themes and Templates
In reply to: help to install a theme in my WebsiteIf you re-name the theme’s CSS file, then it will give you an error that the selected theme does not exist, which is to be expected. Just return to your WordPress admin section and re-select the theme with the new name.
Forum: Themes and Templates
In reply to: [mystique] Theme doesn’t display correctly in IE7/8This usually occurs when your left column expands wider than it’s supposed to. In most cases, this will happen when you set an element to the full width of your column and add padding or a border. Firefox and most other browsers will stretch the container to make everything fit, but IE will simply drop the other column.
Forum: Themes and Templates
In reply to: History NavigationThis is called a ‘bread crumb’ navigation bar. There are a handful of plugins you can use for this purpose, or you can customize your own if you’re comfortable with it.