Change headerbar background-image according to location

Guides & Snippets for phpBB3.
Try the Snippets here and share Your own Snippets

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

Re: Change headerbar background-image according to location

Post by Stoker »

Try setting the height for .description instead.

Re: Change headerbar background-image according to location

Post by Lembamjunior »

Thanks Stoker, that turned out very well! :D

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?

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.

Re: Change headerbar background-image according to location

Post by billoo »

thanks for the sugesstion

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

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!

Re: Change headerbar background-image according to location

Post by 7emper5i »

exactly @gallery/index..

Thx mate!