PDA

View Full Version : Choosing backgrounds from user-profile field!!


gamerzhut
11-08-2011, 02:24 PM
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.

.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);

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;

Lynne
11-08-2011, 03:38 PM
Where are you putting this code? You will need to actually add it into the page, not into a .css template.

gamerzhut
11-08-2011, 03:52 PM
Where are you putting this code? You will need to actually add it into the page, not into a .css template.

I am trying to add this in postbit.css

Where you want me to add?

Lynne
11-08-2011, 04:16 PM
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.

gamerzhut
11-08-2011, 04:27 PM
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.

Yes, how do i add the css inline line?

TheLastSuperman
11-08-2011, 06:20 PM
Yes, how do i add the css inline line?

Editing a div and adding in a style can help overwrite values on occasion.

<div class="whatever" style="margin-top:10px;">

You could splice this mod https://vborg.vbsupport.ru/showthread.php?t=82992 with the info I just posted here https://vborg.vbsupport.ru/showthread.php?t=273595 (post #3) to achieve this though :cool:.