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!
—————————-
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!

July 27th, 2006 at 5:48 pm
Leah says:
I love punkymoods! I even put it on my blog!
August 9th, 2006 at 4:39 am
Sara says:
I seem to be having technical difficulties. Is there anywhere to get help?
August 9th, 2006 at 2:58 pm
Peter says:
Problem fixed!
October 19th, 2006 at 11:06 am
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.
October 19th, 2006 at 12:11 pm
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.
October 22nd, 2006 at 8:18 am
Krystalle says:
Just wanted to say thank you!
November 27th, 2006 at 7:05 pm
Heather says:
Maybe I’m an idiot, but download the files and then what?
December 3rd, 2006 at 10:00 am
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!
December 6th, 2006 at 8:19 pm
ZitaKatalin says:
… um, same problem here. Download files and then what???
December 8th, 2006 at 11:37 am
Steph says:
I can’t get it to work either. Whenever I click on “Update Your Punkymood” I’m returned to this site.
December 12th, 2006 at 11:10 am
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
December 26th, 2006 at 11:04 pm
Zena says:
cooi, I want to have one
January 14th, 2007 at 6:25 am
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.
January 14th, 2007 at 7:55 pm
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.
January 14th, 2007 at 11:07 pm
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.
January 21st, 2007 at 8:05 am
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.
January 21st, 2007 at 9:00 am
TaloX says:
K!!
Got it! :-))
January 24th, 2007 at 5:10 am
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?
January 27th, 2007 at 2:36 pm
..::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] [...]
February 3rd, 2007 at 8:24 pm
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!
February 10th, 2007 at 4:19 am
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.
March 4th, 2007 at 4:49 am
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!
March 8th, 2007 at 12:08 am
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.
March 8th, 2007 at 5:36 pm
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”.
March 9th, 2007 at 6:53 pm
tintin says:
it finally worked! thank you.
March 19th, 2007 at 8:00 am
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
March 19th, 2007 at 8:56 am
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.
March 22nd, 2007 at 1:20 pm
(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. [...]
March 28th, 2007 at 9:32 am
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
April 3rd, 2007 at 11:00 am
Daria says:
yes but… what’s the code i should put in the wp sidebar to show the mood?!
April 3rd, 2007 at 11:25 am
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).
April 14th, 2007 at 3:20 pm
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
June 28th, 2007 at 7:50 pm
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
June 29th, 2007 at 9:22 pm
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.
June 30th, 2007 at 12:11 pm
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
July 14th, 2007 at 3:07 am
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).
July 14th, 2007 at 6:52 pm
Peter says:
Thanks for pointing that out, Graeme… a careless upgrade on my part. I’ve fixed it now!
July 20th, 2007 at 3:32 am
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
July 20th, 2007 at 6:34 am
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!
August 9th, 2007 at 7:05 pm
Tati says:
how is the code to put in my sidebar?
August 9th, 2007 at 8:39 pm
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.
August 22nd, 2007 at 6:33 pm
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!!
August 22nd, 2007 at 6:48 pm
Tracy says:
Bagoo…I figured it out. Major brain fart there. Love it, love it, love it! Thanks for an awesome plugin, Peter!
November 2nd, 2007 at 11:01 pm
yona says:
i got it! it works perfectly on mine. Thanks for that :]
November 6th, 2007 at 12:13 pm
Nanouche07 says:
November 26th, 2007 at 2:22 am
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 [...]
December 17th, 2007 at 3:43 pm
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!
December 17th, 2007 at 10:01 pm
Peter says:
Hi, is there write access to your wp-admin directory?
Edit: That was the problem
February 23rd, 2008 at 11:28 am
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.
February 23rd, 2008 at 11:38 am
Nana says:
GOT IT! Found the little slide show tutorial of yours! THANK YOU!
March 14th, 2008 at 8:23 pm
Fiona says:
whats the different between username and user id?
March 14th, 2008 at 9:23 pm
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/
March 25th, 2008 at 5:23 pm
Tere says:
Love this and I started using it in my site! This is good for "moody" people!
March 29th, 2008 at 8:40 am
Vishwas says:
Hi Peter
The latest version 0.3 is broken for WP 2.5… Can you work on fixing it?
March 30th, 2008 at 1:34 pm
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
April 20th, 2008 at 11:37 pm
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!
April 21st, 2008 at 12:04 am
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).
April 22nd, 2008 at 10:14 am
Peter says:
Hi, the plugin works for both punkymoods.net and punkymoods.com.
June 9th, 2008 at 11:38 pm
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!
June 14th, 2008 at 10:25 pm
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
August 15th, 2008 at 8:20 pm
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
August 15th, 2008 at 8:27 pm
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…
August 16th, 2008 at 9:01 am
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.
August 30th, 2008 at 6:13 am
Phia says:
um,I haven’t seen any save button in the plugin editor:(
August 30th, 2008 at 10:31 am
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.
September 28th, 2008 at 7:34 pm
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
September 28th, 2008 at 7:37 pm
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.
January 11th, 2009 at 3:30 pm
lovely says:
I don’t even have a "Plugins" option that I can click to use Punkymoods. Any reason why?
January 11th, 2009 at 3:40 pm
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.
February 18th, 2009 at 1:35 am
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!
February 18th, 2009 at 8:51 am
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.
March 6th, 2009 at 9:26 am
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.
March 6th, 2009 at 8:57 pm
Patti says:
these are really cute! going to add punkymoods to my blogspot
April 7th, 2009 at 11:41 am
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
June 13th, 2009 at 12:06 pm
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.
November 2nd, 2009 at 9:39 pm
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.
January 5th, 2011 at 3:40 am
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.
July 17th, 2011 at 11:27 pm
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.
July 18th, 2011 at 6:59 pm
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.