Current Mood
Plugin Name: Current Mood
Description: Adds a “Current Mood” icon to each post at end of post context. Unzip moods into wp-content/plugins/moods and activate plugin. Use the dropdown option to select a current mood.
Version: 1.2.2
Plugin URI: http://kouloumbris.com/plugins/current-mood/
Author: Constantinos Kouloumbris
Author URI: http://kouloumbris.com/
Adds a “Current Mood” text with a mood image you choose from a list and a either a custom message or the image name. Unzip or untar the contents of the archive placing the file named current-mood.php into the wp-content/plugins folder and either the included folder named moods or your own moods into a folder by the name moods under the wp-content/plugins folder.
Note: If you change the mood images from .gif to another extension go into the plug-in source code file (that’s the current-mood.php file) and change the variable $imgtype = '.gif'; to whatever the extension of your images is, but remember all your images must be the same extension. If an image doesn’t exist and you have an image named noicon then that will be shown instead.




















August 12th, 2005
I know I have dementia however after upload current-mood.php editing the filed to point to my /home/etc/etc/
I still do not see your plugin in my pluging directory to activate it ?
August 12th, 2005
The only thing that you have to do, is to copy the code and past it into a file that you have named
current-mood.phpafter that upload that file into yourwp-content/pluginsfolder. You will also need another folder into yourwp-content/pluginsfolder that you need to namemoodsand there upload all your mood images.You do not need to change the plugin source code.
August 12th, 2005
Hello!
files moods in plugins folder and your file current-mood.php in same dir I know dementia make me a bit weard to understand thing.
Thank you for your reply you may want to delt this one if you email me will send you info to log on and you can check it those not show up
Pierre
August 23rd, 2005
Right Costandine, I installed current mood but instead of getting the image I get a double text entry like restless restless :S I’ve changed a few things but still it doesn’t work
Have a look here to see what I mean http://www.acidsmile.co.uk/?p=34
On another note, on the source code it says:
$dir = "/home/cnemo/public_html/kouloumbris/devlog/wp-content/plugins/moods/";I assume that’s what Pierre has changed and so have I. U really mean it should stay the as is?
Cheers, Maria
August 23rd, 2005
This is not spam
Right solved the problem, its was in the image type, u’ve defined it as jpg while all the images in the folder where gifs. Made the replacement and it works like a charm
Cheers
August 25th, 2005
@Maria T
Yes you are right the line needs changing I will figure a way out of it as soon as I can.
August 26th, 2005
Hello,
Thanks for this cool plugÃn… but I don’t know why, It only reads 5 of the 7 images of the dir. I tried deleting one of the files it detected and, read only 4.. so I don’t understand anything.
Thanks in advance.
August 27th, 2005
@Shuugo
The images have to have an extension of .jpg maybe thats why id doesn’t read the other images. But you don’t give me much here so that I can tell.
August 27th, 2005
All the extensions are in jpg, thats why I don’t understand, and they are random sizes, but it reads larger and smaller files, so It isn’t for the size neither…
Thanks
September 9th, 2005
I got the plugin to show up however not the images (box w/red X) and I did change the .jpg to .gif where I could find it. My path is correct and I changed the path from yours to mine: /public_html/mysite/blog/wp-content/plugins/moods/
Drop down box is there as well but nothing in it, lol cannot figure out what I am doing wrong. Hope you can help.
September 9th, 2005
@myst
Actually you need the full server path. That means that just becuase you see /plublic_html/mysite/blog/wp…. in your ftp that doesn’t mean that it is the full server path. Usually there is something before that. Mine is /home/cnemo/plublic_html/… notice the /home/cnemo/ part. Try to find out the full path. You can ask your hosting if you can’t.
September 10th, 2005
I feel like a dunce for asking, but I am having a little trouble w/the plugin. It’s all installed, the dropdown menu works–just no images show up. All of the images are .jpg’s, so I’m not sure why it’s not working.
Thanks.
October 20th, 2005
IT’s cool and all, but couldn’t you do the same exact thing with custom fields, and it’s more customizable.
October 20th, 2005
Actually the plugin does make use of custom fields, but they are hidden.
October 24th, 2005
Okay…I have done this several times; once I got the first drop-down to at least list the mood names, but I continue to get a box w/ a red X for the image. I’ve saved all the images & changed JPG to GIF in the php file where I could find it.
I also input my full path…it still will not work. (WP site is http://pixelframe.org/blog)
What else could I be doing wrong?
February 3rd, 2006
To those who watch this feed for updates, I would like to inform you that there is a new version of the plugin for wordpress 2.0 and above. As always I am open to comments, suggestion or problems. Enjoy.
February 9th, 2006
i could not find the dropdown list box.
btw, i have installed the latest version.
help me. thanks!
February 9th, 2006
It’s on the sidebar of the write post page, you know where ‘categories’ is.
February 10th, 2006
it’s still missing. yay.
btw, the zip has two folders right?
_MACOSX+current-mood+(mood+DS_Store+_current-mood.php)
current-mood+mood+(mood+DS_Store+_current-mood.php)
i only upload these:
.php, mood folder (inside the current-mood folder)
what is DS_store?
im confused.
February 11th, 2006
OK, now I feel I need to check the archives.
All you need is the current-mood.php file and it should be in your plugins folder. The mood folder contains your current mood images so you don’t need to change that.
You can also find the code at the WordPress Plugins Developers site.
March 4th, 2006
Warning: getimagesize(/home/xxxx/public_html/xxxxx/wp-content/plugins/moods/.gif): failed to open stream: No such file or directory in /home/xxxxx/public_html/xxxxx/wp/wp-content/plugins/current-mood.php on line 73
Current mood: .
March 4th, 2006
Could you give me more info. Like what are you trying to do. Just coping and pasting the error message here doesn’t help much.
March 5th, 2006
Actually I had more in the post and somehow it didn’t show? In the current mood widget where you have the drop down menu in the sidebar is where the error is showing. There is nothing in the drop down menu to select and there is a noicon.gif in the moods folder which I know you need to have (I am using the mood folder that came with the plugin). I haven’t changed anything, all I did was activate the plugin and placed the mood folder where you instructed. Here’s a screen shot of what I am talking about http://faeriedreamz.com/currentmooderror.jpg
March 5th, 2006
I think you may have found a bug, if you don’t mind I would like to email you a revised code and see if this fixes the problem.
Just email me if you don’t mind testing it for me.
March 5th, 2006
Great! I just emailed you, yes I will test it for you.
March 8th, 2006
*bump*
same problem here …/.gif not found….
wp2.0.1
current-mood.php is in /wp-content/plugins and moods is in /wp-content/plugins/moods/
March 9th, 2006
That is strange, please give me some days to figure this out. Thanks.
March 9th, 2006
i had the same problem when testing the plugin initially. because the moody field is left blank, when doing whatever it does in the background to match the moody image to the moody label, it tries to find a “blank”.gif
what is missing is a .gif file [or whtvr file type you have your moodies in] in your image folder
you need to create another blank [preferably 1x1] image and drop it in your moodies folder. ie blank.gif and rename it to .gif
that solved the problem for me
March 9th, 2006
actually here is the one i am using
u need to select all on the page to see it as it is transparent on white and 1px by 1px
March 9th, 2006
Thanks for the input acidsmile I will try and solve this “bug”.
March 19th, 2006
acidsmile’s solution didn’t work with me , did you reach to a solution to this bug Constantinos ?
My Wp is 2.02
March 19th, 2006
Not yet I’m afraid, it’s a tuff one to brake since I wasn’t able to reproduce it so far. I will update this post as soon as I have a fix.
April 20th, 2006
any development on the bug?
I’m getting the same error as well.
April 20th, 2006
Hi, I’m having problems with the plugin on wordpress 2.0+. Here’s a screen shot
April 20th, 2006
sorry, here’s the screen shot again Screenshot
April 20th, 2006
Screenshot
April 20th, 2006
@Ted
I am sorry but that screenshot doesn’t tell me anything. Could you explain I am sorry but that screenshot doesn’t tell me anything. Could you explain more what’s the problem.
@Omitshu
Could you give me more feedback since I am not able to reproduce the error.
May 2nd, 2006
I have installed the script and it works but is there a way to place it before the post and not under it?
If you do not know what I mean go to my website: http://timetotry.org – you see that the current mood is under the post and I want it on top of the post.
Zeinobia; I needed a blank.jpg and a .jpg image to make it work. Maybe it will work for you as well.
May 2nd, 2006
@Elisabeth , I tried your advice but it didn’t work , do these .jpg images need to have a certain size ?
May 3rd, 2006
Zeinobia; I kept the sizes the same as my other mood pictures (they are all the same size)
May 7th, 2006
Just installed (and activated) this plugin, but I do not see the dropdown menu anywhere while writing a post
May 7th, 2006
@Possum
On the right of the post main text area where you choose a category. It’s somewhere under there.
May 9th, 2006
Hmm…nope, not there, but… I was just thinking…the other plugins I have enabled are defaults such as markdown. Perhaps I have to do some server-side config, such as enabling write access to one (or more) directories?
Thanks
May 30th, 2006
@Possum
You should be able to see plugin menu even if you don’t have the right chmod (which is 777 for directories and 666 for files).
June 6th, 2006
The code i downloaded from your website … uses rtrim() for directory stuff…
Replace:
$curpath = rtrim($_SERVER['PHP_SELF'], “wp-admin/post.php”);
With:
$curpath = dirname($_SERVER['PHP_SELF']) . ‘/..’;
June 6th, 2006
Oh, and also:
Replace:
substr($file, 0, -4);
With:
basename($file, $imgtype);
June 13th, 2006
There is a new version in the works, will update as soon as I have something final or if I need some beta testers.
July 21st, 2006
at last it worked with my blog thank God
it is wonderful
Now Constantinos I got one silly question ,I am using K2 too and I got borders around my images in the CSS which the moods inherit too
I don’t want borders around my moods
is there a way in the CSS to make the moods got no border !!??
thanks for this wonderful plugin
August 13th, 2006
I received an error..it says:
can somebody solve this problem!?!!!
August 13th, 2006
@Zeinobia
I think the code you need is:
.itemtext img { border: none !Important; }Hope it’s works, and sorry for the late reply.
@Sheryl
Type this in your browser:
http://yourblogaddress.com/wp-content/plugins/moods/noicon.jpgand if you can’t see an image then you are missing an image when the plugin can’t find the image for the current mood you are using. If you can see one, let me know.