PDA

View Full Version : Profilefield in vbulletin.css


TheInsaneManiac
04-03-2011, 09:40 PM
This code has a mind of it's on, I can't get it to work right.
background: <vb:if condition="$bbuserinfo[field86]">url({vb:raw bbuserinfo.field86})<vb:else />{vb:stylevar doc_background}</vb:if>;

Lynne
04-03-2011, 09:53 PM
And the result you are seeing is?

And what are exact examples of the values of bbuserinfo.field86?

TheInsaneManiac
04-03-2011, 10:02 PM
<a href="http://i763.photobucket.com/albums/xx279/jeniferqm/aw.jpg" target="_blank">http://i763.photobucket.com/albums/x...niferqm/aw.jpg</a>

just an example, it allows members to have their own background on the website. However it either shows the background, or shows the stock background, it does it randomly rather or not the field is left blank or not.

Tried different browsers as well.

Lynne
04-04-2011, 04:44 AM
This is a condition that you are putting in what template? If you are going to switch backgrounds on a user, you shouldn't put that condition in a css template since those get cached by the browser. Put it in the page itself.

TheInsaneManiac
04-23-2011, 06:10 AM
That explains why it doesn't always change. How can I go about putting it in a different template?

Lynne
04-23-2011, 04:29 PM
Put it in a non .css template.