NOTE: This mod will be available with Pligg Beta 6, which I expect to have some type of version prepared by this weekend. You can not use this mod without the files that will be included with the next release, this is only for demonstrating purposes right now.
External Vote Button (EVB)
This vote button will allow you to create a vote link to an article automatically. The vote url is directed to the page the button appears on, so you will want to make sure that it appears only in the individual articles, not the archives. Once the first vote is cast it will change the "cast vote" image to "vote cast" and redirect clicks to the pligg article url. Technically you could just insert the html/php into your site's template so the vote button appears on every page and each page would be counted as seperate submissions. I'm not 100% sure if this is possible, but I believe that it could work this way.
Images used:
How to add an External Vote Button:
Add this code to a HTML enabled blog post or article where you want the vote button to appear:Replace domain.com with your own domain where a Pligg install exists. If you wish to test a domain, try scadart.com and it should work.HTML Code:<script type="text/javascript" src="http://domain.com/api/check_url.js"></script>
For PHP pages:See anexample of a PHP vote image here.
or if you want to use the vote button only on your own domain...PHP Code:<?php
include('../config.php');
echo '<script type="text/javascript" src="http://domain.com/api/check_url.js.php"></script>';
?>
PHP Code:<?php
include('../config.php');
echo '<script type="text/javascript" src="http://'.get_server_name().'/api/check_url.js.php"></script>';
?>
Download the PHP example here. Make sure to rename it from phpvote.phps to phpvote.php






looks sweet dude!
Linear Mode




