Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2003, 03:30 PM
Steve W. Steve W. is offline
 
Join Date: May 2003
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Seperate Header per Forum?

Hi there,

Is it possible to have a different header section perforum without having to resort to creating a seperate style for each? The problem is, I have about 10 forums that need a different image for each header, and I don't fancy having to go thru all of them to add a new hack or whatever.

Even if I need a new style assigned to each forum, is it okay to use the same template set, or would that cause problems?

And finnaly, does anyone have the default style set to download?

Thanks!
Reply With Quote
  #2  
Old 05-24-2003, 03:50 PM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'd need a hack or conditionals in templates (vB3).
Reply With Quote
  #3  
Old 05-24-2003, 03:55 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right, let's see (assuming you want to keep the usualy style for each for but different header)

Download your current style, upload it but make a new style, and modify your header. Then edit your forum so it uses your modified header style. and do that for each for

OR

You can add to your header template an image, and name all the images you want to use 1,2,3 or 4 etc (to relate to a forum and make sure they are the same extension) then use $forum[forumid] for the image name (i.e <img src="{imagesfolder}/$forum[forumid].gif)

First method is untested and should work
Second method is untested and MAY work.....

Reply With Quote
  #4  
Old 05-24-2003, 07:26 PM
Steve W. Steve W. is offline
 
Join Date: May 2003
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So theoreticlly, the image would change as you changed forums? That would be an incredible thing because that's EXACTLY what I'd like to do... cause any more than one or two styles is really hard to manage hacks and such.
Reply With Quote
  #5  
Old 05-24-2003, 08:31 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it's possible. Except with one flaw. If you weren't in a forum (I.E forumhome or showgroups) you'll get a broken image.
Reply With Quote
  #6  
Old 05-24-2003, 10:43 PM
Steve W. Steve W. is offline
 
Join Date: May 2003
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh, but the forumhome is a seperate template, so you could have, say, forumhome.gif for the forumhome templates, if I'm correct?
Reply With Quote
  #7  
Old 05-24-2003, 10:57 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it's not as easy as that. Being the header template is global, {imagesfolder}/$forum[forumid].gif will always appear. Otherwise it'll involve hacking.
Reply With Quote
  #8  
Old 05-24-2003, 11:08 PM
Steve W. Steve W. is offline
 
Join Date: May 2003
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

True... well, there could be say a template with a set header for forumhome and such, and the forums could have another style designated to them with the alterable header gif... so that would be two templates?

Also, is it just a case of putting the replacement variable in the header section of the style?

Thanks for your help so far, btw!
Reply With Quote
  #9  
Old 05-24-2003, 11:25 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I understand you correctly, you would be referring to my first method I said earlier

Quote:
Download your current style, upload it but make a new style, and modify your header. Then edit your forum so it uses your modified header style. and do that for each for
I'm not totally sure though. Otherwise, you'll have to hack (and i'm certain it would be a small hack)
Reply With Quote
  #10  
Old 05-24-2003, 11:32 PM
Steve W. Steve W. is offline
 
Join Date: May 2003
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well the problem is if I were to say install a new hack from vbulletin.org, I'd have to update all 10 templates or even 20 templates, which is why the variabled header idea would be alot better suited since I only want the one style/template set. But I dont know weather the headers are assigned to the style or template area, in which case I could have a new style for each forum, and they all use the same single template/replacement set?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 09:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04327 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete