Welcome to Geeklog, Anonymous Saturday, February 15 2025 @ 09:20 pm EST
Geeklog Forums
Random tagline, how to do?
Status: offline
LWC
Forum User
Full Member
Registered: 02/19/04
Posts: 818
Go to my site (click on my name) and download my PHP script "Random Text". It takes a random phrase (could be as short as a line in your case) from a quotes' file.
I've just updated it to be in the shape of a function. Now if you include it in system/lib-custom.php all you have to do is call it from config.php as Dirk said.
Since I've updated it just for you, please beta test the new version.
I've just updated it to be in the shape of a function. Now if you include it in system/lib-custom.php all you have to do is call it from config.php as Dirk said.
Since I've updated it just for you, please beta test the new version.
12
10
Quote
Status: offline
kreative
Forum User
Chatty
Registered: 08/15/04
Posts: 53
Location:Verona, Italy
I tried this solution (more simple):
- In config.php I added the following code:
$title[1] = "Title1";
$title[2] = "Title2";
$title[3] = "Title3";
$title[4] = "Title4";
$title[5] = "Title5";
$index = rand(1, count($title));
Then, I modified the following line:
$_CONF['site_slogan'] = $index[$title];
Is this a good tip?
- In config.php I added the following code:
$title[1] = "Title1";
$title[2] = "Title2";
$title[3] = "Title3";
$title[4] = "Title4";
$title[5] = "Title5";
$index = rand(1, count($title));
Then, I modified the following line:
$_CONF['site_slogan'] = $index[$title];
Is this a good tip?
8
9
Quote
All times are EST. The time is now 09:20 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content