Its good to see when people stumble or digg your posts. But at times people may want to stumble your post after reading but they might forget at the end leading less stumble juice for your well written article. Doesn’t that happen?
Yeah let me show you a simple trick on how to remind your visitors to stumble your post. This trick I was basically inspired by websites that spread spam but wont it be good to have a simple dialog box reminding your users to stumble your article if they liked it ?
This seems to be cool in one hand but the other way some people may find it frustrating. Anyhow sharing is what I do so here is our code.
Just put this code at the end of your page and see it working…
<?php
if( !empty( $_SERVER['HTTP_REFERER'] ) ) {
$data = parse_url( $_SERVER['HTTP_REFERER' ] );
//check the referrer
if( strpos( strtolower( $data['host'] ), 'stumbleupon' ) != false ) {
?>
<script>
function mypop() {
// Redirect to stumbleupon
window.location = 'http://www.stumbleupon.com/submit?url='+document.location+'&title='+document.title;
// Ask the visitor
return "We would love if you can give this page a thumbs up.rnPlease click cancel to be redirected to the rating page or press okay to leave this page.";
}
window.onbeforeunload = mypop;
</script>
<?php
}
}
Related posts:
- The Anatomy Of StumbleUpon – How to drive more traffic with StumbleUpon
- 301 Redirect: The Search Engine Friendly Way To
- How to Change The Default Location Of My Documents Folder in Windows XP
- Serious Security Issues with Google Chrome Exploit
- Over 10+ Keyboard Shortcuts for Windows XP (Some You Probably Might Not Know)

It‘s quite in here! Why not leave a response?