Log in

View Full Version : Memberinfo Error


MissKalunji
12-10-2005, 03:56 AM
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
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
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>