The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Choosing backgrounds from user-profile field!!
I wanted my members to select the background for their userinfo field. I have created a custom profile field with the background images... How do i implement it with this code.
Code:
.postbitlegacy .userinfo2 { float:{vb:stylevar left}; position: relative; width:{vb:math {vb:stylevar postbitlegacy_userinfo_width}-{vb:math {vb:stylevar padding}*2}}; padding: 2px {vb:stylevar padding} {vb:math {vb:stylevar padding}/2}; font-size: {vb:stylevar small_fontSize}; display:block; background: url(I want this to be selected from my profile field); I tried this, but no luck... background: url({vb:raw post.field11}) no-repeat; |
#2
|
||||
|
||||
Where are you putting this code? You will need to actually add it into the page, not into a .css template.
|
#3
|
|||
|
|||
Quote:
Where you want me to add? |
#4
|
||||
|
||||
Are you trying to change each postbit according to the posters field? Then you will need to actually edit he postbit template and add the CSS inline to the div tag.
|
#5
|
|||
|
|||
Yes, how do i add the css inline line?
|
#6
|
||||
|
||||
Editing a div and adding in a style can help overwrite values on occasion.
Code:
<div class="whatever" style="margin-top:10px;"> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|