kk Star Ratings WordPress plugin customization

i needed a voting system for a client’s wordpress website so i installed this plugin: kk Star Ratings

the standard version is great but has very few options. the quickest way to achieve what the client wanted was to customize the plugin a little bit

show voting only for logged in users

i had to replace the voting box with a message inviting the user to login/signup

i edited the file /wp-content/plugins/kk-star-ratings/index.php

search for this line:

and replace it with:

of course you can include HTML code between ‘ ‘ to further edit the message: include a link to login page, change the appearance (float, background)

hide voting on some posts

with kk Star Ratings you can choose where you want the ratings to be placed (homepage, archives, posts, pages, categories) but you can’t hide it from some posts (custom posts in my case)

so i edited the file /wp-content/plugins/kk-star-ratings/index.php

search for this line:

and replace it with:

where 101,151,1001 from the array are the ID’s of the posts

WordPress Multisite: disable site delete

Once in a while WordPress Multisite admins may have to face the fact that blogs are not forever :)) Some authors may choose to delete their sites from the network.

Once they use the option to delete from the Tools menu they will receive a message like this one:

You recently clicked the ‘Delete Site’ link on your site and filled in a form on that page.

If you want to disable this option and keep your bloggers captive :)) here you go: Disable Site Delete – a plugin that does just what the title says.

From now on your bloggers will have to ask you to delete their blogs as super-admins will be the only ones being able to do it.