Help - Search - Members - Calendar
Full Version: Preventing "The Digg Effect"
Pixel2Life Forum > Member Tutorials and Requests > Forum Tutorial Archives > Miscellaneous Tutorials
Joablen
The Digg Effect is what happens to your blog/site when you get dugg to first page, that's what Stephen says it is, Here

an easy solution would be something like this:

CODE
<?php
if (!strpos($_SERVER['HTTP_REFERER'], 'digg.com'))
{
    echo 'ADS CODE';
}
?>



but sometimes users that come from digg take a look at the rest of your site and keep not clicking on your ads so the code above wouldn't be useful and we would have to make something like this:

At the beggining of your code put this:
CODE
<?php
if (strpos($_SERVER['HTTP_REFERER'], 'digg.com'))
{
    $expire = 24 * 60 * 60; //One day
    setcookie('digg_user', true, $expire);
}
?>


and where your ads are put this:
CODE
<?php
if (!(isset($_COOKIE['digg_user']) && $_COOKIE['digg_user'] == true))
{
    echo 'ADS CODE';
}
?>
Donna
blink.gif you put this on digg
Joablen
yes... sry if theres any problem with that... i just wanted to give an answer for an other digg thing and i had no place to post it... so i thought maybe if the post goted some popularity why not give some more visits to pixel2life.com after all i've learned thats to you guys... tongue.gif
dEcade
It's just kind of weird adding a thing that’s bad about the site to the site. That’s like someone posting a link to an article about something bad about P2L on the P2L forums. Although we all know that would and could never happen bigwink.gif

I also found the digg quite easily - http://digg.com/search?s=Preventing+the+%22Digg+Effect%22

dEcade
Joablen
QUOTE(dEcade @ Sep 17 2006, 10:50 AM) *
It's just kind of weird adding a thing that’s bad about the site to the site. That’s like someone posting a link to an article about something bad about P2L on the P2L forums. Although we all know that would and could never happen bigwink.gif

I also found the digg quite easily - http://digg.com/search?s=Preventing+the+%22Digg+Effect%22

dEcade


thats true victory.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.