vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   headers change based on category? (https://vborg.vbsupport.ru/showthread.php?t=50816)

ehjay 03-25-2003 11:51 PM

headers change based on category?
 
are there any existing hacks, or simple ways to go about having the header or simply having an image or images in the header change based on the category you're currently in?

N!ck 03-26-2003 12:23 AM

just override users' selected styles

ehjay 03-26-2003 03:12 AM

that obviously would work, i'd like to be able to do it without having to run 4-5 more styles, since all i wish to have dynamic is 1-2 images.

ehjay 03-27-2003 08:37 PM

^bump.

jakoz 04-06-2003 06:37 AM

well, i made my own for separate headers based on forum, changable by mods from the mod control panel (only for the forums in which they have rights), like in UBB.

To do that, the easiest way to display it was to load the data for that forum ($forumid) into the new variable $forumdisplay['forumheader'] in forumdisplay.php (which was only a few lines) and then put $forumdisplay[forumheader] in the forumdisplay template (1 line).

That allows forum specific headers on the main page of the forum with minimal changes and no new templates, and also let you have any code or images you want (html, javascript, perl, etc) in there... try playing with it and see what you can do. :)

Logician 04-06-2003 07:23 AM

A modification in forum introduction hack might help


All times are GMT. The time now is 11:43 AM.

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.01108 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete