in PHP

Display Message To Stumbleupon Visitors In PHP

Stumbleupon is a great way of getting lots of visitors to your site. All you have to do is submit your pages to Stumbleupon and when people stumble in their chosen topic they will find your page. The more votes your pages get the more likely they are going to be seen. If all you need is more people to vote for your pages then why not ask people to vote for your pages? All you have to do is add the following snippet to your page and you can display a custom message to Stumbleupon users asking for them to vote for your page.

<?php if( strpos($_SERVER[HTTP_REFERER], "" ) == true ): ?>
    <div class="welcome-stumbleupon">
        <p>Hello StumbleUpon user, please vote for this page by clicking the thumbs up picture in the toolbar.</p>
<?php endif; ?>

Upgrade to access all content on Paulund

Members unlock all tutorials and snippets

Access to all downloadable content

Access to code examples before others

Sign Up Now

Already a member? Login here

Subscribe To The Weekly Newsletter

Get weekly updates to your email