2007-02-01, 07:31 PM
Hi,
"Everybody loves a bit of randomness, care to share yours?" is the decription for this sub-forum.
Randomness is something I was working on just yesterday
~~~~~~
I'm learning to modify PHP (not a programmer, yet)
Here is some helpful code which can be easily modified to share ad revenue with your content writers, moderators, 'team leaders', etc.
It can also be used to randomize photos, graphics, links, etc.
You need some basic PHP knowledge to be able to use it
FYI: This exact code is for a 80%/20% revenue share (those numbers are easy to change) with a single author, blogger, or admin (for example).
Your adsense code goes in the 'inc2.php' file (if you want to share most of the profits), and your 'buddy' puts their Adsense code in 'inc1.php' (for example), when you want to give them 80% (or just change the number, $prob = 80)
~~~~~~~~~~
~~~~~~~~~~
Pros will already know this, but it might help somebody
Have fun.
"Everybody loves a bit of randomness, care to share yours?" is the decription for this sub-forum.
Randomness is something I was working on just yesterday
~~~~~~
I'm learning to modify PHP (not a programmer, yet)
Here is some helpful code which can be easily modified to share ad revenue with your content writers, moderators, 'team leaders', etc.
It can also be used to randomize photos, graphics, links, etc.
You need some basic PHP knowledge to be able to use it
FYI: This exact code is for a 80%/20% revenue share (those numbers are easy to change) with a single author, blogger, or admin (for example).
Your adsense code goes in the 'inc2.php' file (if you want to share most of the profits), and your 'buddy' puts their Adsense code in 'inc1.php' (for example), when you want to give them 80% (or just change the number, $prob = 80)
~~~~~~~~~~
~~~~~~~~~~
Pros will already know this, but it might help somebody
$prob = 80; //probability of showing your first one
$rand = mr_rand(1,100); //random probability
if($rand < $prob)
include("inc1.php"); //will show up $prob percent of the time
else
include("inc2.php");
Have fun.