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.

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:

<script type="text/javascript" src="http://domain.com/api/check_url.js"></script>

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.

For PHP pages:

<?php

include('../config.php');
echo '<script type="text/javascript" src="http://domain.com/api/check_url.js.php"></script>';

?>

or if you want to use the vote button only on your own domain...

<?php

include('../config.php');
echo '<script type="text/javascript" src="http://'.get_server_name().'/api/check_url.js.php"></script>';

?>

See an example of a PHP vote image here.
Download the PHP example here. Make sure to rename it from phpvote.phps to phpvote.php