vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Memberinfo Error (https://vborg.vbsupport.ru/showthread.php?t=102637)

MissKalunji 12-10-2005 03:56 AM

Memberinfo Error
 
Okay after trying to figure it out for 4 hours im asking you guys to help me out

i am trying to (after using the memberinfo hack) permit the users to change their background,color etc using css

so i instead of the header : <Style type="text/css">$userinfo[field30]</style>

wich field30 is a field where they can input their css

but as soon as i remove headinclude

a bunch of javascript error comes up..........i have no idea how to fix it....

anyone?

Thanks in advance

i got this figured out now...

my next question i wanna input a condition

if this user complets the field # then show the css

else

show headinclude

how can i write that?

Thanks!

waza 12-10-2005 03:11 PM

Hey,
In your template MEMBERINFO you can add
<if condition="$userinfo[field30]">
<style type="text/css">$userinfo[field30]</style>
<else />
$headinclude
</if>

MissKalunji 12-11-2005 11:06 AM

Quote:

Originally Posted by waza
Hey,
In your template MEMBERINFO you can add
<if condition="$userinfo[field30]">
<style type="text/css">$userinfo[field30]</style>
<else />
$headinclude
</if>

thanksssssssssssssss :)

where and how do i set the field for them to choose their font color?

waza 12-11-2005 12:40 PM

I don't really get your last question?

If you don't know where to put the previous code:
just in the <head> tags of your memberinfo where $headinclude was.

If you want a field for the users so they can put in their font color (rgb code).
Then you can just add a custom user field and then return it on a profile with:
$userinfo[fieldfieldid] So if the field id is 30 $userinfo[field30]

MissKalunji 12-11-2005 01:35 PM

Quote:

Originally Posted by waza
I don't really get your last question?

If you don't know where to put the previous code:
just in the <head> tags of your memberinfo where $headinclude was.

If you want a field for the users so they can put in their font color (rgb code).
Then you can just add a custom user field and then return it on a profile with:
$userinfo[fieldfieldid] So if the field id is 30 $userinfo[field30]

lol sorry i didnt ask it properly

what i want is

example $userinfo[field30] is blue

i want the whole memberinfo text to be blue....

thats what i meant by choose their font color for their profile

thanks for your help

waza 12-11-2005 04:12 PM

something like
<div style="color:$userinfo[field30];">TEXT</div>


All times are GMT. The time now is 09:50 AM.

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.01829 seconds
  • Memory Usage 1,720KB
  • 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_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