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.



Awesome!!! Ive been waiting for something like this, I was about to make my own tonight, seems you’ve saved me the headaches
Comment by Chris-Michael — May 29, 2004 @ 1:53 am
WP Plugin: Moody
This WP 1.2 plugin adds a mood icon to the beginning of each of your entries.
Trackback by Blogging Pro - Blog News, Tools and Hacks — May 29, 2004 @ 1:54 am
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?
Comment by David Blangstrup — June 4, 2004 @ 2:14 am
Key should me “moody” and Value needs to be the name of any of the mood files, minus the .jpeg. Get it?
Comment by Gudlyf — June 4, 2004 @ 2:31 am
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?
Comment by David Blangstrup — June 4, 2004 @ 3:41 am
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?
Comment by Gudlyf — June 4, 2004 @ 6:54 am
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…
Comment by David Blangstrup — June 4, 2004 @ 10:18 am
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?
Comment by Gudlyf — June 4, 2004 @ 10:25 am
Nada. Nothing happens, just the blank mood (very appropriate now :-|)
Comment by David Blangstrup — June 4, 2004 @ 11:03 am
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.
Comment by David Blangstrup — June 4, 2004 @ 11:06 am
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!
Comment by David Blangstrup — June 4, 2004 @ 11:13 am
But it’s strange… I still can’t add moods to existing posts :-S
Comment by David Blangstrup — June 4, 2004 @ 11:23 am
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
Comment by Gudlyf — June 4, 2004 @ 11:24 am
Thanks!
Comment by David Blangstrup — June 4, 2004 @ 11:27 am
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!
Comment by David Blangstrup — June 5, 2004 @ 6:25 am
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.
Comment by Gudlyf — June 5, 2004 @ 8:05 am
BTW - to validate as xhtml 1.0 transitional, you need to close the img src with /> not only >
Comment by David Blangstrup — June 5, 2004 @ 8:30 am
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!?
Comment by David Blangstrup — June 6, 2004 @ 1:39 am
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?
Comment by David Blangstrup — June 6, 2004 @ 1:43 am
Sorry, the database error must have been a temporary one, as it’s gone now.
Comment by David Blangstrup — June 6, 2004 @ 1:47 am
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.
Comment by Gudlyf — June 6, 2004 @ 12:22 pm
Very nice! Thank you!
Comment by David Blangstrup — June 7, 2004 @ 12:07 pm
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!!
Comment by Naza — June 16, 2004 @ 11:31 am
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.
Comment by Gudlyf — June 16, 2004 @ 11:53 am
[...] 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 [...]
Pingback by x72x | v.1 — June 23, 2004 @ 12:02 pm
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.
Comment by Tarah — June 30, 2004 @ 11:20 am
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.
Comment by Gudlyf — June 30, 2004 @ 11:53 pm
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
Comment by Bocah79 — July 3, 2004 @ 1:28 pm
Hey, that’s a fabulous plugin… it worked like a charm for me. Thank you.
Comment by jafer — July 5, 2004 @ 9:43 pm
Loving this plugin, just wondering like David did - is there anyway to have a dropdown menu with all the moods to choose from?
Comment by kasper — July 13, 2004 @ 11:43 am
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.
Comment by Gudlyf — July 13, 2004 @ 12:44 pm
I’m personally fine with manually editing - if you could do a pull-down I’d love to use it.
Comment by kasper — July 13, 2004 @ 12:55 pm
[...] 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 [...]
Pingback by Crazy Ranting Lady — July 28, 2004 @ 5:25 pm
[...] 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 [...]
Pingback by *Acquiescent Acrimony » Sikozi’s Genius in the Works : sweet funky mixed up nothings... — August 4, 2004 @ 3:35 pm
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?
Comment by Christina — August 5, 2004 @ 5:34 pm
[...] ~ 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 [...]
Pingback by un-advertised :: no dice. — August 5, 2004 @ 7:14 pm
[...] ~ 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 [...]
Pingback by un-advertised :: Daily Plug v 1.0 — August 5, 2004 @ 10:49 pm
[...] Aftab @ 4:09 pm (Current Mood: )
Ohh look Moods - this could be fun Gudlyf’s World ? WordPress Plugin: Moody [...]
Pingback by theaftab's verse » Gudlyf’s World ? WordPress Plugin: Moody — August 18, 2004 @ 4:02 pm
[...] 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 [...]
Pingback by who cares ?! » Just added a new plugin — August 20, 2004 @ 11:02 am
is there anyway to have the mood show up anywhere besides next to the time?
Comment by Anonymous — August 21, 2004 @ 4:24 pm
Thanks..:D
Comment by Anonymous — August 29, 2004 @ 6:50 am
test..:P
Comment by Anonymous — August 29, 2004 @ 6:52 am
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
Comment by teli — August 30, 2004 @ 5:06 pm
you can see the modified code in action on my blog at http://www.mildinsanity.com/
Comment by teli — September 6, 2004 @ 10:44 pm
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
Comment by Beth — September 8, 2004 @ 12:23 pm
Sorry - forgot to say am running Mingus 1.2 release of WP
Comment by Beth — September 8, 2004 @ 12:23 pm
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
Comment by Beth — September 8, 2004 @ 12:32 pm
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.
Comment by vidman — October 31, 2004 @ 8:29 am
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…
Trackback by A Weird Soul — November 8, 2004 @ 4:25 am
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…
Trackback by marcus' scrappad — November 9, 2004 @ 3:03 am
Perhaps unrelated - but how did you get the authorization code included in submission form? What plugin is that?
Comment by Jonah — November 27, 2004 @ 2:33 am
That’s done via AuthImage.
Comment by Gudlyf — November 28, 2004 @ 1:35 pm
This is great! Is there a way to actually write the name of the mood, ie: sleepy happy, somewhere near the smilie? Thanks.
Comment by Mau — November 28, 2004 @ 10:12 pm
Well, looks like my attempts at hacking worked! =)
In answerto #53, I added one line (echo $mood):
print ' ';
print 'Current Mood: ';
print '
echo $mood;
To see it in action. look at my site at Everyday Trickster Weblog
Otherwise, thosejumping bears don’t really tell you much…..
Comment by Lokrin — November 30, 2004 @ 1:19 pm
Something happened, that should be:
print ' ';
print 'Current Mood: ';
print '
echo $mood;
Comment by Lokrin — November 30, 2004 @ 1:23 pm
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.
Comment by Lokrin — November 30, 2004 @ 1:24 pm
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?
Comment by Mau — November 30, 2004 @ 8:35 pm
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;Comment by Lokrin — December 1, 2004 @ 6:45 am
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?
Comment by Mau — December 2, 2004 @ 4:32 pm
Just echo $mood; and not all that other stuff?
Comment by Mau — December 2, 2004 @ 4:33 pm
Personally I think it looks neater if you enter
echo $mood;
before the 3rd print statement as it keeps everything within the brackets.
Comment by Phil — December 19, 2004 @ 1:04 pm
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?
Comment by Jonah — January 3, 2005 @ 10:36 pm
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?
Comment by Alejandro — February 16, 2005 @ 2:11 am
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.
Comment by Gudlyf — February 16, 2005 @ 9:30 am
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
Comment by Alejandro — February 16, 2005 @ 10:49 am
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.
Comment by jafer — February 27, 2005 @ 6:28 pm
jafer — Do you have a page I can see this happening on?
Comment by Gudlyf — March 1, 2005 @ 3:11 pm
kool
Comment by ashley — March 1, 2005 @ 8:18 pm
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?
Comment by AJ — March 5, 2005 @ 1:12 pm
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?
Comment by AJ — March 5, 2005 @ 1:27 pm
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
Comment by AJ — March 5, 2005 @ 1:30 pm
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!)
Comment by Christine — March 9, 2005 @ 2:02 am
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 …
Trackback by Philosophy Of — March 9, 2005 @ 5:03 pm
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
Comment by Colin — March 11, 2005 @ 8:04 am
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.
Comment by Colin — March 11, 2005 @ 9:08 am
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!
Comment by Colin — March 11, 2005 @ 9:10 am
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
Comment by jafer — April 18, 2005 @ 6:55 pm
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.
Comment by Satoshi — May 2, 2005 @ 2:03 am
I re-installed this script and it works now, yay me!
Comment by Satoshi — May 2, 2005 @ 3:07 pm
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');foradd_filter('the_title', 'moody');And it will work
Comment by Alejandro — May 20, 2005 @ 6:41 am
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');foradd_filter('the_title', 'moody');Comment by Alejandro — May 20, 2005 @ 6:45 am
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>Comment by Alejandro — May 20, 2005 @ 7:21 am
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!! 
Comment by Alejandro — May 20, 2005 @ 7:23 am
Which one do you want deleted?
Comment by Gudlyf — May 20, 2005 @ 7:36 am
you can make a resume of what I said, right?
Comment by Alejandro — May 20, 2005 @ 10:47 am
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!
Comment by Mandy — May 26, 2005 @ 7:55 pm
Hi
I cant get the plugin to work, it says Headers already sent by header when i activate the plugin. What to do?
Comment by Martin — June 3, 2005 @ 11:03 am
[...] btw it’s a wordpress plug in from gudlyf called moody. [...]
Pingback by pocket change » testing — August 2, 2005 @ 7:33 am
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…
Comment by Martin — September 3, 2005 @ 9:25 pm
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?
Comment by Nina — September 16, 2005 @ 12:54 am
[...] 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. [...]
Pingback by DarkOrb’s Space » Blog Archive » The last plugin for tonight… — September 18, 2005 @ 6:08 pm
wheres the step by step installation please thjanks
Comment by rose — September 23, 2005 @ 2:14 am
[...] edit: w00t added mood plugins from here that i found on Alex’s Blog [...]
Pingback by Mystical Parrot » Blog Archive » Fucking Ebuyer — September 26, 2005 @ 4:29 pm
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
Comment by Elena — September 28, 2005 @ 2:27 am
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
Comment by Nathanael — October 20, 2005 @ 11:22 am
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.
Comment by Tarragon — November 26, 2005 @ 5:18 pm
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.
Comment by jenseeka — November 29, 2005 @ 2:27 am
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
Comment by Cathie — December 20, 2005 @ 5:02 pm
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
Comment by Cathie — December 21, 2005 @ 5:24 am
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.
Comment by Cathie — December 21, 2005 @ 11:32 am
[...] Don’t mind me, I’m just testing Gudlyf’s mood plugin [...]
Pingback by Playing With Myself » Moody is as moody does — January 12, 2006 @ 10:23 pm
Works Great ! thank you for this plugin !
Comment by laptop — January 26, 2006 @ 2:20 pm
Does anybody get this plugin to work with WP2.01? If you do please share the modified code with us.
thanks
Comment by Rocky — February 11, 2006 @ 2:12 am
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
Comment by sergio — April 7, 2006 @ 10:01 pm
Haha, love it. Couldn’t get the plugin to work on WP2 though either…
Comment by Work From Home — May 23, 2006 @ 6:14 am
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!
Comment by daload — May 28, 2006 @ 11:38 am
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!
Comment by Xnxx — June 7, 2006 @ 9:26 am
[...] 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. [...]
Pingback by Garinungkadol » Blog Archive » In a mood — December 15, 2006 @ 9:12 pm
[...] Visit [...]
Pingback by WP Plugins DB » Blog Archive » Moody — May 20, 2007 @ 2:28 am
Very funny! a must have, thanks!
Comment by Thibaud — May 21, 2007 @ 3:28 am
Great, I want to change the images to mine own.
Comment by Financial Domination — July 8, 2007 @ 10:50 pm
Thanks for this great plugin!!
Comment by coutie — December 16, 2007 @ 12:28 pm