Forums / Cotonti / Support / Randomizing Image

CJ
#29969 2011-06-29 13:22

but would that work for any user ?

Added 56 minutes later:

ok i have a code to put in the Functions.Php its for BBCode how would i add it ??

 

    if($name == 'random')
    {
        $parts = explode('|',$inner);
        return $parts[mt_rand(0,count($parts) - 1)];
    }
    if($name == 'noparse') return $inner;

how would i add that to the PhP so it doesnt kill my site


Dit bericht is bewerkt door CJ (2011-06-29 14:19, 13 jaren ago)