Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 12 Apr 2008, 19:31
trigatch4 trigatch4 is offline
 
Join Date: Feb 2007
Arrow Custom Header for each Forum/Sub-Forum

Custom I want each forum to use a different header image... how would I go about doing this? The only way I can currently think of is to copy/re-install the "style" every single time with only a different header image and then choose "custom forum style" in the forum manager.

Obviously, that option ads a lot of unneccessary bulk. Is there a way to right a quick line that will check a certain folder to see if there is a header image named after the particular forum and if so, to display that, and if not, display a default?

An example of what I mean: If you had a "baseball" forum with subforums for each team, each team's sub forum could be branded for that team. Every thread, post, reply template, etc... everything you do under that forum would have the custom header for the designated forum/sub-forum.

I thought the way I suggested sounds like the easiest but I don't code so... who knows? But maybe something like this already exists? Only one I found was from 3 years ago.

Anyways, I'll let you geniuses order me around....

Discuss!

Last edited by trigatch4; 12 Apr 2008 at 19:32. Reason: Title Typo
Reply With Quote
  #2  
Old 12 Apr 2008, 22:10
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Real name: Josh Arcadia
I've been looking for something like that too... the closest thing I had seen is this:

http://www.vbulletin.org/forum/showthread.php?t=173240

Let's wait for Lynne to pass around here
__________________
. █│║▌│█│║▌║│█║▌│║║█║

Last edited by iogames; 12 Apr 2008 at 22:43.
Reply With Quote
  #3  
Old 13 Apr 2008, 03:46
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
I think you could do something like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I'm pretty sure that would work. I'm not too sure about the 'if the banner exists' part of it though. I think you'd have to use a plugin to test for that. Although, if you used a plugin to test for it, then spitting it out could be pretty easy if you named them all something like headerx.jpg and headery.jpg. I think I'm gonna have to leave it up to the real coders here since I'm more of a keep-trying-until-it-works type of coder.

edit: Found the function we want - file_exists - and I'm assuming the header to use for forum 4 is header4.jpg and the header to use for forum 22 is header22.jpg, etc.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And then spit out the image $filename in the header template.

That's how I would go about it anyway. But, I'm sure that code has some sort of syntax error cuz they always do when I first type them out.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)

Last edited by Lynne; 13 Apr 2008 at 04:03.
Reply With Quote
  #4  
Old 16 Apr 2008, 17:53
trigatch4 trigatch4 is offline
 
Join Date: Feb 2007
Lynne thank you SOOOO much for this. I haven't tried it and I'm sure it will take some tinkering but this is a solid, solid start that I can surely get to work.

You are awesome thanks so much!
Reply With Quote
  #5  
Old 16 Apr 2008, 17:54
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Real name: Josh Arcadia
Show me the result when you finish
__________________
. █│║▌│█│║▌║│█║▌│║║█║
Reply With Quote
  #6  
Old 16 Apr 2008, 19:31
trigatch4 trigatch4 is offline
 
Join Date: Feb 2007
It might be awhile as my list of "things to do" before launch is 2352523 things long. But I'll PM you when it's done.

... BTW... how did you predict that Lynne would come around and save the day?
Reply With Quote
  #7  
Old 16 Apr 2008, 19:56
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Real name: Josh Arcadia
Some have 'IT', some just think they have IT
__________________
. █│║▌│█│║▌║│█║▌│║║█║
Reply With Quote
  #8  
Old 30 May 2008, 15:01
trigatch4 trigatch4 is offline
 
Join Date: Feb 2007
Lynne... your solution works with one problem:

The headers only display if you're on that Forum/Sub-Forum's actual home screen. I want the header to display no matter where within THAT forum you are. So if you're reading a thread, reading a post, replying to post, etc... the custom banner is always there for each forum -not just on the home of that forum/subforum.

Does that make sense? I'm hoping you can be a lifesaver again!
Reply With Quote
  #9  
Old 30 May 2008, 15:52
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Then you may need to change it from this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #10  
Old 03 Jun 2008, 16:48
Lee Wallace Lee Wallace is offline
 
Join Date: May 2008
I like where you guys are going with this, thanks! One question, where does this code go? :^)
Reply With Quote
  #11  
Old 25 Aug 2008, 00:16
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
I'm also looking to add custom html (banners, text, etc) to each forum category. Anyone know of a mod to do this? I remember an old one from 3.0x days but cannot find it anymore. I remember editing the html code in forum manager per forum. It was very easy to use too.
__________________
...............................
Talk Jesus Forums: Christian Chat
games . chat . gallery . bible . videos
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum Display Enhancements Custom copyright in forum header djdonx vBulletin 3.6 Template Modifications 2 26 Oct 2007 23:41



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:08.

Layout Options | Width: Wide Color: