PDA

View Full Version : Images in Profile User Fields



chrizti
Wed 29th Apr '09, 5:08pm
I'm trying to add a mood profile user field. I'm trying to figure out how to use images instead of Happy, Sad and so on.

I know there is a mod for it, but trying to work within the system first.

I even tried BB code.

If I setup the field with words,

1. How do I show the Mood field in the thread display(for example, under Location)? I can't find where to even show it.

2. What html do I add to the thread display page to change the word Sad to my sad image?

I don't care so much if the member sees the word Sad on their profile. I can always make a note telling them it will convert to an image.

I've been successful with ranks and even post awards using ranks. I'm amazed by all of the options that there are with vBulletin.

Wayne Luke
Wed 29th Apr '09, 5:29pm
There isn't really support for images or BBCode in Profile Fields. They accept plain text. For something like Moods, you would have to take the value of the profile field and then load an image to show based on what they entered. If you do use profile fields then you can do something like <img src="$stylevar[imgdir_misc]/mood$post['fieldX].jpg" /> to show a sad image as long as the value of FieldX is sad. X would represent the field ID.


You can get more help with this at www.vbulletin.org. I even believe there are a couple of pre-packaged addons available there for this.

chrizti
Wed 29th Apr '09, 5:47pm
<img src="$stylevar[imgdir_misc]/mood$post['fieldX].jpg" />

So if for Sad, I wanted to use image sadme.jpg it would be

<img src="$stylevar[imgdir_misc]/mood$post['fieldSad]sadme.jpg" />

Is that right?

Also, say if I want the mood profile field to show under their name on the thread display, what settings do I change to show it. Right now, it doesn't even show the Mood field.

I guess I'm wanting to know how to add the new mood profile field to the postbit area?