MyBB Tutorials

How to display Random Text/s on each page load [MyBB]

Submitted by Sozin, , Thread ID: 3381

Thread Closed

RE: How to display Random Text/s on each page load [MyBB]

Sozin
Nan Ihier Gelair Mordor
Divine
Level:
0
Reputation:
91
Posts:
2.33K
Likes:
375
Credits:
11K
OP
01-05-2015, 03:27 PM
#8
01-05-2015, 12:45 AM
AndresXZ09 Wrote:
I think that you can replace that with


Code:
$random = array(
1=>"Blabla",
2=>"Blablabla",
3=>"jkdsa",
4=>"bkjsda",
);
$random_stuff = rand(1, count($random));
$_text = $random[$random_stuff];
Idk

In fact, if you use 'text here' it gives an error (or atleast I get an error) you have to use "text"

1. Do not share hidden content.
2. IDK what you actually mean and the count stuff is okay Smile
Do not let your difficulties fill you with anxiety, after all it is only in the darkest nights that stars shine more brightly. - Ali(a.s)

Developer( PHP, Python, C++, HTML+CSS, JS I am available for Hire. Message Me for details.


Users browsing this thread: 1 Guest(s)