vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   if ( skin == X ) (https://vborg.vbsupport.ru/showthread.php?t=102758)

Borgs8472 12-12-2005 12:46 AM

if ( skin == X )
 
Are there conditionals to use for skins?

You see I have too very similar logos on my board, one for the light skins and one for the darks.

If I want to edit the header, the lighter skins inherit the changes, but I must change each of the darker skins manually because their dark logo is customised in their style.

Is there a conditional for say:

if ( skin = skinfo[dark] )
dark logo
else
light logo
/if

or maybe

if ( skin = skinid[1, 3, 7] )

dark logo
else
light logo
/if

Or anything like that at all?

I know the style system is designed so the board can look and function completely differently depending on style, but I only have CSS colour changes on mine, if only the logo could just occasionally be different without editing the header every time!

Dan 12-12-2005 01:02 AM

Umm.... Just change the logo in the actual style? If there are more than one style then each one has it's own templates and settings.

Borgs8472 12-12-2005 01:16 AM

^ ^
yeah but I'm fed up with having to modify my darker headers every time I make a cross-style header modification. Do you see?

merk 12-12-2005 10:01 AM

So use the header variable in main css settings... (which is by far the best method)


to answer your question, the definition (not variable) is STYLEID

HTML Code:

<if condition="STYLEID == X">boo</if>

Borgs8472 12-13-2005 12:20 AM

^ ^
thanks!

How would I use that for an array of a few styleids?


All times are GMT. The time now is 03:07 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.02632 seconds
  • Memory Usage 1,710KB
  • 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)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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