vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Choosing backgrounds from user-profile field!! (https://vborg.vbsupport.ru/showthread.php?t=273598)

gamerzhut 11-08-2011 02:24 PM

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

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

Quote:

Originally Posted by Lynne (Post 2265739)
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

Quote:

Originally Posted by Lynne (Post 2265753)
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

Quote:

Originally Posted by gamerzhut (Post 2265756)
Yes, how do i add the css inline line?

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

<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:.


All times are GMT. The time now is 03:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01424 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete