DealDotCom WordPress Plugin - Beta
Posted on September 18th, 2007After reading what seemed like 100’s of blog posts on the launch of DealDotCom I decided today to write a quick and dirty plugin. They currently do not have one available for WordPress and I thought it would be interesting to build my first WordPress plugin while helping fellow bloggers monetize their sites.
So the plugin looks like this after installed…

The install is very easy…
- Download the DealDotCom Plugin.
- Unzip the file in your wp-content/plugins folder.
- Activate the plugin in your WordPress admin.
- Customize the Plugin on the Options page.
- Add a bit of code to your sidebar.php file.
This script is still in Beta so use at your own risk. If you find anything wrong or any suggestion feel free to post them.
I have also posted the full script here.
UPDATE - If you downloaded version 0.1 we just now uploaded version 0.2 (19/09/07). This will fix a lot of the issues.
Posted in DealDotCom | 3,499 views
Related Topics:
DealDotCom WordPress Plugin - Beta 0.3
DealDotCom WordPress Plugin - Beta 0.6
DealDotCom WordPress Plugin - Beta 0.9
Marketing 101: Pre-Marketing Your Product
Small Business Brief WordPress Plugin - Beta
52 Comments
Sorry, the comment form is closed at this time.




Code looks pretty good (haven’t actually tried the Plugin). Near the bottom, under the div with the class of wrap and in the h2 you have “DeelDotCom” instead of “DealDotCom”.
If you’re okay with it being GPL, you should submit it to the WordPress Plugin Repo. You then get an SVN Repo for the plugin, download stats, etc. It’s easier for people to find too (since it’s on WordPress.org).
I’ll msn you later on how to do that.
Also, WordPress 2.3 automatically checks to see if there’s updates to plugins hosted on WP.org’s site.
DealDotCom WordPress Plugin - Beta
Once again I am amazed by you all… I just received an email from a member of DealDotCom that took time out of their schedule to create a WordPress plugin for DealDotCom!
Now this is a little warning - this plugin is Beta and I have not had time t…
Thanks for the great plugin.
Two things I would like to have if possible
1) an option to no follow the links
2) a field for statusbar text.
Thanks
-Charles
I added the no follow into the 0.2.
What code do you use for the statusbar text?
[...] For those of you who signed up for DealDotCom and have a Wordpress blog will appreciate there is already a DealDotCom Wordpress plug in. [...]
Great idea for a plugin… I will try it out this weekend…
[...] there a plugin available? You can now get a DealDotCom plugin courtesy of BlueFur, which allows you to display the sale of the day on your [...]
I installed it on my blog, but when I paste the code I get this error:
Fatal error: Call to undefined function: dotcomdeal() in /home/money/public_html/blog/wp-content/themes/Cutline 1.1/sidebar.php on line 43
Try using dealdotcom();
It was a typo in version 0.1. It is now fixed in 0.2.
I would just like the status bar to show the home url http://dealdotcom.com
I tried using the onmouse over code from my wp aff pro plugin (as it does this) and edited your plug in to have this but it casued a fatal error. The code was vaild html but it didnt like it for what ever reason.
I also noticed that today the picture didnt update.
Is this a browser cache issue, a plugin bug, or a DDC error of not updating the pict?
-Charles
Can you email me that code? gjones at bluefur dot com.
Try updating to version 0.2 the image should be fixed now.
I got rid of the php error because I downloaded 0.3.
But now the 4 images won’t show up inside the plugin folder, even when they are uploaded.
Take a look on my site on the right.
Okay I think this is fixed in version 0.4. Can you update and test.
Before I install 0.4, can you make a change to the image width of the product? The new Deal is stretched super wide.
That is one of the fixes in 0.4.
It appears to be good now. Is there any way to turn off the center aligned justification? Can I just edit the php file myself for that?
Nope but you can edit it in the dealdotcom.php where you can change the div to be left instead of center.
0.4 seems to have a problem with referencing images when it’s loaded from a post and not from the blog’s home page. This was caused by a hard-coded path (wp-content/plugins/dealdotcom) in dealdotcom.php. When I’m on a post URL, the script looks in /wp-content/plugins/dealdotcom, which doesn’t exist.
I changed that to
get_bloginfo('url') . "/wp-content/plugins/dealdotcom"which fixed it.
Tom
P.S. The text entry field for entering your email address is somehow hidden behind the comment text field (Camino and Safari on the Mac). I can still tab to it but I can’t see it
Same problem in Internet Explorer and Firefox…
And there is both a checkbox for “Subscribe to comments via email” and “Notify me of followup comments via e-mail”. Is there any difference between these two options?
Yes we now and we are waiting for Nate and his team to fix it.
Excellent I guess there will be a 0.5 today.
Use use wpurl instead of url in get_bloginfo. wpurl is the path to where WordPress is installed, and url is the blog’s address. These can be different (WordPress could be installed to example.com/blog, but the blog’s address could be example.com).
I like the plugin - I just installed version 0.4 - seems to work fine. I noticed it did not come with any instructions with the download and I read several people were having difficulties so I took the liberty of posting instructions to get this working at
http://shutupandmakemeasandwichbitch.com/?p=45
Also I made a few modifications that suited me, I aligned left and commented out a couple of the links, i just felt five was a little redundant. Check it out
Thanks
I can hardly wait until 1.0… lol
For my first plugin this has been an interesting experience.
[...] That was just after I installed another plugin. The DealDotCom WordPress Plugin - Beta. But where to put it? Yet another screen estate eating feature. Ok, downsized the BumpZee and [...]
Great Plugin,
However those of us using widgets to create custom side bars are somewhat left out.
How about some code that could be placed in a text widget to call the dealdotcom function? HTML works great in a text plugin, but i tried tge php that gets added to the sidepar and it dont work. even wraped in html.
Im not a programmer so Im clueless on how to make it work in a text widget
But maybe someone out there has the brain power
I would suggest dealdotcom make a widget later using our code. It would only make sense that a widget that only uses only html be genrated from their site.
I like the plugin too, but can’t seem to adjust any of the options once they were set.
For instance, I set a specific color for the text and a boarder, but changed my mind. When I went back in to change the color of the text and do away with the boarder, the original entery remained.
Before someone askes, yes, I saved it. I actually did this 3 times and ended up with the same results.
Does anyone have any suggestions as to what I can do to change this other than reinstalling the plugin, and altering the code then re-entering it in the PHP file?
Btw, I did use that latest version.
Thanks…
Mary
The graphical version does not allow you to change the border. That only works with the text version.
Ok, thanks!
the image hasnt changed for me yet :S it is still yesterdays product, but with todays information.
I see a new image what version are you using?
I got it as soon as it came out. so I guess I probably should update!
[...] this plugin does, is that it shows your visitors the daily deals from DealDotCom (and your affiliate link is [...]
I just installed version 0.8 of the plugin and made a few minor changes…
1. I had to move the dealdotcom-top.gif file up one level from
…wp-content/plugins/dealdotcom/dealdotcom/dealdotcom-top.gif to
…wp-content/plugins/dealdotcom/dealdotcom-top.gif
2. I didn’t like the fact that the dealdotcom-top.gif image was fixed at a width of 148px regardless of the width that I set in my WP Admin -> Options -> DealDotCom, so I added this code just below the $pwidth variable initialization:
$pheight = 71*$pwidth/148;And changed the dealdotcom-top.gif image height and width attributes from
width='148' height='71'towidth='$pwidth' height='$pheight'(Note: maybe you could create a higher-resolution dealdotcom-top.gif image that would look better for larger widths)
3. When using the ‘text’ option the plugin calls a non-existent spacer.gif file, so I just replaced
<td><img border='0' src='" . get _bloginfo( 'wpurl' ) . "/wp-content/plugin/dealdotcom/spacer.gif' height='2' width='1'></td>with<td> </td>4. Finally, I moved the <font> tags from outside to inside the <a> tags so that my ‘Text Color’ set in the Options would override my site’s default link (<a> tag) styles.
One final note… I would really like to see this plugin widgetized. I tried adding the plugin code to a text widget together with running the Exec-PHP plugin, but that didn’t work.
1. Did you unzip it in the plugins folder?
2. We will consider this.
3. Those will be added in a future version. Forgot to add them to the folder.
4. This can be fixed.
5. We are working on that. Attempt 1 at doing it did not work well.
1. You should unzip the file and then upload the folder dealdotcom (and dealdotcom.php) which is inside the folder that it was unzipped to.
3. Typo, I’ve fixed this in the version I’m working on.
5. What are you talking about, it worked fine.
I’m going to go test it now. 
When did 0.8 come out? Today?
It hasn’t I was guessing it was a typo.
Unless Paula has invented time travel!
Just a suggestion, but the .zip file name should be changed accordingly whenever a new version comes out. (dealdotcom_0-5.zip) etc..
Why?
I install a lot of software and all of them keep the same name in the file. In the end it will probably be dealdotcom-latest.zip. That way it will always be the latest version.
We will also have a static page that will track it better so you can see the new versions ect. Just though it would be better to do the beta through the blog so we can communicate and get feedback faster.
Just a note the version number is stored on the Plugins page.
I agree that it would be great if this plugin was widgetized. In the mean time I found that the Samsarin PHP Widget works well. It’s a sidebar widget that allows you to use PHP code.
http://blog.samsarin.com/samsarin-php-widget
[...] some of you have noticed we recently installed the sweet DealDotcom plugin on our sidebar. This was to help me keep up with the latest deals, and to help you see the latest [...]
FYI, version 0.6 is now available…
http://blog.bluefur.com/2007/09/23/dealdotcom-wordpress-plugin-beta-06/
I have pushed out an update for 0.7 to fix the cron and the border on images…
http://www.bluefur.com/dealdotcom/dealdotcom.zip
I have pushed out an update for 0.9 with some fixes and new features…
http://blog.bluefur.com/2007/09/25/dealdotcom-wordpress-plugin-beta-09/
It seems the plugin has gone back to not displaying the product image.
I see the image on your site and our site.
Just remember if the dealdotcom site is down there isn’t much we can do other then suggest they pick a better host (maybe like us?).
[...] start there is a dealdotcom WordPress plugin. With this plugin you can show the deal of the day on your blog. It´s embedded with your affiliate [...]