[REQUEST] Site description randomiser

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Scam Warning
Locked
eoinzy
Registered User
Posts: 24
Joined: Sun Feb 22, 2009 9:25 am
Location: Dublin
Contact:

[REQUEST] Site description randomiser

Post by eoinzy » Thu Mar 11, 2010 1:25 am

Hi guys,

Would it be possible to have a random site description appear every time someone loads a page?

For example, maybe we could have a text file with a new phrase on each line, and phpBB3 picks a random line to display under the site name each time the header is called. It would probably be easire to code it this way than having it change every 24 hours or something.

In case you still don't know what I'm talking about, go into ACP -> Board Settings -> Site description.

On this site, under phpBB, it has "creating communitues". This is what I would love to have randomising all the time. I could also just modify the text file to add new lines or take away old ones I don't want anymore!

Anyway, let me know if this is possible!

Cheers

eoinzy
Registered User
Posts: 24
Joined: Sun Feb 22, 2009 9:25 am
Location: Dublin
Contact:

Re: [REQUEST] Site description randomiser

Post by eoinzy » Tue Mar 30, 2010 2:57 am

no takers, no? :lol:

Comkid
Registered User
Posts: 132
Joined: Thu Mar 25, 2010 5:40 am

Re: [REQUEST] Site description randomiser

Post by Comkid » Tue Mar 30, 2010 2:59 am

All you need is some simple, php, but how are you going to enter all the different descriptions?
I ist Comkid :P

eoinzy
Registered User
Posts: 24
Joined: Sun Feb 22, 2009 9:25 am
Location: Dublin
Contact:

Re: [REQUEST] Site description randomiser

Post by eoinzy » Wed May 12, 2010 12:46 am

Who knows, maybe even a txt file stored somewhere on the server containing a different description on each line.
OR alternatively a new table in the database.

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [REQUEST] Site description randomiser

Post by 4_seven » Wed May 12, 2010 1:28 am

i post the code after more testing...
Last edited by 4_seven on Thu May 13, 2010 2:32 pm, edited 1 time in total.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [REQUEST] Site description randomiser

Post by 4_seven » Wed May 12, 2010 11:07 pm

it's done

- full utf-8
- simple *.txt file for descriptions
- html possible (img, etc.)
- xhtml 1.0 strict

demo
http://4seven.kilu.de/forum/phpbb/index.php (f5-action or forum-move req.)

i will test it 1-2 days more, but seems good now...
Last edited by 4_seven on Thu May 13, 2010 2:33 pm, edited 2 times in total.
Current Mods | Mod Base | php(BB) programming | No help via PM

eoinzy
Registered User
Posts: 24
Joined: Sun Feb 22, 2009 9:25 am
Location: Dublin
Contact:

Re: [REQUEST] Site description randomiser

Post by eoinzy » Thu May 13, 2010 7:34 am

wow,

looks pretty good!

cheers!

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [REQUEST] Site description randomiser

Post by 4_seven » Thu May 13, 2010 5:04 pm

[Snippet] Random Description v.0.0.1
http://4seven.kilu.de/forum/phpbb3/view ... 97&start=0
Current Mods | Mod Base | php(BB) programming | No help via PM

Locked

Return to “[3.0.x] MOD Requests”