Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: woden on March 12, 2006, 05:12:56 PM

Title: Simple_Mood
Post by: woden on March 12, 2006, 05:12:56 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=289)

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.
Title: Re: Simple_Mood
Post by: qtime on March 15, 2006, 04:10:50 PM
Let me the first to say thanks for this mod. It just give some more personality to the community members.
Works fine.
Title: Re: Simple_Mood
Post by: woden on March 16, 2006, 08:02:35 PM
Thanks! Glad you like it.  :D
Title: Re: Simple_Mood
Post by: 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
Title: Re: Simple_Mood
Post by: rjordan on April 09, 2006, 03:46:56 PM
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?
Title: Re: Simple_Mood
Post by: perplexed on April 09, 2006, 11:23:18 PM
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
Title: Re: Simple_Mood
Post by: K_4_kelly on May 02, 2006, 12:25:01 PM
i was trying to install the mod
but it shows that:

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


anyone helps? thanks
Title: Re: Simple_Mood
Post by: woden on May 06, 2006, 12:31:27 PM
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.
Title: Re: Simple_Mood
Post by: K_4_kelly on May 06, 2006, 12:57:02 PM
thanks for your reply :)

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

thanks!
Title: Re: Simple_Mood
Post by: woden on May 06, 2006, 01:38:12 PM

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 />';
}
Title: Re: Simple_Mood
Post by: Vinspire^ on May 06, 2006, 01:43:21 PM
Great mods  ;) ;) ;)
Title: Re: Simple_Mood
Post by: K_4_kelly on May 07, 2006, 06:50:51 PM
 :)  hi woden

thanks thanks, it works very well now ^_^
Title: Re: Simple_Mood
Post by: devdevil on May 10, 2006, 12:34:44 PM
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..
Title: Re: Simple_Mood
Post by: Vinspire on May 10, 2006, 11:42:19 PM
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
Title: Re: Simple_Mood
Post by: devdevil on May 11, 2006, 02:24:16 AM
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.
Title: Re: Simple_Mood
Post by: Vinspire on May 14, 2006, 07:26:39 PM
Test failed in Display.template.php
Title: Re: Simple_Mood
Post by: last19 on October 03, 2006, 10:25:21 AM
How can we use select panel in index php?

(http://img47.imageshack.us/img47/4593/ads305zmw9.jpg)
Title: Re: Simple_Mood
Post by: samames on March 19, 2007, 12:45:43 PM
hiya this mod is cool however it would be better if you could select your mood when posting
Title: Re: Simple_Mood
Post by: Greenman on March 21, 2007, 06:44:40 PM
Quote from: last19 on October 03, 2006, 10:25:21 AM
How can we use select panel in index php?

(http://img47.imageshack.us/img47/4593/ads305zmw9.jpg)


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. :)
Title: Re: Simple_Mood
Post by: samames on March 24, 2007, 10:53:14 AM
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
Title: Re: Simple_Mood
Post by: Miyagi on May 06, 2007, 12:57:35 AM
1.1.2 update or work around available?  Work fine on 1.1.2?
Title: Re: Simple_Mood
Post by: askepott on September 05, 2007, 07:24:52 AM
working on 1.1.3? i just downloaded it, havent installed it yet
Title: Re: Simple_Mood
Post by: askepott on September 05, 2007, 08:42:00 AM
added question, is there any way we can add "moods/images" to the package?
Title: Re: Simple_Mood
Post by: shumar on October 14, 2007, 07:03:44 PM
Any news about this Mood Mod ? :)
Title: Re: Simple_Mood
Post by: B.SkiLLs on August 28, 2008, 06:12:43 AM
this working or updated yet for 1.1.5 ??

good mod to have and would be fun. Could you or somebody please update it. Thanks