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.

Donate

Comments (58) Trackbacks (5)
  1. 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 ?

  2. 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.php after that upload that file into your wp-content/plugins folder. You will also need another folder into your wp-content/plugins folder that you need to name moods and there upload all your mood images.

    You do not need to change the plugin source code.

  3. Hello!
    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 :( 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.
    Pierre

  4. 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

  5. This is not spam :P 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

  6. @Maria T

    Yes you are right the line needs changing I will figure a way out of it as soon as I can.

  7. 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.

  8. @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.

  9. 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

  10. 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.

  11. @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.

  12. 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. :)

  13. IT’s cool and all, but couldn’t you do the same exact thing with custom fields, and it’s more customizable.

  14. Actually the plugin does make use of custom fields, but they are hidden.

  15. 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?

  16. 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.

  17. i could not find the dropdown list box.
    btw, i have installed the latest version.

    help me. thanks!

  18. It’s on the sidebar of the write post page, you know where ‘categories’ is.

  19. It’s on the sidebar of the write post page, you know where ‘categories’ is.

    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.

  20. 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.

  21. 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: .

  22. 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.

  23. 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

  24. 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.

  25. Great! I just emailed you, yes I will test it for you.

  26. *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/

  27. That is strange, please give me some days to figure this out. Thanks.

  28. 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

  29. 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

  30. Thanks for the input acidsmile I will try and solve this “bug”.

  31. acidsmile’s solution didn’t work with me , did you reach to a solution to this bug Constantinos ?
    My Wp is 2.02

  32. 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.

  33. any development on the bug?
    I’m getting the same error as well.

  34. Hi, I’m having problems with the plugin on wordpress 2.0+. Here’s a screen shot

  35. sorry, here’s the screen shot again Screenshot

  36. @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.

  37. 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.

  38. @Elisabeth , I tried your advice but it didn’t work , do these .jpg images need to have a certain size ?

  39. Zeinobia; I kept the sizes the same as my other mood pictures (they are all the same size)

  40. Just installed (and activated) this plugin, but I do not see the dropdown menu anywhere while writing a post :(

  41. @Possum

    On the right of the post main text area where you choose a category. It’s somewhere under there.

  42. 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

  43. @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).

  44. 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']) . ‘/..’;

  45. Oh, and also:

    Replace:
    substr($file, 0, -4);

    With:
    basename($file, $imgtype);

  46. There is a new version in the works, will update as soon as I have something final or if I need some beta testers.

  47. 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

  48. I received an error..it says:

    Warning: getimagesize(/home/********/public_html/wp-content/plugins/moods/noicon.jpg): failed to open stream: No such file or directory in /home/********/public_html/wp-content/plugins/current-mood.php on line 133

    can somebody solve this problem!?!!!

  49. @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.jpg

    and 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.

Leave a comment

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution.