post Category: Techie — Gudlyf @ 12:33 AM — post Comments (112)

Not sure why I felt compelled to make this, but I figured a lot of people might like to have it. This plugin will add one of those silly “Current Mood” icons to the beginning of all your posts. Read the instructions in the plugin comments for how to use it and where to get the icons.

Download the plugin here (NOTE: Yes, I moved development to wp-plugins.org)

(No I won’t demonstrate it here. Current mood = straight)

Current version: 1.1

Changes since 1.0:

- Moods no longer show at all for posts with no mood added
- Made the image end with xhtml 1.0 transitional code.

More mood icons found here.

Horaayy..there are 112 comment(s) for me so far ;)

#1

[...] t. What drama this Euro has given football fans. Also I am trying out a mood plug-in from here. Haven’t really played around with them much in Wordpress. Would rea [...]

x72x | v.1 wrote on June 23, 2004 - 12:02 PM
#2

[...] icons working! If you have a WordPress blog an wish to add your own mood icons go here -> Gudlyf.com Comments » The URI to TrackBack this entry is: http://crazyran [...]

Crazy Ranting Lady wrote on July 28, 2004 - 5:25 PM
#3

[...] d, she strikes again with the brilliance of plug-in analysis. See the mood and the music? Moody was a brilliant WP plug-in by Keith McDuffee. Really simple code. I just chopped off [...]

#4

[...] ~ ok, this is a test of two new wp plugins i installed, sang along and moody. Ill be messing around with it for a little while. Bear with me. posted by oma [...]

un-advertised :: no dice. wrote on August 5, 2004 - 7:14 PM
#5

[...]   ~ Ok, so i just got sang along and moody working and i thought to myself, this would be really great if it worked for plugs, an [...]

un-advertised :: Daily Plug v 1.0 wrote on August 5, 2004 - 10:49 PM
#6

[...] Aftab @ 4:09 pm  (Current Mood: )

Ohh look Moods – this could be fun Gudlyf’s World ? WordPress Plugin: Moody [...]

#7

[...] m  (Current Mood: )

This is just a quick note about a new plugin from Gudfy’s World It allows you to show a mood icon when you post. Quite cool if you are into that sort [...]

who cares ?! » Just added a new plugin wrote on August 20, 2004 - 11:02 AM
#8

Awesome!!! Ive been waiting for something like this, I was about to make my own tonight, seems you’ve saved me the headaches :)

Chris-Michael wrote on May 29, 2004 - 1:53 AM
#9

WP Plugin: Moody
This WP 1.2 plugin adds a mood icon to the beginning of each of your entries.

Blogging Pro – Blog News, Tools and Hacks wrote on May 29, 2004 - 1:54 AM
#10

I can’t get this to work! Everythings alright, the default (blank) face shows up, and I’ve installed the smileies in the right place… but what to write in the custom fields? I have a dropdown menu where I can choose “moods” but what about the other two fields?

David Blangstrup wrote on June 4, 2004 - 2:14 AM
#11

Key should me “moody” and Value needs to be the name of any of the mood files, minus the .jpeg. Get it?

Gudlyf wrote on June 4, 2004 - 2:31 AM
#12

Yes, that’s pretty obvious, so I’ve tried that… but it’s not working? Is there a step I’m missing here? Ishopuldn’t add something to my mysql database?

David Blangstrup wrote on June 4, 2004 - 3:41 AM
#13

Hrm. Very stange that you can see the ‘blank’ icon, but not others. What happens when you make the mood as ‘blank’? When you set it to an existing mood, does it show a missing icon or the blank icon?

Gudlyf wrote on June 4, 2004 - 6:54 AM
#14

The blank icon – Do you BTW know, that a long comment gets hidden by the blue menu here… right now? I am now under the blue menu and now I’m out again…

David Blangstrup wrote on June 4, 2004 - 10:18 AM
#15

Hm…the comment window doesn’t do that for me. I’ll get on that…
Anyway, if you’re only seeing the blank icon, that means the key/value pair is not getting read at all. Oh wait… the key should be “mood”, not “moody”…my bad. Does that work?

Gudlyf wrote on June 4, 2004 - 10:25 AM
#16

Nada. Nothing happens, just the blank mood (very appropriate now :-| )

David Blangstrup wrote on June 4, 2004 - 11:03 AM
#17

BTW do you know where I can get hold of Bruce’s Penguins? I had http://www.lossofsignal.net ’s moods with Bruce’s Penguins, but his site has been down for some time, now. I think he got them from LiveJournal in the first place, but I can’t seem to find them there anymore.

David Blangstrup wrote on June 4, 2004 - 11:06 AM
#18

Ah, now it’s working! I chmod’ed the moods directory 777, but I have done that before, so… but it’s working after all! Thanks!

David Blangstrup wrote on June 4, 2004 - 11:13 AM
#19

But it’s strange… I still can’t add moods to existing posts :-S

David Blangstrup wrote on June 4, 2004 - 11:23 AM
#20

You shouldn’t need 777 mode, just make sure everyone can read the directory. No writing needed by anyone but yourself (if you want to add more icons).

As for the penguin moods, you can download each one individually from here I guess: http://www.livejournal.com/moodlist.bml?moodtheme=259

Gudlyf wrote on June 4, 2004 - 11:24 AM
#21

Thanks! :-)

David Blangstrup wrote on June 4, 2004 - 11:27 AM
#22

Did you know, that the preview only shows the blank face, no matter what? Can you edit earlier “faces”? I can’t! I can’t even delete them!

David Blangstrup wrote on June 5, 2004 - 6:25 AM
#23

I can rewrite the plugin so you see no mood icons at all if that post didn’t have one specified. Let me know if you want that and I’ll make that change for you.

Gudlyf wrote on June 5, 2004 - 8:05 AM
#24

BTW – to validate as xhtml 1.0 transitional, you need to close the img src with /> not only >

David Blangstrup wrote on June 5, 2004 - 8:30 AM
#25

Oh yes, thank you! I would like to have no mood icon at all if the post doesn’t have one specified. That would be nice! For now all my older posts show a blank face! :-)
BTW — now I get this error in the custom field: Database error: [Got error 12 from table handler]
SELECT meta_key FROM wp_postmeta GROUP BY meta_key ORDER BY meta_id DESC LIMIT 10
But the mood plugin is working, there’s just not any drop down to choose from!?

David Blangstrup wrote on June 6, 2004 - 1:39 AM
#26

Yes, thank you, that would be very nice – with no mood icon at all if none is chosen! BTW I get this error in the custom field now: Database error: [Got error 12 from table handler]
SELECT meta_key FROM wp_postmeta GROUP BY meta_key ORDER BY meta_id DESC LIMIT 10
but the icon shows up alright, I just don’t have a dropdown menu to choose from!?
BTW#2: Don’t you think your visitors gets a little tired of putting in strange code that’s hard to read, or very tired of seing their posts disappear if they’ve forgotten to put in that tiresome code? Are you not using WP? Certainly approving comments as I can see you’re doing should be enough?

David Blangstrup wrote on June 6, 2004 - 1:43 AM
#27

Sorry, the database error must have been a temporary one, as it’s gone now. :-)

David Blangstrup wrote on June 6, 2004 - 1:47 AM
#28

New version up that won’t print out blank icons for old posts or posts without moods attached. Also made it xhtml 1.0 transitional.

Gudlyf wrote on June 6, 2004 - 12:22 PM
#29

Very nice! Thank you! :-)

David Blangstrup wrote on June 7, 2004 - 12:07 PM
#30

I’ve successfully installed the moody plugin on my blog! But, is there any way to set it up or modify the code, so that the moody face appears after the name of the person that is posting and not after the time? I’ve already modified it a little bit, so that it only shows the icon.

thanks!!

Naza wrote on June 16, 2004 - 11:31 AM
#31

Well, you should be able to edit the line towards the end of the code that says “the_time” to “the_author”, but in my testing so far it’s not working. I’ll see if anyone knows why.

Gudlyf wrote on June 16, 2004 - 11:53 AM
#32

I’m confused on this plug-in. I’m pretty sure I have just totally missed something but I’m not sure what it is. I uploaded both the smiles and the plug-in. I activated it but then what? I get lost there. Everytime I try to post an entry now I get this error message.

Warning: Cannot modify header information – headers already sent by (output started at /home/pk/public_html/wordpress/wp-content/plugins/moody.php:35) in /home/pk/public_html/wordpress/wp-admin/post.php on line 146

Thanks for any and all help. :)

Tarah wrote on June 30, 2004 - 11:20 AM
#33

Hrm. Well, what you’re supposed to do is add a custom field to your post with a key called “mood” then put one of the moods as the value. When you make a post, go to Advanced Editing and you’ll see at the bottom a place to put custom fields. So with the icons I provided, try “blank” as a test. I’m not sure about the error you get, though.

Gudlyf wrote on June 30, 2004 - 11:53 PM
#34

For Tarah, I suggest you should check your post.php and moody.php. Wether they had some spaces (or lines) after the “?>” (its in the end of the php file), if it have these space/lines you should delete it. I know maybe you find it weird but when my host have that cpanel and i use its text editing tool to edit my b2 pages (i get that case when i use b2), after i editing i get that sort of “Cannot modify header information – headers already sent ” error messages, and after i do that (deleting the spaces & lines after “?>” ) everything goes well.

Hope that help

Bocah79 wrote on July 3, 2004 - 1:28 PM
#35

Hey, that’s a fabulous plugin… it worked like a charm for me. Thank you.

jafer wrote on July 5, 2004 - 9:43 PM
#36

Loving this plugin, just wondering like David did – is there anyway to have a dropdown menu with all the moods to choose from?

kasper wrote on July 13, 2004 - 11:43 AM
#37

Unfortunately I couldn’t do a pull-down without requiring people to manually edit files. If that’s ok with most people, I can probably do it.

Gudlyf wrote on July 13, 2004 - 12:44 PM
#38

I’m personally fine with manually editing – if you could do a pull-down I’d love to use it.

kasper wrote on July 13, 2004 - 12:55 PM
#39

I would like to use this on my webblog, however, wehn I try to activate the moody plug in, I cannot login and I can not edit in advanced mode. What am I doing wrong?

Christina wrote on August 5, 2004 - 5:34 PM
#40

is there anyway to have the mood show up anywhere besides next to the time?

Anonymous wrote on August 21, 2004 - 4:24 PM
#41

Thanks..:D

Anonymous wrote on August 29, 2004 - 6:50 AM
#42

test..:P

Anonymous wrote on August 29, 2004 - 6:52 AM
#43

I realize that alot of you would like your moods to show up in a different place other than after the time, so here is what I did (I have not yet gotten it to work after the author though):

1. First (and this is a preference thing – you can leave it if you want to), on line 25 I removed:
print '  ';

2. Second (and again, this is a preference thing), on line 26 I edited:
print '(Current Mood: ';
I wanted it to say my mood without the parentheses and start a new paragraph – with my changes, the code looked like:
print '<p>my mood: ';

3. Third (you can skip this is you want the parentheses or you don’t want a new paragraph), on line 27 I changed the code to:
<img src="' . get_settings('siteurl') . $mood_icon_dir . $mood . $mood_icon_ext . '" alt="' . $mood . '" title="' . $mood . '" /></p>';

4. Finally, on line 31 I edited the code which read:
add_filter('the_time', 'moody')
I changed it to:
add_filter('the_cateogory', 'moody')

Once you’re done, save it, upload it, try it out. You should now have a mood starting a new paragraph just after your category (reminder – if you are using CSS to style your paragraph, your mood text will take on those properties – you may want to use a span for it which is what I did).

Hopefully this helps out some peeps :)

Teli aka the uniek 1

teli wrote on August 30, 2004 - 5:06 PM
#44

you can see the modified code in action on my blog at http://www.mildinsanity.com/ :)

teli wrote on September 6, 2004 - 10:44 PM
#45

I have the same problem I think as Christina in comment 34.

When moody is activated I get errors about header information having been already sent. This prevents me from reaching the log in page. The error also shows in Options when changing Write options to Advanced Controls (though the action did work) and also when posting a comment to a blog entry (again, I got the error but the comment posted OK)

I’ve just set up a multi-user blog at http://www.woolgathering.org.uk/soi2004/ and want to provide moods as a service to my users but I don’t want them (net novices as they appear to be) to have to deal woth error messages.

Grateful for help and advice on this one. Moody plugin is currently DEactivated at the blog address I have given.Let me know by email if you want it turning on for testing purposes.

Thanks

Beth

Beth wrote on September 8, 2004 - 12:23 PM
#46

Sorry – forgot to say am running Mingus 1.2 release of WP

Beth wrote on September 8, 2004 - 12:23 PM
#47

Cancel the plea for help.
Problem identified as a stray line return at the end of the php file.
User error :-)

Moods working fine and looking very striking. Many thanks

Beth wrote on September 8, 2004 - 12:32 PM
#48

if anyone’s still interested in a mood indicator for their online community.. I’m about to release mine.

“myMood”
I’m FINALLY releasing it.. after keeping it a Vidman.ca exclusive for over two years. It’s a phpBB MOD, so if any of you run a board, contact me on Vidman.ca

You can try it out @ http://vidman.ca/forum
After you create an account, go to the blogs to really see it in action.

vidman wrote on October 31, 2004 - 8:29 AM
#49

Moody Plugin updated
I downloaded Moody Plugin for wordpress a few days back. I needed it as I was missing lj. It was almost what I needed, but it showed a broken image if the mood’s image wasn’t present in the moods directory. The plugin works great for wp/computer lite…

A Weird Soul wrote on November 8, 2004 - 4:25 AM
#50

Moody Plugin enhanced
While browsing the wordpress plugins section I came across the Moody plugin. Having had a taste of using LiveJournal for a few days, I figured I could use this. But wait, LiveJournal also lets you specify the Song you’re currently listening to. I want…

marcus’ scrappad wrote on November 9, 2004 - 3:03 AM
#51

Perhaps unrelated – but how did you get the authorization code included in submission form? What plugin is that?

Jonah wrote on November 27, 2004 - 2:33 AM
#52

That’s done via AuthImage.

Gudlyf wrote on November 28, 2004 - 1:35 PM
#53

This is great! Is there a way to actually write the name of the mood, ie: sleepy happy, somewhere near the smilie? Thanks.

Mau wrote on November 28, 2004 - 10:12 PM
#54

Well, looks like my attempts at hacking worked! =)

In answerto #53, I added one line (echo $mood):


print '  ';
print 'Current Mood: ';
print '' . $mood . '';
echo $mood;

To see it in action. look at my site at Everyday Trickster Weblog

Otherwise, thosejumping bears don’t really tell you much…..

Lokrin wrote on November 30, 2004 - 1:19 PM
#55

Something happened, that should be:


print '  ';
print 'Current Mood: ';
print '' . $mood . '';
echo $mood;

Lokrin wrote on November 30, 2004 - 1:23 PM
#56

Hmmm… The print statements aren’tshowing, must be a spam or virus filter, I suppose, anyway, I think you see what I’m getting at.

Lokrin wrote on November 30, 2004 - 1:24 PM
#57

I see what you’re driving at, unfortunately I have no idea what to do about it!

I’m assuming if I could get this to work, I would just include the comment “title” in the new field?

Mau wrote on November 30, 2004 - 8:35 PM
#58

open the file:
/wp-content/plugins/moody.php

Near the bottom you will see three print statements. After the third (last) statement, just add
echo $mood;

Lokrin wrote on December 1, 2004 - 6:45 AM
#59

Does this use the name of the image file, ie: angry.gif would be mood: angry? Or do you enter your own mood…if so how?

Mau wrote on December 2, 2004 - 4:32 PM
#60

Just echo $mood; and not all that other stuff?

Mau wrote on December 2, 2004 - 4:33 PM
#61

Personally I think it looks neater if you enter
echo $mood;
before the 3rd print statement as it keeps everything within the brackets.

Phil wrote on December 19, 2004 - 1:04 PM
#62

Is the ‘mood’ supposed to show up before the comment? Or after?
Mine shows up right under “Filed under:” and right above “Edit This” in a post.

Any way to get it to show up after the post?

Jonah wrote on January 3, 2005 - 10:36 PM
#63

Hi! I have it like this

add_filter(‘the_title’, ‘moody’);

But Then I get a “> at the beggining of the title of any single post. Any ideas how to solve this?

Alejandro wrote on February 16, 2005 - 2:11 AM
#64

Alejandro — It looks like the title info goes through yet another filter before being posted, so it’s garbling the image information. It may have to do with the fancytooltips you’re using as well.

Gudlyf wrote on February 16, 2005 - 9:30 AM
#65

is there any other way to have it in the title? :( the problem is that in 1.5 the moods will be displayes twice after the post :( Any ideas?
thanks

Alejandro wrote on February 16, 2005 - 10:49 AM
#66

Sorry to bug you but I’m using the plugin with 1.5 Strayhorn. Everything worked fine when I was using beta 1.5, but now it seems that it also puts the mood into the comments page – twice.

Do I have the code in the wrong spot or something? How can I stop it from showing up with the comments?

Thanks for your help.

jafer wrote on February 27, 2005 - 6:28 PM
#67

jafer — Do you have a page I can see this happening on?

Gudlyf wrote on March 1, 2005 - 3:11 PM
#68

kool

ashley wrote on March 1, 2005 - 8:18 PM
#69

I don’t know how to use the plugin. I have activated the plugin. Now what am I supposed to do? How do I get a list of the moods?

AJ wrote on March 5, 2005 - 1:12 PM
#70

I have installed and activated the plugin. What do I do now? How do I show moods in my posts? Is there a dropdown box functionality available?

AJ wrote on March 5, 2005 - 1:27 PM
#71

I have installed and activated the plugin. But no list of the mood icon appears. What am I supposed to do next? Pls help me out

AJ wrote on March 5, 2005 - 1:30 PM
#72

I just tried to install this into a clean copy of WP1.5 Strayhorn and got a number of errors like this:
Warning: Cannot modify header information – headers already sent by (output started at /home/blogoman/public_html/blahblahblog/test/wordpress/wp-content/plugins/moody.php:2) in /home/blogoman/public_html/blahblahblog/test/wordpress/wp-admin/admin.php on line 6

Once I went to the Dashboard, I got an error “Fatal error: Cannot redeclare class magpierss in /home/blogoman/public_html/blahblahblog/test/wordpress/wp-includes/rss-functions.php on line 14″

Any tips? (Let me know if you need more info. Thanks!)

Christine wrote on March 9, 2005 - 2:02 AM
#73

Wordpress Plugins

I’ve finally got around to doing a list of the plugins I’ve installed for Wordpress.

The Wordpress Plugin Database, with a full list of Wordpress Plugins can be found here.

I personally had no problem installing any of them, so if you have had …

Philosophy Of wrote on March 9, 2005 - 5:03 PM
#74

I installed and activated the moods plugin
all seems well until displaying the current moods icon itself.
A placeholder displays, the alt text displays, but no image!
I checked ownership and perms of the moods image directory, all is as it should be.

my webserver error-log states the following:
[QUOTE]
[Fri Mar 11 12:54:24 2005] [crit] [client xxx.xxx.xxx.xxx]
(13)Permission denied:
/usr/local/apache/virtual/path_to_vsite/html/wordpress/wp-content/plugins/moods/.htaccess pcfg_openfile:
unable to check htaccess file, ensure it is readable,
[/QUOTE]
now in the mood image directory, I *created* a .htaccess in response to this error message, chowned and chmod’d it
as required, yet it made *no* difference
can anyone suggest what WP wants me to do here?
I *should* add that this is WP1.5

Colin wrote on March 11, 2005 - 8:04 AM
#75

Did anyone ever get the mood dropdown list code done? I for one would be most seriously interested in using it. I’d say that is almost a “must” if you have an image collection of any significant size.

Colin wrote on March 11, 2005 - 9:08 AM
#76

Re: 74 above, moods now work. It required creating a .htaccess in the moods directory, then chmodd’ing the moods dir to 777 (reload page) then down to 755. Haven’t chmodd’d downwards beyond 755 yet, it might work, it might not! :)

Colin wrote on March 11, 2005 - 9:10 AM
#77

Sorry it took so long for me to get back to you – about the mood showing up twice in the comments. You can go to my site (linked to my name) and click on “you talking to me” if there are no comments, or click on “1 comment” if there are comments.

Then you’ll see down the page where it shows the time and stuff, that there are two mood icons showing up.

Here’s a link to a specific post if you want:

http://www.idiotonastick.com/talk/?p=68#comments

Thanks for your patience :)

jafer wrote on April 18, 2005 - 6:55 PM
#78

Hallo, for the life of me I can’t get this script to work. I’ve tried adding in a new field: moody value: happy, but it doesn’t seem to work. If anyone can point me in the right direction, that would be greatly appreciated. I’ve seeen and viewed some of the websites with this script running and I’m impressed, so hopefully someone out there will be able to help me get this going. Oh yeah, as far as the problem goes, it doesn’t seem to recognize the added field.

Satoshi wrote on May 2, 2005 - 2:03 AM
#79

I re-installed this script and it works now, yay me!

Satoshi wrote on May 2, 2005 - 3:07 PM
#80

Long time ago I tried to put the mood in the title but I allways got a "> before the title, playing a little 5 minutes ago I got it working ok. If you want to put it in the title, you have to delete the "> from line 27 it should look like this:
print '
Then
add_filter('the_time', 'moody'); for add_filter('the_title', 'moody');
And it will work :D

Alejandro wrote on May 20, 2005 - 6:41 AM
#81

something happened while i was writing and you can’t see what I meant, it should look like this:
print '<img src="' . get_settings('siteurl') . $mood_icon_dir . $mood . $mood_icon_ext . '" alt="' . $mood . '" title="' . $mood . '"';
then change add_filter('the_time', 'moody'); for add_filter('the_title', 'moody');

Alejandro wrote on May 20, 2005 - 6:45 AM
#82

I forgot one more thing:
look for this:
<h3 class="storytitle" id="post-<?php the_ID(); ?>"> ... and at the end of that line add this </a>

Alejandro wrote on May 20, 2005 - 7:21 AM
#83

Hey Gudlyf, could you edit the comments so there is only one? :) because in my previous post I forgot to tell that the file I was talking about was index.php from the theme you are using. Sorry to bother!! :)

Alejandro wrote on May 20, 2005 - 7:23 AM
#84

Which one do you want deleted?

Gudlyf wrote on May 20, 2005 - 7:36 AM
#85

you can make a resume of what I said, right? :)

Alejandro wrote on May 20, 2005 - 10:47 AM
#86

Really cool plug-in. Is there a way to get the moods to show up as a menu and you could just click ? Sort of like wp-smileys. Thanks!

Mandy wrote on May 26, 2005 - 7:55 PM
#87

Hi
I cant get the plugin to work, it says Headers already sent by header when i activate the plugin. What to do?

Martin wrote on June 3, 2005 - 11:03 AM
#88

[...] btw it’s a wordpress plug in from gudlyf called moody. [...]

pocket change » testing wrote on August 2, 2005 - 7:33 AM
#89

Hi
I did like Alejandro said in post 81 and 82 and it works but it doesnt work when you click to comment or when you click on the title of the post. the icon shows up on two or three places on the comment page…

Martin wrote on September 3, 2005 - 9:25 PM
#90

I’m having the same issue mentioned in comment #77. If I view comments for an entry with a mood, the mood icon shows up in two places. Is there a way to change this?

Nina wrote on September 16, 2005 - 12:54 AM
#91

[...] So yea, one thing i did miss was the “Moods” from LJ so I went looking for a plugin to do that and found a nice one. [...]

#92

wheres the step by step installation please thjanks

rose wrote on September 23, 2005 - 2:14 AM
#93

[...] edit: w00t added mood plugins from here that i found on Alex’s Blog [...]

Mystical Parrot » Blog Archive » Fucking Ebuyer wrote on September 26, 2005 - 4:29 PM
#94

Fatal error: Cannot redeclare moody() (previously declared in /www/a/abductedelena/htdocs/wordpressblog/wp-content/plugins/current-mood.php:75) in /www/a/abductedelena/htdocs/wordpressblog/wp-content/plugins/moody.php on line 12

heeeeeellllllllllllllllllllllllllllllllpppp

Elena wrote on September 28, 2005 - 2:27 AM
#95

Hi,

Thanks for the great plugin! Just an idea you might want to consider for future versions (I’ve customised my version to do this) …

How about you add a conditional statement that checks whether the first letter of your mood is a vowel. Using this information you might render the following as alt text:

“I posted this when I was in a good mood.”

or

“I posted this when I was in an angry mood”

Just a thought :-)

Nathanael wrote on October 20, 2005 - 11:22 AM
#96

Thanks to everyone who posted tips in this thread. My first installation of this plug-in gave me four seperate images spaced all the way through my date field but I followed the advice here and now have it showing just once at the bottom of my post. It looks great.

Tarragon wrote on November 26, 2005 - 5:18 PM
#97

Hi guys I figured it all out. I just wanna say this so that you guys can be happy.

1. WHERE you want to see your mood icon? Find this in the moody.php file:
add_filter( ‘the_time’, ‘moody’);
this tells wordpress where to put the mood icon. in this example it tells wordpress that it wants the mood icon next to the time. if I want it next to the title I would put it like this:
add_filter( ‘the_title’, ‘moody’);
1.a. If you want to figure out what the codes are, it’s all in the templating in the Themes Editor section.
eg was in the main template.
1.b. to change the plugin file it must be chmodded to be writeable before you edit it. or you can change it offline and then upload it.
1.c. It won’t work if you put mood before the title. well at least I havent figured that one out.

2. NAME next to the Mood icon – as in you want it to show the icon and then the word next to it. Just insert:
‘ . $mood . ‘ – notice the spacing, you must insert that as well, dont take out the spaces unless you know what you’re doing.

3. HOW to add moods to posts:
3.a. You must have the advanced editing turned on – that’s in the admin> options> Writing> and choose “Advanced Controls”

3.b. If you have turned the Advanced Controls on, go to admin> Write> Write Post. when you scroll down, you should see another panel titled “Advanced”. In the botton of this panel there’s custom fields. This is where you insert it.

3.c. To insert it, if first time, in the key section type in ‘mood’ and in the value section type in ‘bored’ or some mood icon that you have but dont put in the ‘.gif’ .
Don’t click on the ‘publish’, click on ‘add custom field’
The page will reload as it saves it. then you’ll see a draft copy at the top of the Write Post page, click on that and the post will show up… do whatever and publish.
The reason why you click on ‘add custom field’ is so that the next time you make a post, you can just use the drop down menu and choose mood. then type in whatever mood you’re in. otherwise it’s just blank.

4. if you have done all of the above and the icon doesn’t show. it’s probably because one of the syntax shouldn’t be there or you’ve chmodded the folder ‘moods’ to writeable – it must be 744 or 755. or the icon that you’ve called is not in the folder.

PS. I’m seriously thinking about making a plugin similar to this, but with a list of mood images available instead of ‘just knowing what you got’. Also that you dont have to change the code, just add the mood code where you want it to show. Please do go to my journal and leave a comment about it if you’re interested.

jenseeka wrote on November 29, 2005 - 2:27 AM
#98

Hi There,
Where do I go to change the location of where the moody shows. I want it in the post its self, not in the title bar. As of right now I have an avatar there, but would rather have the mood show up there. Do you are anyone know how to do this? To see what I mean, please view my site. Thank you in advance. Cathie

Cathie wrote on December 20, 2005 - 5:02 PM
#99

Hi There,
Added a comment yesterday and now I don’t see it. I was able to get the moody to show up in the post itself, however I would like it at the begining of the post, not the end. I have tried the different coding as per your post above, but for some reason I can not get it to show at the begining. If you can please let me know how to get it in the same spot as the avatar, I would be so happy. Please.
Thank you, Cathie

Cathie wrote on December 21, 2005 - 5:24 AM
#100

Hi There again, see my post came back. How odd it was not there this morning.

Update, for those who would like to do this, I have figured out how to add your moody before your post, acting as your avatar.

Step one: because you need a place for the Moody to go, (in the add filter code itself) I changed it to a an area that is not part of the code in my theme.
Example ” add_filter(‘comments_popup’, ‘moody’); I was getting an error with nothing in there. When I did this it was fine and it did not show up. (if anyone has a way to fix this, please let know)

Step two: Add this code into your themes css file
.moody{
padding: 3px;
float: left;
background-image: url(http://*yoursitename.com/filelocation*/wp-content/plugins/moody.php);
background-repeat: no-repeat;
margin-left: 2px;
margin-top: 12px;
/* IE Bug Fix */
display: inline;
}

Step Three: Place this code right before your content area.

Example of where I put mine: ( )

It works great. No errors and it is showing up right where I want it to.

Thanks for a great plugin.

Cathie wrote on December 21, 2005 - 11:32 AM
#101

[...] Don’t mind me, I’m just testing Gudlyf’s mood plugin [...]

Playing With Myself » Moody is as moody does wrote on January 12, 2006 - 10:23 PM
#102

Works Great ! thank you for this plugin ! :)

laptop wrote on January 26, 2006 - 2:20 PM
#103

Does anybody get this plugin to work with WP2.01? If you do please share the modified code with us.
thanks

Rocky wrote on February 11, 2006 - 2:12 AM
#104

well i read all the comments found the answer but i dont get it.
THE TROUBLE IS:
WHEN I PUBLISH THE POST THE ICON APPEARS TWICE IN MEAN THE ICON AFTER THE DATE AND OTHER AFTER THE HOUR..WHY IS THAT???

WELL HOPE AND ANSWER
SEE YA

sergio wrote on April 7, 2006 - 10:01 PM
#105

Haha, love it. Couldn’t get the plugin to work on WP2 though either…

Work From Home wrote on May 23, 2006 - 6:14 AM
#106

If you are having the dreaded headers output error, make sure there is no garbage in the PHP code for the plugin… Typically this would include carriage spaces before and after the opening and closing tags…

I deleted one from the beginning and end of the plug-in and all is fine for me!

daload wrote on May 28, 2006 - 11:38 AM
#107

Are you still working on this plugin?
I get this error when I activate it :(
I am running Wordpress 1.5.1.2
What am I doing wrong?
Help me please!

Xnxx wrote on June 7, 2006 - 9:26 AM
#108

[...] Moody: Enter your mood in the Custom Field section of your post entry and the plugin will display in your theme below the time. Sounds good but the plugin doesn’t work with Wordpress 2.0 and up. Plus you have to do your configuration in the php file. [...]

Garinungkadol » Blog Archive » In a mood wrote on December 15, 2006 - 9:12 PM
#109

[...] Visit [...]

WP Plugins DB » Blog Archive » Moody wrote on May 20, 2007 - 2:28 AM
#110

Very funny! a must have, thanks!

Thibaud wrote on May 21, 2007 - 3:28 AM
#111

Great, I want to change the images to mine own.

Financial Domination wrote on July 8, 2007 - 10:50 PM
#112

Thanks for this great plugin!!

coutie wrote on December 16, 2007 - 12:28 PM
Both comments and pings are currently closed.