Alternating Logo

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
Crazygar
Registered User
Posts: 114
Joined: Wed Sep 12, 2007 1:04 pm
Location: Winnipeg, MB
Contact:

Alternating Logo

Post by Crazygar » Wed Nov 07, 2007 7:24 pm

I am currently looking for a mod in which will enable me to rotate through a series of 4 different logos for my Forum. I have all 4 ready (logo_phpBB1.gif....logo_phpBB4.gif) and just wondering if its possible to do such a feat.

Gary

User avatar
dellsystem
Former Team Member
Posts: 3879
Joined: Sat Apr 09, 2005 8:54 pm
Location: Montreal
Name: Wendy
Contact:

Re: Alternating Logo

Post by dellsystem » Wed Nov 07, 2007 10:41 pm

Put all the images in your images directory, and open up includes/page_header.php

find

Code: Select all

	'PAGE_TITLE' => $page_title,
after that, in the next line, add

Code: Select all

      'SITE_LOGO'      => mt_rand(1, 4),
Then in templates/yourtemplate/overall_header.tpl replace the first <img src="xxxxxxx" you see with <img src="images/logo_phpbb{SITE_LOGO}.gif"

adapted from a phpBB3 KB article (http://www.phpbb.com/kb/article/adding- ... der-image/) :D
Former moderator and website team member | My MODs, and more (GitHub)

Crazygar
Registered User
Posts: 114
Joined: Wed Sep 12, 2007 1:04 pm
Location: Winnipeg, MB
Contact:

Re: Alternating Logo

Post by Crazygar » Thu Nov 08, 2007 4:26 pm

Thanks a lot! It worked great!

Gary

Post Reply

Return to “[2.0.x] MOD Requests”