The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
n00b question, here...
Say I wanted the have a background image for guests but only for guests, what would be the procedure? |
#2
|
|||
|
|||
![]()
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
|
#3
|
||||
|
||||
![]()
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. |
#4
|
|||
|
|||
![]() Quote:
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. |
#5
|
||||
|
||||
![]()
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. |
#6
|
|||
|
|||
![]()
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... |
#7
|
||||
|
||||
![]()
The body tag method would take quite a bit of time to cover all "relevant" templates, doesn't seem worth the effort to me. =/
|
#8
|
|||
|
|||
![]()
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. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|