Manually installed plugin doesn’t show up

Ok, it turns out that on ubuntu/debian, the wordpress files are in 3 places on the filesystem – /var/lib/wordpress, /srv/www/wp-content and /usr/share/wordpress. I had to do this for all three: sudo chown -R www-data . sudo chgrp -R www-data . sudo find . -type f -exec chmod 644 {} \; sudo find . -type d … Read more

wordpress plugin that show my reputation (points) in any stackexchange project in my wordpress blogs

I don’t know of a plugin but the easiest way is to just embed your stack flair: https://stackoverflow.com/users/flair For a more detialed solution I recommend you just fetch the Stack API using the the WordPress HTTP API, the docs are here: http://codex.wordpress.org/HTTP_API The Stack API is very easy to work with and returns JSON. For … Read more

Events plugin for theater (event = performance of a production)

Note upfront: This is no answer, just a list of things to consider: Lets say you got one event called “Hamlet”. Then it gets played every Friday. Times: 16:30-18:30 19:00-21:00 12:00-14:30 (kids performance with a break in between so it’s 30min longer) Then there’s the other problem is that it could be played for three … Read more

Removing WordPress Plugin Menu Item for a specific user

Here is the code you need: global $current_user; get_currentuserinfo(); if ( $current_user->user_login === ‘brian’ ) remove_action( ‘admin_menu’, ‘wpcf7_admin_menu’, 9 ); Or if you want to retain your own code, use this: function remove_menus() { global $menu; global $current_user; get_currentuserinfo(); if($current_user->user_login == ‘brian’) { $restricted = array(__(‘Media’), __(‘Links’), __(‘Pages’), __(‘Comments’), __(‘Appearance’), __(‘Plugins’), __(‘Users’), __(‘Tools’), __(‘Settings’), __(‘Contact’) … Read more