Arrow

Update your Punkymoods from within WordPress — plugin

First published on July 8, 2006

This caps my recent scripting urge… and is the most fun of the bunch in my opinion!

For those who have an account at my Unkymoods revival, Punkymoods (go get an account if you don’t!) and who blog with WordPress, here’s the tool for you! It is a WordPress plugin that will allow you to update your mood from within the WordPress control panel. All you have to do is upload two php files to your plugin directory, configure the first few lines, and voilà — more Punkyfun!

Note: you must have a Punkymoods account first!

The Punkyplugin in action

—————————-

Download the Update Punkymoods WordPress plugin Version 0.4 (March 30, 2008)

Widget version:
Punkymoods widget plugin! It includes the usual “Update Punkymoods” plugin but you can also drag and drop the Punkymoods display in the sidebar. Fun times… fun times indeed. Follow the same instructions as listed below for the normal Punkymoods plugin, but make sure to upload the files into the widget folder (wp-content/plugins/widgets/)

Note: if you have a wordpress.com installation of WordPress, you cannot use this plugin :( wordpress.com does not allow users to install plugins…

—————————-

Brief instructions: download the plugin above. Unzip the two files inside to your WordPress plugins directory (likely /wp-content/plugins/). Log into your WordPress admin panel. Click on Plugins, then Plugin Editor, then Update Your Punkymood. Scroll down through the file until you see the lines “// set this to equal 0 for female, 1 for male, 2 to display all images” and “// enter your punkymoods login info”. Set the appropriate fields for your username, password, user id, and mood gender (all from punkymoods.com). Save your changes, go back to the Plugins menu, then activate the plugin. Go to the Manage menu to change your Punkymood from within WordPress!

Arrow

79 Responses to “Update your Punkymoods from within WordPress — plugin”


  1. Leah says:

    I love punkymoods! I even put it on my blog!


  2. Sara says:

    I seem to be having technical difficulties. Is there anywhere to get help?


  3. Peter says:

    Problem fixed!


  4. Krystalle says:

    Hi, I was wondering if there was a FAQ, or some type of readme for the install for this plugin? I also seem to be having technical problems.


  5. Krystalle says:

    Nevermind, fixed it. Just as a heads up, I was getting the error:

    Warning: fopen(): URL file-access is disabled in the server configuration in ../wp-content/plugins/readpunky.php on line 71

    Warning: fopen(http://www.punkymoods.com/wordpress/punkymoods.php?sex=0): failed to open stream: no suitable wrapper could be found in ../wp-content/plugins/readpunky.php on line 71
    could not open XML input

    Since I can’t get permission for fopen, I wound up having to add this in after line 10:

    $ch = curl_init($file);
    $fp = @fopen(“temp.xml”, “w”);
    curl_setopt($ch, CURLOPT_FILE, $fp);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_exec($ch);
    curl_close($ch);
    fclose($fp);
    $file = “temp.xml”;

    Thought you might want to know.


  6. Krystalle says:

    Just wanted to say thank you! :)


  7. Heather says:

    Maybe I’m an idiot, but download the files and then what?


  8. meowminx says:

    Cool! I used to use this when you first started it, and Im glad you have a plugin for WP! Thank you very much!


  9. ZitaKatalin says:

    … um, same problem here. Download files and then what???


  10. Steph says:

    I can’t get it to work either. Whenever I click on “Update Your Punkymood” I’m returned to this site.


  11. pineapple says:

    Hi there,

    I’m getting some errors similar to Krystalle

    Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/…/public_html/…/wp-content/plugins/readpunky.php on line 8

    Fatal error: Call to undefined function: curl_init() in /home/…/public_html/…/wp-content/plugins/readpunky.php on line 12


  12. Zena says:

    cooi, I want to have one :)


  13. Vishwas says:

    Hello

    I have just downloaded and activated punkymoods on my blog. But I’m using MistyLook theme with widgets enabled. Due to the widgets, the default sidebar plugin box is not visible. So I cant see my punkymood drawing. Can you help me out with this?

    Basically I know that I have to edit my sidebar.php file, but don’t know what to insert and where to insert.


  14. Vishwas says:

    Thank you for the quick reply – I have uploaded and activate the widget. But unfortunately I don’t know what is wrong with the widget settings. I have edited the php file to display images of male. but no matter what value I enter 0,1 or 2 the plugin always displays female icons in the manage panel.

    I have to manually select my mood from the site to change my mood.


  15. Vishwas says:

    Thanks for the update.. Now the widget works like it should be sans a flaw. I don’t know if other users are experiencing the same problem or not, but when I change my mood from the manage page – I get an error from this page:

    http://www.punkymoods.com/wordpress/changemood.php – “Sorry, the username you entered does not exist.”

    And yet my mood does change.. so try to fix this bug.


  16. TaloX says:

    Hi!

    Nice Plug In.

    But i can’t change the Mood in WP. I can choose the Mood but i can’t update the Mood. So what i have to do?

    thx 4 help.


  17. TaloX says:

    K!!

    Got it! :-))


  18. reese says:

    Ok. I downloaded it but how do I upload it into wp? I have the widget thing as I d on’t have my own domain. I can’t figure out how to upload those files into the web site?


  19. ..::blueeyes|inthemirror::.. » Blog Archive » Neu Neu Neu… oo’ says:

    [...] Das da –> Seit heute, und es ist toll. xD Süße Grafiken, von [P]unkymoods.com, sogar mit WordPress-Plugin kommt es daher. Endlich kann ich (wieder) ausdrücken, wie sich mein Körper anfühlt. [Es gibt “toasty” oder “puzzled” - meine Lieblings-Moods] [...]


  20. in says:

    I am glad to see that unkymoods is back. I googled it for fun and it actually has it. I remember when I tried to go to the site, it’s down. I thought I spelled it wrong it something. I love the moods! Always have them up. Thanks! :-D


  21. mina says:

    hey, i followed the instructions you gave for installing the plugin but there are no any images or choser that shows in the manage >> punkymoods, only a blank wordpress page with the menu of wordpress on top. can u help me? thanks.


  22. Nicole says:

    Hiya~ At first I thought that this was all useless but then I’ve realized these days that I’ve actually been quite moody. A minute or less, I feel accomplished, then afterwards for what seemed like a split second to me, I felt “in” love.. LOL.

    Thanks again, this was such a great help!

    Anyways, if you would locate it, find it under “site” >> “webmistress” .. thanks!


  23. tintin says:

    hey, i followed the instructions for installing the plugin. the plugin works but i have a small problem. I get an error when I go to manage-punkymoods.

    Warning: set_time_limit(): Cannot set time limit in safe mode in /var/kunden/webs/tintin/wp-content/plugins/readpunky.php on line 8

    I can see the images. However when I try to update the mood, it just shows up as “blank”. The other thing, it works fine when I add it to my sidebar. It doesn’t show up as blank. The only problem i guess is the “change your punkymood” panel.


  24. tintin says:

    thanks for the quick reply. the error disappeared when i added @. however, the current mood is still “blank” where as you can see from my site, the mood is “chocoholic”.


  25. tintin says:

    it finally worked! thank you. :D


  26. Joanne says:

    I love punkymoods!

    But, I am getting the following error messages when I go to manage punkymoods:

    Warning: set_time_limit() has been disabled for security reasons in /wp-content/plugins/readpunky.php on line 8

    Fatal error: Cannot redeclare startelement() (previously declared in /wp-content/plugins/blogger-rss-import.php:101) in /wp-content/plugins/readpunky.php on line 27


  27. Peter says:

    Just an update about the comment above. Joanne had the blogger-rss-import.php plugin to port her Blogger posts over to WordPress and it seemed to conflict with the Punkymoods plugin. I was going to develop a workaround, but since she only needed to import the posts once, she simply deactivated the blogger-rss-import.php plugin.


  28. (p)Unkymoods est de retour! at Instants Tany says:

    [...] Il suffit juste de vous rendre sur le site punkymoods de vous créer un compte (gratuit) et de vous laisser guider pou rinsérer l’image où vous le voulez sur votre blog/site. Pour les feignants (j’en fait toujours parti) il existe même un plugin wordpress qui vous permet de modifier votre “punkymood” via l’interface de gestion. [...]


  29. cnbrksnr says:

    hell o!

    i ve some problems such as:

    Warning: set_time_limit() has been disabled for security reasons in /www/110mb.com/c/n/b/r/k/s/n/r/cnbrksnr/htdocs/wp-content/plugins/widgets/readpunky.php on line 8

    Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /www/110mb.com/c/n/b/r/k/s/n/r/cnbrksnr/htdocs/wp-content/plugins/widgets/readpunky.php on line 81

    Warning: fopen(http://www.punkymoods.com/wordpress/punkymoods.php?sex=0) [function.fopen]: failed to open stream: no suitable wrapper could be found in /www/110mb.com/c/n/b/r/k/s/n/r/cnbrksnr/htdocs/wp-content/plugins/widgets/readpunky.php on line 81
    could not open XML input


  30. Daria says:

    yes but… what’s the code i should put in the wp sidebar to show the mood?!


  31. Peter says:

    Ah, it’s just the usual image code that you would normally use for Punkymoods (shown when you log in at punkymoods.com).


  32. Susan says:

    Hi Peter!

    I love the PunkyMoods. Small problem (of course) when I add the punkymood plugin (either the widget or just plain punky) it results in my posts layering over themselves. I’ve left it “as is” on my test site. Using the latest vs. of WP. Any ideas?

    Thx,
    Susan


  33. Mandy says:

    My mood shows up just fine, but I can’t update from inside WP for some reason. Get these errors:

    Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /blog/wp-content/plugins/widgets/readpunky.php on line 81

    Warning: fopen(http://www.punkymoods.com/wordpress/punkymoods.php?sex=0) [function.fopen]: failed to open stream: no suitable wrapper could be found in /blog/wp-content/plugins/widgets/readpunky.php on line 81
    could not open XML input


  34. Krystal says:

    I just installed the punkymood plugin to my wp blog. My problem is that I cannot activate the 0.1. It says fatal error. The 0.2 update was installed but 0.1 won’t let me. And, I’m also getting the same erros when I click on the punkymoods link in my manage on the dashboard. Any thoughts?

    Thanks.

    Krystal.


  35. Peter says:

    Mandy’s problem should be fixed with this setting at the top of the plugin file:

    // change this to TRUE if you are getting URL file-access errors
    $punky_nopermission = true;

    Krystal’s problem should be fixed by making sure both plugin files are in wp-content/plugins or for the widget version, wp-content/plugins/widgets


  36. Graeme Findlay says:

    The widget version of this is broken.

    In the PHP there’re hard-coded “.com” lines, instead of using the $wpunkysuffix so the widget doesn’t show right if using the new server.

    The admin page always shows female icons (forgot a “w” on one of the $punkysex references).


  37. Peter says:

    Thanks for pointing that out, Graeme… a careless upgrade on my part. I’ve fixed it now!


  38. Chelle says:

    I’ve encountered an error using the widget. The image won’t show. Looking at the URL printed for it, it seems the suffix variable isn’t printing.

    http://www.punkymoods./mood.php?userid=6600

    the ‘net’ that should print isn’t. I looked over the plugin, but nothing’s jumping out at me in terms of a typo or anything. Thought you’d like to know. I have it implemented on my site still if you want to take a look


  39. Peter says:

    Ah, I see the problem. Thanks for pointing that out! The function that printed the URL wasn’t supplied with the suffix variable in the “globals” declaration. Anyway, I’ve fixed the version for download (again) so that one should work!


  40. Tati says:

    how is the code to put in my sidebar?


  41. Peter says:

    The code is the same that is given when you sign in to Punkymoods (punkymoods.com or punkymoods.net) normally. This plugin makes it so that you can change your mood from within WordPress, but the way to display the mood remains the same.


  42. Tracy says:

    I must be a moron or something. I uploaded the plugin just fine and it shows on my blog, but only as ‘blank’. Every time I try to change my ‘mood’ it says “Sorry, the username you entered does not exist.” I put my info in where it should be, but still nothing. What is the difference between USER an ID (told you I am a moron today lol). It’s the only thing I can think of that I must be doing wrong.
    Can’t wait to get it right! Thanks so much!!


  43. Tracy says:

    Bagoo…I figured it out. Major brain fart there. Love it, love it, love it! Thanks for an awesome plugin, Peter! :)


  44. yona says:

    i got it! it works perfectly on mine. Thanks for that :]


  45. Nanouche07 says:

    :)


  46. Punkymoods « My Wierd Wired World says:

    [...] blog or discussion boards. Signup process is here whilst the homepage is this. There’s even a plugin available for WordPress [...]


  47. Ruby says:

    I’ll admit to being fairly clueless when it comes to this stuff, so perhaps you can help? When I try running Punkymoods thru WordPress, I get the following:

    Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /home/holymoly/public_html/wp-content/plugins/readpunky.php on line 82

    Warning: fopen(http://www.punkymoods.net/wordpress/punkymoods.php?sex=0) [function.fopen]: failed to open stream: no suitable wrapper could be found in /home/holymoly/public_html/wp-content/plugins/readpunky.php on line 82
    could not open XML input

    However, when I make the change mentioned earlier ($punky_nopermission = true;) I get this:

    Warning: curl_setopt(): supplied argument is not a valid File-Handle resource in /home/holymoly/public_html/wp-content/plugins/readpunky.php on line 15
    moodid moodname 1 accomplished.gif
    [...]
    191 zombiefied.gif
    Warning: fclose(): supplied argument is not a valid stream resource in /home/holymoly/public_html/wp-content/plugins/readpunky.php on line 19

    Warning: fopen(punky_temp.xml) [function.fopen]: failed to open stream: No such file or directory in /home/holymoly/public_html/wp-content/plugins/readpunky.php on line 82
    could not open XML input

    Any ideas? TIA!


  48. Peter says:

    Hi, is there write access to your wp-admin directory?

    Edit: That was the problem :D


  49. Nana says:

    I think I am kind of slow. I added the plugin… now what. How do I get it to show on my site. I am not using widgets.


  50. Nana says:

    GOT IT! Found the little slide show tutorial of yours! THANK YOU!


  51. Fiona says:

    whats the different between username and user id?


  52. Peter says:

    The username is what you sign in with. The user ID is a number that is used by the system to identify the user.

    Watch the Flash tutorial here; although it explains how to use Punkymoods without the plugin, it is good at showing you how to find the user ID:

    http://www.punkymoods.net/punkywordpress/


  53. Tere says:

    Love this and I started using it in my site! This is good for "moody" people! :)


  54. Vishwas says:

    Hi Peter

    The latest version 0.3 is broken for WP 2.5… Can you work on fixing it?


  55. Peter says:

    Thanks for pointing that out. I've now fixed this on the punkymoods.com end. I'd switched up the way moods get updated but had forgotten to update the script that the plugin interacts with. You shouldn't have to upgrade the plugin as this is purely on my end. Let me know if it works now :D


  56. Lovelee says:

    Hi, It’s me again I don’t know how to get my user id cause i don’t know where to find it. In your flash tutorial, In the codes there you’ll find your user id, but when I’m in my profile finding my user id in the code, unfortunately i didn’t find anything. Thanks! :)


  57. Lovelee says:

    Hi again you said in that tutorial that it’s from punkymoods.com so does it mean to all the new registered members cannot install it to their blogs because the requirements should be in punkymoods.com so how can I put it in my blog if i registered in punkymoods.net not in punkymoods.com(I used it as a plugin).


  58. Peter says:

    Hi, the plugin works for both punkymoods.net and punkymoods.com.


  59. tracy says:

    Hey Peter, I have an interesting issue. After adding the two php files to my plugin folder, [punkymoods.php and readpunky.php] editing my info, and activating, I find that I cannot see anything in admin under MANAGE/PUNKYMOODS. I seem to remember that was where the nifty graphics were supposed to be. Any suggestions oh wise one? Thanks!


  60. Aulia says:

    I Love Punky Moods! I never know Punky Moods before my friends tell me. I even put it in my web blog, Punky Mood is the best!

    ****

    AULIA :)


  61. Brian says:

    Hi Peter. Thanks for the cool plugin. I can’t seem to find my userid either, even after watching the video. It seems as if the format of the URL has changed. Thanks in advance. -Brian


  62. Brian says:

    … I snooped around and I’m guessing the output from punkymoods.net is different from punkymoods.com… you might want to look into it. The punkymoods.net code doesn’t seem to have any useful information…


  63. Peter says:

    Hi Brian, you’re right. The video needs to be updated. However, all steps but finding the user ID are the same. The new code includes something like http://www.punkymoods.net/user_moods/6001.jpg, where 6001 is your user ID.


  64. Phia says:

    um,I haven’t seen any save button in the plugin editor:(


  65. Peter says:

    Hi Phia, if that’s the case you probably need to make the plugin file writable. I believe WordPress provides in-context instructions about that.


  66. chantillylace says:

    I’ve installed the plugin for Word Press and I’m getting the following error in manage/punkymoods:

    Warning: require(../wp-content/plugins/widgets/readpunky.php) [function.require]: failed to open stream: No such file or directory in /home/thedncom/public_html/ctrl-alt-doll.net/blog/wp-content/plugins/punkywidget/punkymoodswidget.php on line 43

    Fatal error: require() [function.require]: Failed opening required ‘../wp-content/plugins/widgets/readpunky.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/thedncom/public_html/ctrl-alt-doll.net/blog/wp-content/plugins/punkywidget/punkymoodswidget.php on line 43

    Any assistance would be appreciated as I can’t figure it out. I’ve checked and double checked everything and I can’t see what I could be doing wrong.

    Thanks


  67. Peter says:

    Hi, you need to put all of the plugin files in wp-content/plugins/widgets. Let me know if that doesn’t solve your problem.


  68. lovely says:

    I don’t even have a "Plugins" option that I can click to use Punkymoods. Any reason why?


  69. Peter says:

    Hi lovely, have you installed the plugin? If so, you should then see the Punkymoods sub-menu under the "Manage" or "Tools" menu. If you haven’t installed the plugin, and you have a self-hosted WordPress blog, you can download and install the plugin by following the instructions and link on this post.


  70. Rolling says:

    Peter, I wd really like to have Punky Mood on my blog too. but I hv a dot com regstrn. but I found ur link from another site tht seems to have a dot com acctt too, yet I can see Punky Mood there. Why can I not hve it?
    can you not build-in a version into WP for ordinary code-ilileterate users like me? I mean I want to have fun too!


  71. Peter says:

    Hi Rolling, if you have a wordpress.com account, you cannot use the Punkymoods WordPress plugin. However, you could sign up for a normal account at www.punkymoods.net (although registration is closed until March 20, 2009) and use the code supplied to enter into your WordPress template. There is a slightly old but still relevant demo here.


  72. shimaa says:

    Ihave aproblem in using Punkymoods

    can u help me ??

    http://shimaasherif.wordpress.com/

    Reply from Peter: To use the plugin, you must have a self-hosted WordPress blog (not on wordpress.com). However, if you have signed up for a Punkymoods account, see this video about manually inserting the code. If you have not yet signed up for a Punkymoods account, registration will re-open on March 20th.


  73. Patti says:

    these are really cute! going to add punkymoods to my blogspot


  74. munchicken says:

    The code has changed over at Punkymoods, so be sure to update your code after installing the plugin. The user_moods/userid.jpg is now usermoods/11/1/userid.jpg. This needs to be changed in the plugin code and the widget code. (I’m not sure if the 11/1 changes from user to user, so check your punkymood page to be sure.)

    Reply from Peter: Thanks for the note. Yes, the “11/1″ part is different for each user, and based on the User ID (“11″ being the thousands and “1” being the hundreds). When you log in to your account on punkymoods.net or punkymoods.com, it will show you the new code :)


  75. noura says:

    I seem to be having technical difficulties

    Reply from Peter: It would help if you would be more specific. However, from your blog link, it looks like you’ve figured it out.


  76. Cuervitte says:

    Hi!I’ve installed the widget for wordpress and when i try to manage the punkymoods, this line appear in top of it.

    Warning: set_time_limit() has been disabled for security reasons in /home/a9197360/public_html/wp-content/plugins/widgets/readpunky.php on line 8

    I’ve followed the instructions perfectly so i cant imagine what’s wrong…
    I’ve tried to change the mood, and apparently it worked but then when i go to my blog, it’s still the same one from the start (the one that was there when i installed the plugin) and when i come back to the manager, it’s still the old one O.O

    Any suggestions? =(

    Reply from Peter: You could edit the readpunky.php file and comment out the line (add // in front of it). That shouldn’t cause problems in changing the mood — when you check this in the front-end of your site, do a hard browser refresh (CTRL+F5 if you’re using Windows) to reload the mood image.


  77. Jessica says:

    I’ve installed this plugin and everything works fine. In the plugin page of wordpress there’s a notice that I should update the plugin to this version
    http://wordpress.org/extend/plugins/widgets/
    Must I install this update??
    Thank you and I wish a Happy New Year 2011.
    btw. I love Punkymoods :-)

    Reply from Peter: Happy New Year! There is no update to install.


  78. deepak says:

    hi there..
    i am trying to use punkymoods plug in in my site.
    i have created an account at the "http://www.punkymoods.net/index.php".
    i am trying to edit the login details.
    // enter your punkymoods login info
    $punkyuser = "yourusername";
    $punkypassword = "yourpassword";
    $punkyid = "this is the part after userid=";

    please let me know what should i be using as my "punkyid ".

    Reply from Peter: The URL to your mood image is something similar to “http://www.punkymoods.net/usermoods/25/8/25818.jpg” — in that example, 25818 would be your user ID.


  79. deepak says:

    Thanks Peter!..
    i am getting the following message when i try to manage my punky mood .
    "could not open XML input".
    also i see that my punkymood url is pointing to "punkymood.com" as opposed to "punkymood.net".
    note: i have registered @ punkymood.net.

    As a result the punkymood icon does not appear on my site.
    Am i missng something , kindly advice.

    Reply from Peter: If your ID is higher than 6000 (which it should be) then the script should automatically look to punkymoods.net. Also, make sure that the plugin’s folder is writable, and try enabling the setting $punky_nopermission if you are having file access errors.

Speak your mind

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word