SE Gamer: Light

random banner - SE Gamer: Light

random banner

by noth » Sun Sep 29, 2013 11:16 am

if you make a few random banners 1400 x 185 you could get the random number made at https://www.phpbb.com/kb/article/adding ... der-image/ to "call" the random banner which is currently defined as "banner.jpg" and is 1400 x 185

however I am a bit confused as to where banner.jpg is called in this style

I want to have the overall header show a random banner-1.jpg or banner-2.jpg which the knowledge base article helps you to do but where can I change banner.jpg to banner-random.jpg in this? :P
User avatar
noth
Registered User
Posts: 2483
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: random banner

by automat01 » Sat Nov 16, 2013 3:10 am

it is in theme/images/
automat01
Registered User
Posts: 17
Joined: Mon Feb 07, 2011 2:48 am
Contact:

Re: random banner

by noth » Tue Nov 19, 2013 9:22 pm

can you please tell me which file in theme/images calls banner.jpg, so that I can run random banners as per the KB

just saying "it is in theme/images/" is quite frankly not a lot of help

mind you ;) at least you replied, that is something at least
User avatar
noth
Registered User
Posts: 2483
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: random banner

by Prosk8er » Wed Nov 20, 2013 4:57 am

theme/images/ is where the image is located not where its being called

it calls the banner from the class headerbar which is in template/overall_header.html
then it reads the class from /theme/colours.css

Code: Select all

.headerbar {
   background: url("{T_THEME_PATH}/images/banner.jpg") no-repeat left top #ffffff;
   color: #FFFFFF;
}
User avatar
Prosk8er
Registered User
Posts: 1487
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact: