Previous Thread
Next Thread
Print Thread
Hop To
Joined: Mar 2010
Posts: 34
V
Vic
Offline
newbie
newbie
V Offline
Joined: Mar 2010
Posts: 34
In the Community Introduction Body section is there a way to put text so each time someone refreshes the forum page it would show a different text?

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
yes.. you can use php code or javascript there to 'rotate' some text in.. smile

Joined: Mar 2010
Posts: 34
V
Vic
Offline
newbie
newbie
V Offline
Joined: Mar 2010
Posts: 34
Originally Posted by Sirdude
yes.. you can use php code or javascript there to 'rotate' some text in.. smile

Can you recommend away how to do this please?

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Community title:
HTML
<center>Wazzaaaaap!?</center>

Community body:
PHP Code

<?php

$randText = array(
 'Hi there',
 'Yo bubba',
 'I love Sirdude');

$randInd = mt_rand(0,count($randText)-1);
$theBanner = '<center><b>'.$randText[$randInd].'</b></center><br />';
echo $theBanner;
?>

Bam! <br />

just change the $randText strings.. add as many as you want and it'll rotate them in every time someone displays the forum list (cfrm) wink

Joined: Mar 2010
Posts: 34
V
Vic
Offline
newbie
newbie
V Offline
Joined: Mar 2010
Posts: 34
Thanks so much it worked perfect.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
0 members (), 118 guests, and 136 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)