lilandzoom
Forum Replies Created
-
Forum: Plugins
In reply to: [Adminimize] Hide .update-nag?Thank you for that Rocket Pixels, I figured it out
Forum: Plugins
In reply to: [Adminimize] Hide .update-nag?it doesn’t work for me…
Can you write the exact syntax? I’m using WP 3.6.1Forum: Plugins
In reply to: [WP-PostRatings] Doesn't allow muli ratingsURL: secretdraft.com
Forum: Plugins
In reply to: [Starbox - the Author Box for Humans] Author Image not showing in Author InfoNot sure if it’s relevant to this issue, but after installing the StarBox plugin I lost all the users images.
I uploaded an image angain, but when I look at the users.php page I don’t see it. I do see it on the blog post now.
Any ideas?URL: secretdraft.com
Forum: Plugins
In reply to: [WP-PostViews] Doesn't work at all, what am I missing?OK I figured it out, the index.php page did nothing, I placed it on the single.php page it it works!
Though, I see it’s not counting according to uniques. Can that be done?Forum: Plugins
In reply to: [WP-PostViews] Doesn't work at all, what am I missing?It does, still doesn’t work..
Forum: Plugins
In reply to: [Adminimize] Hide Options When Creating PostsThank you JosiahW!
It works great
As for the second question, I figured it out. I added the following script to the functions.php file:
function td_removeList(){
global $current_user;
if( current_user_can(‘edit_posts’) AND !current_user_can(‘edit_users’) ){
?>
<script type=”text/javascript”>
jQuery(function(){
jQuery(“li.all”).remove();
jQuery(“li.publish”).remove();
jQuery(“li.trash”).remove();
jQuery(“li.future”).remove();
jQuery(“li.pending”).remove();
jQuery(“li.draft”).remove();
});
</script>
<?php
}
}
add_action(‘admin_footer’, ‘td_removeList’);
add_action(‘admin_head’, ‘td_hideMenu’, 1);
function td_hideMenu() {
global $current_user, $parent_file;
if( current_user_can(‘edit_posts’) AND !current_user_can(‘edit_users’) ){
remove_menu_page(‘tools.php’);
remove_menu_page(‘edit-comments.php’);
remove_menu_page(‘upload.php’);
remove_submenu_page(‘upload.php’, ‘media-new.php’);
if(isset($_REQUEST[‘post_status’])) $status = $_REQUEST[‘post_status’]; else $status = “”;
if(isset($_REQUEST[‘all_posts’])) $all = $_REQUEST[‘all_posts’]; else $all = “”;
if ( $parent_file == ‘edit.php’ AND $status<>”all” AND ( $status<>”” OR $all<>”” ) ) {
if (headers_sent()) {
echo ‘<meta http-equiv=”refresh” content=”0;url=’.admin_url(‘edit.php’).'”>’;
echo ‘<script type=”text/javascript”>document.location.href=”‘.admin_url(‘edit.php’).'”</script>’; }
else { wp_redirect(admin_url(‘edit.php’)); exit(); }
} //redirect
}//select
}Forum: Plugins
In reply to: [Adminimize] Hide Options When Creating PostsHi JosiahW,
I have the same problem, please explain how you solved it?
Also, I want authors to be able to see their posts only. How can I hide the “All | Published | Trash” options at the edit.php page?Thanks!