Deceptively
small, incredibly powerful, this hybrid PHP & JavaScript
script will make adding valid, working StumbleUpon.com review
links to your pages so simple that you will wonder how you
got along without it. Rather than having to modify your
blog, or hand generate links for your website, this tiny
wonder intelligently uses PHP to get the URL of your page,
then it uses client side JavaScript to add the title of
the page to your review URL, replacing all spaces with +
signs, just like StumbleUpon.com wants.
It's
not without a little work to start with though...
1.
You have to modify the script so it knows your domain
name
2.
You have to tell the script where your link image is.
(Make your own image, or steal the one from my link.)
3.
You have to save the script to your website as stumbleme.php
4.
And finally you have to make your php link includer. Which
looks kind of like:
<?php include('C:/webroot/pub/stumbleme.php') ; ?>
(seriously,
not hard, there are hand-holding instructions in the documentation.)
But
once you are done following the instructions, you can now
drop a page review link anywhere you like, simply by using
that php include bit mentioned in 4.
BONUS!
You can add this to your blog page (not article) template
(like on my blog)
or to the server side menu includes
(look left), and each page will get it's own stumble upon
review link, complete with the proper url, and title of
the page. A real lazy man's treat!
This
script is © Copyright 2008, under the GNU GPL Version
2 by Mike H. (me) DBA as Zaphod of Zaphod's Deepest Thought.
This means if you modify it, you still must give me credit,
and leave the copyright notices intact, but of course it
is free to use forever!
Download
StumbleMe! by clicking on this link!
Hope
you enjoy it,
Zap!
P.S.
Nothing is gained without a LITTLE work, so read the documentation
in the .zip . And remember, your pages must be .php for
this to work. :)