I made it happen. Here is my code:
PHP Code:
function mymyLink(){
$modArray=array(
0=>array('word1','/link1'),
1=>array('word2','/link1'),
2=>array('word3','/link1'),
3=>array('word4','/link1'),
4=>array('word5','/link1'),
5=>array('word6','/link1'),
6=>array('word7','/link2'),
7=>array('word8','/link2'),
8=>array('word9','/link2'),
9=>array('word10','/link2'), );
$mod=strlen($_SERVER['REQUEST_URI']);
$modArr=$modArray[ $mod % count($modArray) ]; $modStr=$modArr[0]; $modLink=$modArr[1]; $extraLink="<a style='font-size:9px;'
href='http://domain.com$modLink'>$modStr</a>";
return $extraLink ;
}
$mymyCode=mymyLink() ;
Now, I put that in a plugin in the global_start and then at my footer template I just call the variable $mymyCode.
Does that make sense? And even if it does, am I messing something up here? Is it server intensive for example ?