Add a Banner in 1 specific forum

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
matt987106
Registered User
Posts: 32
Joined: Sun May 02, 2010 12:49 pm

Add a Banner in 1 specific forum

Post by matt987106 »

Is it possible to add a banner to 1 forum and not the rest of it ? ?? ?

thanks
matt
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Add a Banner in 1 specific forum

Post by stevemaury »

Yes. In overall_header.html

Code: Select all

<!-- IF FORUM_ID eq N --> banner code <!-- ENDIF -->
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
matt987106
Registered User
Posts: 32
Joined: Sun May 02, 2010 12:49 pm

Re: Add a Banner in 1 specific forum

Post by matt987106 »

thanks

wouldnt that add it to every section

i didnt explain it well, sorry


forum a
forum b
forum c
forum d


i only need to add a banner to forum b
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Add a Banner in 1 specific forum

Post by stevemaury »

Which is EXACTLY what the code I gave you will do if you use the forum_id for forum b. Look up in the url window here. This is forum_id 46 (f=46).
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
matt987106
Registered User
Posts: 32
Joined: Sun May 02, 2010 12:49 pm

Re: Add a Banner in 1 specific forum

Post by matt987106 »

stevemaury wrote:Which is EXACTLY what the code I gave you will do if you use the forum_id for forum b. Look up in the url window here. This is forum_id 46 (f=46).
cool, thanks alot

i will have a go now ;)
matt987106
Registered User
Posts: 32
Joined: Sun May 02, 2010 12:49 pm

Re: Add a Banner in 1 specific forum

Post by matt987106 »

the forum is f=22

so it would be this ?? ? ?

Code: Select all

<!-- IF FORUM_ID f=22 --> banner code <!-- ENDIF -->
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Add a Banner in 1 specific forum

Post by stevemaury »

No. As I said:

Code: Select all

<!-- IF FORUM_ID eq 22 -->banner code <!-- ENDIF -->
Don't forget to purge the cache after uploading the edited template.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
matt987106
Registered User
Posts: 32
Joined: Sun May 02, 2010 12:49 pm

Re: Add a Banner in 1 specific forum

Post by matt987106 »

stevemaury wrote:No. As I said:

Code: Select all

<!-- IF FORUM_ID eq 22 -->banner code <!-- ENDIF -->
Don't forget to purge the cache after uploading the edited template.
thanks again ;)
hancholo
Registered User
Posts: 127
Joined: Sat Jul 31, 2010 2:01 am

Re: Add a Banner in 1 specific forum

Post by hancholo »

Can someone plz explain in laymens terms? Consider my forum http://forum.casanovacrew.com/index.php....lets say I wanted to only put a banner in the "General" forum...whnat exact steps would I take? Please provide a step by step numbered detailed explanation for us newbies out there!

Thks!
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Add a Banner in 1 specific forum

Post by stevemaury »

1. Determine the forum_id of that forum by oing to it and looking at the address window in your browser. For example, this topic shows this url - http://www.phpbb.com/community/posting.php?mode=reply&f=46&t=2122073 - the "f=46" means the forum_id is 46. Let's say that is the forum id of your General forum (although of course, it isn't).

2. Use FTP to download styles/black_pearl/template/overall_header.html file.

3. Open that file in Wordpad.

Find where you want the banner - probably somewhere in this area:

Code: Select all

<title>{SITENAME}&bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
4. Add the following where you want it: <!-- IF FORUM_ID eq 22 -->banner code <!-- ENDIF -->

5. Save the file, upload it, and then use the Purge button in the ACP, Main page, to purger the cache.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
matt987106
Registered User
Posts: 32
Joined: Sun May 02, 2010 12:49 pm

Re: Add a Banner in 1 specific forum

Post by matt987106 »

thanks

mine worked fine

i couldnt find exactly where to put the code to get it in the right place, but a little trial and error and i have put it next to the "search box" so it looks fine

i did want it next to the site logo and get rid of the site description ( on forum 22 ) , but i couldnt work thw code out for that

thanks steve

cheers
matt
ReffuB
Registered User
Posts: 11
Joined: Tue Jan 11, 2011 9:29 pm

Re: Add a Banner in 1 specific forum

Post by ReffuB »

i really dont have succes with this :(

When i try to do this, i just get this error:
Image

I upload the header picture here:
/images/header/900x160tina.jpg

The code i put in overallheader.html is:
<!-- IF FORUM_ID eq 540 --> /images/header/900x160Tina.jpg/ <!-- ENDIF -->

This is the url to see what ID my forum have:
/viewforum.php?f=540

What im doing wrong?
bluematttkz
Registered User
Posts: 3
Joined: Mon Oct 03, 2011 10:26 pm

Re: Add a Banner in 1 specific forum

Post by bluematttkz »

Steve

would you know the code to change the logo on a specific forum ?? , so from boards standard logo to another image ? ?

it will be forum 27

thanks in advance
matt
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Add a Banner in 1 specific forum

Post by Oyabun1 »

If you want different logos in different forums there is a MOD for that, Custom Header Logo, which will enable you to set them from the ACP.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Add a Banner in 1 specific forum

Post by stevemaury »

It can be done several ways, without a MOD. Since you can assign different styles to different forums, one way would be to copy your default style, give it a different name and a different logo and assign it to that forum.

Or, in overall_header.html:

Code: Select all

<!-- IF FORUM_ID eq N --><a href="{U_INDEX}" title="{L_INDEX}" id="logo">URL to your image</a><!-- ELSE --> <a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a><!-- ENDIF -->
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
Locked

Return to “[3.0.x] Support Forum”