Custom Profile fiel...
 
Notifications
Clear all

Custom Profile fields

5 Posts
2 Users
0 Reactions
1,602 Views
(@lazuli)
Posts: 61
Trusted Member
Topic starter
 

Does the custom profile fields accept if / else statements?

By this I mean:

if profileItem = 0, display image 1
else if profileItem = 1, display image 2
else, display image 3

Each and every time I try altering the codes, I keep getting:

Parse error: syntax error, unexpected T_STRING in /home/lunaesce/public_html/test/user/profile.php(45) : eval()'d code on line 1


I'm sorry, but due to my schedule, I am not available for commissions.

Blog | DA Account

 
Posted : 25/02/2007 9:34 pm
(@tammy)
Posts: 2577
Member Moderator
 

If you're using custom code it'll work however you write it.


 
Posted : 26/02/2007 12:39 am
(@lazuli)
Posts: 61
Trusted Member
Topic starter
 

Hmm, okay.  I must be doing something wrong.  I'll keep playing.

Thank you so much, Tammy!


I'm sorry, but due to my schedule, I am not available for commissions.

Blog | DA Account

 
Posted : 26/02/2007 8:20 pm
(@tammy)
Posts: 2577
Member Moderator
 

You've got tinyMCE turned off on it?

The easiest thing I've done is used an include file for each.  That way you don't have to keep editing the database.


include('path/to/file.php');


 
Posted : 26/02/2007 9:04 pm
(@lazuli)
Posts: 61
Trusted Member
Topic starter
 

Yeah, TinyMCE is off.

I didn't think of doing it like that.  That will work much better!  Thank you!


I'm sorry, but due to my schedule, I am not available for commissions.

Blog | DA Account

 
Posted : 26/02/2007 9:43 pm
Share: