vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   header image (https://vborg.vbsupport.ru/showthread.php?t=324829)

twistedsoul 03-28-2017 11:55 PM

header image
 
ok so I have seamus theme, as well as a few others. the seamus black is the default on my forums. heres what I'm trying to find out about.

there is 1 banner across all of the default theme, each theme is for a specific forum with its specific banner.

lets say there is a specific forum on the forums that happens to be a default themed style, is it possible to change the header banner on that 1 specific forum, or would I need to set up another theme for it and go about it that way, as I have all the other themes/forums?

Thr33 03-29-2017 08:22 PM

By theme you mean style and by banner you mean logo or is it an image above forums? Screenshots would make it easier.

twistedsoul 03-31-2017 08:14 PM

sry, ok first image is header banner, logo etc. 2nd image of MVP Diamond and Gold lounge are the forums I want to put a different header banner into those 3, but without changing it on all forums of that style/theme. as of right now ive added 3 styles/themes so each would have its own, but its such a pain to go thru and change everything on them, especially when I cant remember what I changed to begin with, and when the exact code I used before doesn't want to work on them. the default is seamus black, and it is used throughtout the forums, with only a few forums having either seamus green, red etc



https://vborg.vbsupport.ru/external/2017/03/1.png
https://vborg.vbsupport.ru/external/2017/03/2.png

ArcadeSyndicate 04-02-2017 12:34 PM

hmm, you can try this...

add a new plugin (hook for example global_start) with this code

Code:

$templatevalues['forumid'] = $forumid;
vB_Template::preRegister('header', $templatevalues);

now you can use a new conditional that isn't availiable in vb4 by default.

Code:

<vb:if condition="$forumid == 1">
quick and dirty and also untested (i have no dev board at the moment) but now you should be able to add a different image to every forum id.

twistedsoul 04-02-2017 11:52 PM

well ty bud, but lol we both know I don't know what to do with that. this is why I pay u! =) additional css for those styles or?

ArcadeSyndicate 04-03-2017 06:47 PM

check trello, i can do that tomorrow evening ;)


All times are GMT. The time now is 06:41 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.04077 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_code_printable
  • (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