Log in

View Full Version : n00b?


Brinnie
08-10-2005, 09:21 PM
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, 09: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, 10: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, 01:36 AM
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, 02: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, 03: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, 05: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, 01: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.