Skip to main content
Topic: [Tip/Trick] Mood Icons using Custom Profile Field (Read 3162 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Tip/Trick] Mood Icons using Custom Profile Field

I want to thank emanuele first for helping out with this  ;)

This will add a mood image in the posting profile, but can be set in the forum profile.

First you have to add a new directory to /Themes/default/images name it "mood"
Upload all your mood images into the new directory.
Each file should be named according to the image you uploaded. ~ happy.png should be named happy
spelling is important, it must match that of the image or it will not show.


Now create a new custom profile field.

Here is the setting in the acp

Name ~ Name what you like, I did Mood for ease.
Description ~ You can add a short description in here.
Profile Section ~ Forum Profile
Show on registration ~ this is up to you
Show topic view ~ check on for yes
Choose Placement ~ with Icons
Show enclosed within text ~ add this code below
Code: [Select]
<img src="{DEFAULT_IMAGES_URL}/mood/{INPUT}.png" alt="mood {INPUT}" />
Field type ~ Select box
In the Select Box  you will add your moods. One mood per line and the mood must be spelled the same as the image.(case Sensitive)
Add as many moods as you would like. Just make sure that they are png images or gif. If they are gif you must change the this line.
Code: [Select]
<img src="{DEFAULT_IMAGES_URL}/mood/{INPUT}.gif" alt="mood {INPUT}" />


Once you have added all the moods you want then  select the Privacy ~ I have it set up as "Users can can see this field: owners can edit." Then select to active then click save.

Mood images can be found through google, the site I was using has closed down.

Now you are done adding it and ready to use.
Just go to profile, select forum profile then scroll until you see "Mood" and select your mood from the drop down box.


Thank you for taking the time to read this and please move to tips and tricks.

Re: [Tip/Trick] Mood Icons using Custom Profile Field

Reply #1

Good work Allan :thumbsup:

Re: [Tip/Trick] Mood Icons using Custom Profile Field

Reply #2

Thanks but I have to admit that most was @emanuele


Re: [Tip/Trick] Mood Icons using Custom Profile Field

Reply #4

Quote from: Allan – I want to thank emanuele first for helping out with this  ;)
Did I?
Really?

Well, you are welcome!
And thinks for sharing. ;D
Bugs creator.
Features destroyer.
Template killer.

Re: [Tip/Trick] Mood Icons using Custom Profile Field

Reply #5

It was a long time ago on the SMF forum. I figured it still works so why not post it here, and alot of people like the moods.