Vote For Post Plugin v 1.0 - WordPress Plugin


Vote For Post Plugin is my new WordPress plugin, for voting your posts. Your visitors can vote for your post, from 1 to 5. You can set description for grades, from poor to superb, in WordPress options.

One visitor can vote only one time, for one post in your blog. This plugin is very easy for use.

Installation

  1. Copy VoteForPost.php to Plugin folder in WordPress
  2. Activate this plugin in WordPress Plugins
  3. Add this code
    1. <?php VotePlugin($p);  ?><pre> in index.php file in you Theme files, after post text</li>
    2.         <li>Add this code <pre lang="php"><? if (!isset($_SESSION[‘glasao’])) {
    3.   session_register("glasao");
    4.   $GLOBALS[‘glasao’][0] = -1;
    5. }?>

    in index.php before any code.

  4. In WordPress admin, in Options, you can see new tab “Vote For Post Plugin”, there you can set grade descriptions
  5. Plugin is installed and ready for using

When you are log-in as admin you can inly see Results if there is votes, and only visitors can vote.

Now u can add this code in style.css file, to make your vote table good looking.

  1.  
  2. .glasanje {
  3.         font-family: Verdana, Arial, Helvetica, sans-serif;
  4.         font-size: 9px;
  5.         font-weight: normal;
  6.         background-color: #C4D7FF;
  7. }
  8. .naslov_glasanja {
  9.  
  10.         font-family: Verdana, Arial, Helvetica, sans-serif;
  11.         font-size: 12px;
  12.         font-weight: bold;
  13.         color: #000000;
  14. }
  15.  

.naslov_glasanja is for Table headline, background of “Vote for this plugin”, and .glasanje is for background of radiobuttons. You can change this CSS in your way.

For next version, i am planing, to you can set headline title and submut button value your own.

Give me some comments, new ideas and critics please, and if u see some bug inform me! Afcourse download this plugin and try it in your own blog!

Latest changes and new versions:

Version 1.1 is hire. There is a bug with table_prefiks, and everyone who don’t have prefiks ‘wp_’ this plugin make problems. Now this is solved, and u can test new fresh plugin version!

LošeMože da prođeSolidnoOkFenomenalno (321 votes, average: 3.99 out of 5)
Loading ... Loading ...