Zoinks! Graphics
Forum Replies Created
-
Forum: Plugins
In reply to: Members only page?Wow, I was looking into the Members Only plugin, but putting that code into my single.php and page.php basically solves getting that to work! Great suggestion!!
Forum: Fixing WordPress
In reply to: 2.5.1 – edit timestamp doesn’t workJust got it to “work” by editing out “hide-if-js” in
<div id='timestampdiv' class='hide-if-js'>
in /wp-admin/edit-form-advanced.phpThis is a kludge that *always* displays the Edit Timestamp for posts, but better than nothing!
Forum: Fixing WordPress
In reply to: 2.5.1 – edit timestamp doesn’t workAdd me to the list of people for whom Edit Timestamp stopped working in WP 2.5.1. Surprised no moderators have chimed in on this yet!
Forum: Fixing WordPress
In reply to: New users (author) can post only in specific categoryI’ve been looking for the same thing. There used to be a plugin called limitcats, but that’s for older versions of WP (pre-2.5). Let everyone know if/when you find a solution!
Forum: Plugins
In reply to: How to limit author to a specific category?This is exactly what I’m looking for. Is there a version of limitcats (or comparable plugin) for WP 2.5?
Forum: Fixing WordPress
In reply to: Updating to work with PHP5 interpreter?Can one of the developers please answer this question? I installed 2.3.1 on a box with PHP4 and it works fine. The host wants to upgrade my client’s site to a box with PHP5 and wants to know if it’ll still work. My search of this forum hasn’t found any answers yet….
Forum: Themes and Templates
In reply to: How do you display category descriptions?Why the code to include category descriptions on archive pages isn’t part of the default theme I’ll never know… Each time I update WordPress I have to put this back in! :/
Forum: Fixing WordPress
In reply to: users.php modsIf there’s only one Admin (with userID #1) try this….
In /wp-admin/menu.php add this code at the top:
$SuperAdmin = ''; if($user_ID==1) { $SuperAdmin = 'Y'; }Then you can use “if($SuperAdmin) { include only what SuperAdmin can do }” throughout the wp-admin files and menus.
For the /wp-admin/users.php limitation you requested, I just disable all display of Administrators by adding this code after <table class=”widefat”>:
<? foreach($roleclasses as $role => $roleclass) { uksort($roleclass, "strnatcasecmp"); $NoShow = ''; if($wp_roles->role_names[$role]=='Administrator') { $NoShow = 'Y'; } if(!$NoShow) { echo '<tbody><tr>'; if(!empty($role)) : echo '<th colspan="7"><h3>' . $wp_roles->role_names[$role] . $NoShow . '</h3></th>'; else : echo '<th colspan="7"><h3><em>' . 'No role for this blog</em></h3></th>'; endif; echo '</tr><tr class="thead">' . '<th>ID</th>' . '<th>Username</th>' . '<th>Name</th>' . '<th>E-mail</th>' . '<th>Website</th>' . '<th colspan="2" style="text-align: center">Actions</th>' . '</tr></tbody>' . '<tbody id="role-' . $role . '">'; $style = ''; foreach((array) $roleclass as $user_object) { $style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"'; echo user_row($user_object, $style); } echo '</tbody>'; } } echo '</table>';Hope this helps!
Hi Rita: Does this work for you?
$thisauthor = ''; if (!current_user_can('edit_others_posts')) { $thisauthor = '&author=' . $user_ID; } wp('what_to_show=posts$post_status_q&posts_per_page=15&order=$order&orderby=$orderby' . $thisauthor);(changed the wp call back to “default” with MichaelH’s $thisauthor tacked on)
Forum: Developing with WordPress
In reply to: How to get role of current user?Awesome code! I incorporated it into my /wp-admin/edit-form-advanced.php to achieve the “TODO: ROLE SYSTEM” ie….
if($role=='administrator' || $role=='editor') { $HideStuff = ' style="display:none;"'; } else { $HideStuff = ''; }Then I drop $HideStuff into where I don’t want non-admins and non-editors to have access to.
Forum: Fixing WordPress
In reply to: “Not Found” after my domain movedI had a similar issue using the themed-logreg plugin with WP 2.3.1. After reading this thread, I removed it, and was able to log back in. Weird thing is that it *was* working for quite awhile, then just stopped working….
Forum: Fixing WordPress
In reply to: Theme makes 1 space 3 spacesJust checked your example and looks like you solved it. How?
Forum: Plugins
In reply to: Sort Posts on Category Page AlphabeticallyAfter searching the forums, here it is…
Forum: Plugins
In reply to: Sort Posts on Category Page AlphabeticallyIf it’s such a great plugin, a link would be nice…. 😉