WordPress Plugin: Hot-or-Not Admin Panel
“Hot-or-Not Admin Panel” is my second WordPress plugin. Its purpose is to encourage administration of your blog by displaying a picture of a random girl from Hot or Not in the upper right corner of the administration panel. Gender, age and rating are configurable.
Example

Download and Install
The current version of Hot-or-Not Admin Panel is 1.7. Download the zipped file here: hotadminpanel.zip. To install the plugin, just unzip it, upload it to the wp-content/plugins/ folder and activate it through the plugin tab in the administration panel.
Hot or Not Admin Panel works perfectly well on both WordPress 1.5 (Strayhorn) and 2.0, although it does not work in WordPress 1.2. Note that you will need either allow_url_fopen set to TRUE in your php.ini, or CURL support.
Changelog
-
2006-07-28, version 1.7:
- Replaced the admin_notices hook with admin_footer. Same effect, except admin_notices didn’t exist before WP 2.0.2.
- Custom
wp_remote_fopen()in WP 1.5. (1.5 is now supported.) - Added HTML debug comments
-
2006-07-28, version 1.6.1:
- Replaced the fopen/CURL option and switch with
wp_remote_fopen(). Thanks, “Midwestern City Boy”.
- Replaced the fopen/CURL option and switch with
-
2006-07-27, version 1.6:
- Added CURL alternative for fopen. Thanks, Mark
-
2006-07-26, version 1.5:
- Changelog added
- Options page added (dude, this quadrupled the file size)
- Options for gender, age and rating added
-
2006-07-22, version 1.0:
- Initial release
000-loan-guaranteed/nl>loan $15,000 guaranteed000-unsecured-no-fee-loans/nl>loans no 30,000 fee unsecuredloan 1035 with exchangeloan albuquerque car usedstudent loans all approvedalaska alternative loans vocational studentholland arms revolution american loansbuilding 1st home loan time Map

Bwahaha… That’s hilarious :)
Comment by Aaron Brazell — July 22, 2006 @ 9:27 pm
Fantastic plugin, however did not work if you use X-dashboard. Maybe a little workaround on both side to fix that? *votes HOT.
Comment by Choco — July 22, 2006 @ 10:46 pm
[...] 插件页面: 点击进入 [...]
Pingback by Hot-or-Not Admin Panel · WordPress插件中文站 — July 24, 2006 @ 1:29 am
Update: Version 1.5
The new version is finally here! In 1.5, I’ve added an options page where you can choose gender (male, female or both), minimum age, maximum age, minimum rating and maximum rating.
Comment by Tim Johansson — July 26, 2006 @ 1:27 am
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
Got this when activating the plugin. Running on Win2K3 with IIS. Looks like a neat plugin and would like to try it. Any idea of what the problem may be?
Thanks,
Veg
Comment by Veg — July 26, 2006 @ 4:05 am
@Veg:
This seems to be a very old bug with PHP/IIS, and not a bug with the Hot-or-Not Admin Panel or the Hot-or-Not API. Try looking at PHP bug report #25863, which covers this problem well. I skimmed through it, and there seem to be a couple of potential solutions among the replies.
Good luck,
Tim.
Comment by Tim Johansson — July 26, 2006 @ 4:15 am
[...] WP Plugin: Hot-or-Not The Hot-Or-Not plugin displays a picture from the Hot Or Not website on your admin panel everytime you log in. Useful? Nah. Weird? maybe! tagged hot or not, wordpress and wordpress plugin Related Posts from the Past: [...]
Pingback by Weblog Tools Collection » WP Plugin: Hot-or-Not — July 26, 2006 @ 4:32 pm
now thats just stupid.. really.. get a life lol
Comment by chinki — July 26, 2006 @ 6:23 pm
oh yeah, thats whats everyone ever wanted :-D how about a daily chick from your preferred pornpage instead of some possible frankensteins? ;-)
Comment by Mao-B — July 26, 2006 @ 6:42 pm
@Mao-B: You won’t get frankensteins here — just set the minimum rating to about 8, and they’re all hot. :)
Comment by Tim Johansson — July 26, 2006 @ 6:47 pm
Hot or Not on our WP admin?
It’s the end of the world as we know it…
Comment by drmike — July 26, 2006 @ 6:50 pm
[...] The Hot or Not Plugin for your Wordpress admin panel. Does anyone really need this? No, but it doesn’t mean that it isn’t fun and creative. « And one more for fun | [...]
Pingback by New WP Plugin » technobabble.tv — July 26, 2006 @ 8:42 pm
I was writing up a thoughtful post for my blog on this cool plugin but can’t get it to display even though it is enabled and the preferences have been updated. Any ideas? Wordpress v2.0
Comment by Webmaster404 — July 26, 2006 @ 8:45 pm
@Webmaster404:
I suppose you have, but it can’t hurt to check again: are you sure that you activated it? If so, what other plugins are you using? Choco pointed out earlier that this plugin does not work with X-Dashboard, which I will try to fix with the next release.
Though it is highly unlikely, your current theme might be colliding with the CSS. What theme are you using? Also, what do you see if you check the source code? You should see an IMG element with ID “taj_hap_thumb”.
I might have overlooked some part in the code, making the product invalid XHTML. Which browser are you using? Good luck.
Comment by Tim Johansson — July 26, 2006 @ 9:05 pm
[...] Download the Hot or Not Admin Plugin for wordpress. [...]
Pingback by Hot or Not Plugin · Aaron’s Webmaster Workshop — July 26, 2006 @ 9:21 pm
Thanks for responding Tim.
I use the minimalist sandbox theme: http://www.webmaster404.com/credits/
I use Wordpress Version 2.0
And I will turn off each plug-in one by one to see if I can figure which one might be interfering and report back if I find anything.
Thank you!
Aaron @ webmaster404.com
Comment by Webmaster404 — July 26, 2006 @ 9:39 pm
Doesn’t work in IE or Firefox so we can check that off, I also disabled my current theme and tried a standard wordpress one, now on to the plugins. :)
Comment by Webmaster404 — July 26, 2006 @ 9:54 pm
Aaron: I just tried the plugin on a clean WordPress 2.0.3 with the Minimalist Sandbox 0.1, and it works fine. I’ve got to sleep now, and I wish you luck in finding the plugin that messes things up. Please report your results here, so I can try to fix it.
Comment by Tim Johansson — July 26, 2006 @ 10:00 pm
Tim, I had a problem using the plugin because ‘allow_url_fopen’ was set to FALSE in my host’s php.ini. To get around this, I changed the
file_get_contents()call to this:$ch = curl_init('http://services.hotornot.com/rest/?'
. 'app_key=479NUNJHETN'
. '&method=Rate.getRandomProfile'
. '&retrieve_num=1'
. '&gender=' . get_option('taj_hap_gender')
. '&min_age=' . get_option('taj_hap_minage')
. '&max_age=' . get_option('taj_hap_maxage')
. '&min_rating=' . get_option('taj_hap_minrating')
. '&max_rating=' . get_option('taj_hap_maxrating')
);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
This returned the URL as a string, just like
file_get_contents(). Of course, you will need CURL support to do this.Comment by Mark — July 27, 2006 @ 3:54 am
Update: 1.6
Thank you, Mark. I have added that code to version 1.6 along with an alternative for which method to use. Since my host does not support CURL I haven’t tried it, but it should work just as well as the fopen() version.
Comment by Tim Johansson — July 27, 2006 @ 9:58 am
I’m trying to get this working, but having no success yet. I’ll play around with it, but just wanted to post where I am now. I have checked that I have allow_url_fopen set to true (actually, my phpinfo says it is set to on, but I believe that’s the same thing). I’m going to start disabling plugins and see if the hotornot plugin starts working. Just for a starting list, I run the Ocadia theme, and here’s the plugins I currently use:
bsuite
WP-Postviews
QA File Manager
Simple Asides
Simple Tags
Spam Karma 2
Word Statistics
Wordpress Database Backup
WP-ShortStat
Wordpress Theme Manager
WP-Upload Manager
I have to get to work now, but I’ll work on tracking down what causes my Hot or Not Admin Panel to show nothing. I used to run Tiger Style Administration plugin, but I disabled that before I’d even seen this one. I’ll report back if I figure out conclusively that one of my active plugins is causing the problem.
Comment by RagManX — July 27, 2006 @ 5:24 pm
Well, drat. I disabled every plugin except Hot or Not, set my theme to WP default, and updated options on Hot or Not to make sure something changed. Still no hot or not display in my admin panel. I doubt I know enough to track it down on my own, but I’ll work on it, because this just looks like a fun little plugin.
Comment by RagManX — July 27, 2006 @ 6:16 pm
RagManX: I’d love to investigate that bug without polluting the comment list. Would you mind dropping me an email? You can find contact info at the about page.
Comment by Tim Johansson — July 27, 2006 @ 7:49 pm
Why don’t you use wp_remote_fopen() It already has the logic in it to use file_get_contents or curl. Plus file_get_contents for remote URLs is broken in PHP 4.4.2 for Windows 32. So that’s one less place where we don’t have to patch code until the next version of PHP4 is released.
BTW: This is a really cool plugin.
Comment by Midwestern City Boy — July 27, 2006 @ 10:03 pm
Update: 1.6.1
Thanks, MCB. I didn’t know there was such a handy function. It is included now in 1.6.1.
Comment by Tim Johansson — July 28, 2006 @ 12:24 am
Muahhaha Nice!
Too bad it does not seem to work with WP 1.5.
Comment by Will — July 28, 2006 @ 6:11 am
Update: 1.7
Support for WordPress 1.5.x, 2.0.0 and 2.0.1 has been added.
Will: It should work now. ;) The problem was a totally unnecessary action hook, admin_notices, on my part. It could just as well have been replaced with admin_footer, which did exist before WordPress 2.0.2.
Comment by Tim Johansson — July 28, 2006 @ 11:49 am
Tim, I also could not get it to work and feel free to prune a few of my comments to shorten your list. I am in the same situation as RagmanX, this is good though for you, you will get this thing beta tested and running smooth cuz us geeks are eager to have hot chicks in our blog admin., what motivation…hehe :)
Comment by Webmaster404 — July 28, 2006 @ 1:53 pm
A very good plugin here.
Thanks for sharing it.
Amit
Comment by Ambatchdotcom Seocontest — July 28, 2006 @ 2:00 pm
Aaron: That is the first step in my way to world domination. Version 1.7 fixed the problem for RagManX. Apparently a WP function, wp_remote_fopen, was introduced in WP 2.0.2 while RagManX was running WP 2.0.1. Version 1.7 contains a custom-made wp_remote_fopen function.
Amit: You’re welcome.
Comment by Tim Johansson — July 28, 2006 @ 4:54 pm
Still no luck for me but it’s not because of your plugin, of course. I am yet another Server 2003 / IIS user with a problem and the most common fixes just weren’t. I’m leaning toward running Apache on the server once again in hopes and anticipation of it solving the problem with this plugin and possibly another, although I’m not very good with Apache (looking for a good gui now to help this Apache noob).
Regardless, I saw the extension working on my girlfriend’s test server and wanted to take the time to complement you on your work as it’s a nice plugin. Well, of the two of us that viewed it, I thought it was anyway :)
Comment by Veg — July 28, 2006 @ 10:55 pm
wp_remote_fopen - you the man, you the man!!! :)
Comment by Aaron Pratt — July 29, 2006 @ 3:13 am
@Tim: I’m relatively new to PHP, and I’m glad I could help.
@MCM: I had no idea there was a function like that, either. Thanks for the tip.
Comment by Mark — July 29, 2006 @ 3:37 am
Hey,
Awesome, thanks a ton!
Thanks,
Will
PS: I have x-Dashboard installed and enabled. So it works with it here just fine. :D
Comment by Will — July 30, 2006 @ 9:07 am
Will: I’m glad to help. Oh, so it does work on X-Dashboard. Thanks for the info.
Comment by Tim Johansson — July 30, 2006 @ 10:11 am
Hello Tim,
Just wanted to follow up with a note that I was able to finally get this plugin working for me by installing Apache. It’s something to pass on to the few Server 2003/IIS6 peeps if they get the CGI errors like I was receiving.
Veg
Comment by Veg — July 31, 2006 @ 5:43 am
At first I thought this was joke but it’s not.. Nice plugin makes writing entries just that much easier. ;)
Comment by Dan — July 31, 2006 @ 1:44 pm
[...] Source : http://timjoh.com/wordpress-plugin-hot-or-not-admin-panel/ [...]
Pingback by SEO Firm » Hot-or-Not Admin Panel WordPress Plugin — August 2, 2006 @ 4:36 am
Hot-or-Not Admin Panel…
That’s what I need to see when I’m blogging: a new, random lady. God bless WordPress….
Trackback by http://crabapple.cc — August 2, 2006 @ 6:32 pm
Greatest WordPress plugin evar?…
This’ll give you a reason to keep a vigilant eye on your WP blog.
……
Trackback by jotsheet — August 22, 2006 @ 4:37 am
brilliant!
Comment by dan — October 27, 2006 @ 7:43 pm
Hello,
Just wondering if anyone could help. I did something stupid and started my blog using a numerical archive system, and now I'd like to change it so that the post title is part of the URL for SEO reasons. Is there any Wordpress plugins that anyone knows of that could switch it without sending Googlers to invalid pages? Maybe some sort of redirector to the correct page?
Thanks.
Comment by Frederick — October 31, 2006 @ 9:43 am
[...] 插件页面: 点击进入 [...]
Pingback by 插件 » Blog Archive » Hot-or-Not Admin Panel — November 7, 2006 @ 8:31 am
[...] Visit [...]
Pingback by WP Plugins DB » Blog Archive » Hot-or-Not Admin Panel — May 20, 2007 @ 7:35 am
[...] Visit [...]
Pingback by WP Plugins DB » Plugin Details » Hot-or-Not Admin Panel — May 25, 2007 @ 7:56 pm
Nice plugin!
Works in v2.2.1?
Also, is there any possible security issue, given that the plugin contacts external sources qhile in the admin section? Maybe a silly question, but interesting to know.
Comment by Tom — August 4, 2007 @ 11:54 pm
Tom: I haven’t tried it yet in 2.2.x, but it should work fine. If you decide to try it, please report here. I suppose that there is a cross-site scripting vulnerability in case Hot-or-Not would turn really evil against you, but then, the risk that you are hit by a meteorite is probably bigger.
Comment by Tim — August 5, 2007 @ 2:44 pm
Hi Tim,
thanks! I’ll be watching for meteorites :-D
Comment by Tom — August 6, 2007 @ 11:12 pm
[*map/map_cnc1_13_mordy.txt||10||r||1|| @]
Comment by goblin — October 19, 2007 @ 9:03 pm
How To Start A Blog…
I couldn’t understand some parts of this article, but it sounds interesting…
Trackback by How To Start A Blog — October 24, 2007 @ 3:59 am
[...] If you’re new here, you may want to subscribe to my RSS feed. Thanks for visiting!Hot-or-Not Admin Panel [...]
Pingback by New WordPress Plugin | Here, Now — December 15, 2007 @ 2:41 pm