News:

Wondering if this will always be free?  See why free is better.

Main Menu

Simple_Mood

Started by woden, March 12, 2006, 05:12:56 PM

Previous topic - Next topic

woden

Link to Mod

A very Simple Moods mod. Adds smiley moods to users posts right under post count. Mood picker is accessed thru profile.

Sample at http://www.petfish.net/forum/

Install and uninstall works perfectly with package manager.

qtime

Let me the first to say thanks for this mod. It just give some more personality to the community members.
Works fine.

woden

Thanks! Glad you like it.  :D

hel8itch

its not showing on mine??
is there a setting that needs to be changed..i can see it in my profile but not on my posts

rjordan

Quote from: hel8itch on March 22, 2006, 07:41:24 AM
its not showing on mine??
is there a setting that needs to be changed..i can see it in my profile but not on my posts

Are you using the default theme?

perplexed

I loaded it just now and it works.  If you are using a different theme you will need to load the images into the image folder of that theme and create a mood folder in images for them to show up

Thanks, nice little feature

K_4_kelly

i was trying to install the mod
but it shows that:

Execute Modification     ./Themes/default/Display.template.php     Test failed


anyone helps? thanks

woden

Its probably conflicting with a previous modification. You can use the package manager to install and then manually edit the changes for the Display.template.php.

K_4_kelly

thanks for your reply :)

do u mind to tell me where to change in the file?

thanks!

woden


in your Display.template.php search for this:
$txt[26], ': ', $message['member']['posts'], '<br /><br />';

immediately after that add this:

if (!empty($message['member']['options']['mood']))
{
echo '<b>Mood:</b>',  '<img src="' . $settings['images_url'] .  '/moods/';
if ($message['member']['options']['mood'] == 'Happy')
{
echo 'm_grin.gif';
}
elseif ($message['member']['options']['mood'] == 'Cool')
{
echo 'm_cool.gif';
}
elseif ($message['member']['options']['mood'] == 'Deviant')
{
echo 'm_evil.gif';
}
elseif ($message['member']['options']['mood'] == 'Mad')
{
echo 'm_angry.gif';
}
elseif ($message['member']['options']['mood'] == 'Confused')
{
echo 'm_huh.gif';
}
elseif ($message['member']['options']['mood'] == 'Sad')
{
echo 'm_sad.gif';
}
elseif ($message['member']['options']['mood'] == 'Crying')
{
echo 'm_cry.gif';
}
elseif ($message['member']['options']['mood'] == 'Stupid')
{
echo 'm_stupid.gif';
}
elseif ($message['member']['options']['mood'] == 'NyaNya')
{
echo 'm_nya.gif';
}
echo '"><br /> <br />';
}

Vinspire^


K_4_kelly

 :)  hi woden

thanks thanks, it works very well now ^_^

devdevil

the mod works well on one theme <default one>
but when i use another theme i get only da mood next to the avtar but cannot change it from profile ???
any ideas..
i did da modification to Display.template.php to make mood appear on different theme..
so every time i need to change mood i need to switch between themes..
thnx for ur time..

Vinspire

So, it means i need to change to the other theme if i want to change my mood in other theme ?

If that is so what would appear in the screen of those who use other theme than me ?

Ermm ... hopefully my sentence isnt that confusing :P

devdevil

yes to change the mood u need to switch between themes...
if u use a different theme u need to edit the Display.template.php of that theme as shown above..
and u will be able to see the moods.. but u also need to upload da mood images in the images folder od the same theme.

Vinspire

Test failed in Display.template.php

last19

How can we use select panel in index php?



samames

hiya this mod is cool however it would be better if you could select your mood when posting
Firefox 3 user. Mac user. Pc user.

Greenman

#18
Quote from: last19 on October 03, 2006, 10:25:21 AM
How can we use select panel in index php?




I second this,
Is there any way to have a dropdown with the option but without a submit button, so just when you pick the mood it submits it and refreshes the page? I'd like to use that on my main index page.

Oh and how about a 1.1.2 update? The current version doesn't even install on 1.1.2 because it's another version. (or corrupt)

Thanks. :)

samames

Greewnman: doesn't it? works fyn 4 me... mayb coz mine was installed b4 i updated....

yeah greenman awesome idea... Someone, Please Tell Us How!!!!! Pleaseeeeeeee
Firefox 3 user. Mac user. Pc user.

Advertisement: