vb.org Archive

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

Brinnie 08-10-2005 08:21 PM

n00b?
 
n00b question, here...

Say I wanted the have a background image for guests but only for guests, what would be the procedure?

twoseven 08-10-2005 08:49 PM

where would you want the background image to be across the background of the forums? background of the posts? few other places i can think of as well.an u be more specific

kall 08-10-2005 09:53 PM

Something like this might work:

In template header, find the <table> tag that defines your whole page and add an <if condition="$bbuserinfo[usergroupid]==0">style="background:url('path/to/background/image.gif');"</if> to it.

jugo 08-11-2005 12:36 AM

Quote:

Originally Posted by kall
find the <table> tag that defines your whole page


WOW kall...that's pretty weird coming from a Coder. I think the right thing to say would be to insert it into the CSS or in the <BODY> Tags.

kall 08-11-2005 01:06 AM

1. I haven't ever felt the need to design a style with an image for a background. I wouldn't know how to define it.
2. Tell me how to make usergroup-conditional css and we will both know.

Regs 08-11-2005 02:38 AM

Couldn't you use an 'is_member_of' conditional within the body tag in all the relevant templates (i.e. FORUMHOME, SHOWTHREAD, etc) to set the style attribute for background image?

Maybe an easier way through the headinclude template (using the same method above after the $style[css] call...

Tony G 08-11-2005 04:01 AM

The body tag method would take quite a bit of time to cover all "relevant" templates, doesn't seem worth the effort to me. =/

Regs 08-11-2005 12:43 PM

Yes it would I suppose but it would work.

And that's the main thing, providing a solution for the topic starter to get by with.


All times are GMT. The time now is 04:42 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.01740 seconds
  • Memory Usage 1,717KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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