Форумы / Cotonti / Support / Randomizing Image

CJ
#29969 29.06.2011 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

Отредактировано: CJ (29.06.2011 14:19, 13 лет назад)