[Pmwiki-users] Re: random signatures or quotes (random anything ; )

Albi Rebmann albi
Sat May 8 14:01:07 CDT 2004


Thomas -Balu- Walter schrieb:
> The biggest problem was that ProcessTextDirectives() changes the global
> variable $Text and overrides the usual page content... This is why I needed to
> store the $Text inside $TextBackup.
> 
> See http://www.b-a-l-u.de/index.php/Projects/RandomQuote for the complete
> code.

Thanks very much! I wondered, why it does not work, but I found the 
problem. Replace:
print(PrintText($pagename, $quotes[rand(0, $quotescount)]));
by:
print(PrintText($pagename, $QuoteText));


ALBI...




More information about the pmwiki-users mailing list