Change headerbar background-image according to location

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
User avatar
Lembamjunior
BBCoder I
BBCoder I
Posts: 4
Joined: 17 Mar 2010, 14:43

Re: Change headerbar background-image according to location

Post by Lembamjunior »

Hi Stoker.

I applied the changes for SE Pro by changing headerbar to header-bar in template and CSS, but then the corners where completely gone.
I think it's because I'm using the regular prosilver SE.


Thanks for your help, :)

Lembamjunior
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Change headerbar background-image according to location

Post by Stoker »

Try setting the height for .description instead.
Board rules! No PM support
User avatar
Lembamjunior
BBCoder I
BBCoder I
Posts: 4
Joined: 17 Mar 2010, 14:43

Re: Change headerbar background-image according to location

Post by Lembamjunior »

Thanks Stoker, that turned out very well! :D
User avatar
billoo
BBCoder II
BBCoder II
Posts: 24
Joined: 15 May 2010, 22:46

Re: Change headerbar background-image according to location

Post by billoo »

one question Stoker
the images i must have uploded in the style what must be there size?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Change headerbar background-image according to location

Post by Stoker »

Size is up to you but I will suggest that you use a size that fit the style.
Board rules! No PM support
User avatar
billoo
BBCoder II
BBCoder II
Posts: 24
Joined: 15 May 2010, 22:46

Re: Change headerbar background-image according to location

Post by billoo »

thanks for the sugesstion
User avatar
7emper5i
BBCoder II
BBCoder II
Posts: 9
Joined: 16 May 2010, 22:03
Location: Germany Cologne

Re: Change headerbar background-image according to location

Post by 7emper5i »

Hi guys,

how do I manage to alter the background-image according to other locations, like for example the geomap, or the gallery.

It would be interesting to get to know, how to manage this predefined image-change for other locations as well, like selfmade static-pages.., for example.


Best regards,
Philipp
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Change headerbar background-image according to location

Post by cisco007 »

well whatever the php page name is you use this:

Code: Select all

<!-- ELSEIF SCRIPT_NAME == "page name here" --><div class="headerbar" style="background-image: url({T_THEME_PATH}/images/name_of_image.jpg); background-position: top;">
if the page is geomap.php you put geomap where it says "page name here" and so on! i think for the gallery you would use "gallery/index"
you'll get the idea!
User avatar
7emper5i
BBCoder II
BBCoder II
Posts: 9
Joined: 16 May 2010, 22:03
Location: Germany Cologne

Re: Change headerbar background-image according to location

Post by 7emper5i »

exactly @gallery/index..

Thx mate!
Locked