DealDotCom WordPress Plugin - Beta

Posted on September 18th, 2007

After 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…

 DealDotCom Plugin

The install is very easy…

  1. Download the DealDotCom Plugin.
  2. Unzip the file in your wp-content/plugins folder.
  3. Activate the plugin in your WordPress admin.
  4. Customize the Plugin on the Options page.
  5. 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,500 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

RSS feed

52 Comments

Gravatar
Comment by Matt Subscribed to comments via email
2007-09-18 18:38:38

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

Gravatar
Comment by blogadmin
2007-09-19 09:08:41

I’ll msn you later on how to do that.

Gravatar
Comment by Matt Subscribed to comments via email
2007-09-19 21:34:42

Also, WordPress 2.3 automatically checks to see if there’s updates to plugins hosted on WP.org’s site.

 
 
 
Gravatar
Trackback by DealDotCom
2007-09-18 18:47:34

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…

 
Gravatar
Comment by Charles Subscribed to comments via email
2007-09-18 20:18:40

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

Gravatar
Comment by blogadmin
2007-09-19 09:09:40

I added the no follow into the 0.2.

What code do you use for the statusbar text?

 
 
Gravatar
2007-09-18 21:36:48

[...] For those of you who signed up for DealDotCom and have a Wordpress blog will appreciate there is already a DealDotCom Wordpress plug in. [...]

 
Gravatar
2007-09-18 21:38:59

Great idea for a plugin… I will try it out this weekend…

 
Gravatar
2007-09-19 07:35:53

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

 
Gravatar
Comment by Chris Jacobson Subscribed to comments via email
2007-09-19 08:36:00

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

Gravatar
Comment by blogadmin
2007-09-19 09:10:35

Try using dealdotcom();

It was a typo in version 0.1. It is now fixed in 0.2.

 
 
Gravatar
Comment by Charles Subscribed to comments via email
2007-09-19 09:32:42

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

Gravatar
Comment by blogadmin
2007-09-19 09:36:15

Can you email me that code? gjones at bluefur dot com.

Try updating to version 0.2 the image should be fixed now.

 
 
Gravatar
Comment by Chris Jacobson Subscribed to comments via email
2007-09-19 17:21:22

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.

Gravatar
Comment by blogadmin
2007-09-19 23:03:09

Okay I think this is fixed in version 0.4. Can you update and test.

Gravatar
Comment by Chris Jacobson Subscribed to comments via email
2007-09-19 23:09:27

Before I install 0.4, can you make a change to the image width of the product? The new Deal is stretched super wide.

Gravatar
Comment by blogadmin
2007-09-19 23:10:46

That is one of the fixes in 0.4.

(Comments wont nest below this level)
Gravatar
Comment by Chris Jacobson Subscribed to comments via email
2007-09-19 23:26:41

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?

 
Gravatar
Comment by blogadmin
2007-09-19 23:30:23

Nope but you can edit it in the dealdotcom.php where you can change the div to be left instead of center.

 
 
 
 
 
Gravatar
Comment by Tom Subscribed to comments via email
2007-09-20 07:33:53

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

Gravatar
2007-09-20 08:26:25

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?

Gravatar
Comment by blogadmin
2007-09-20 08:29:12

Yes we now and we are waiting for Nate and his team to fix it.

 
 
Gravatar
Comment by blogadmin
2007-09-20 08:29:50

Excellent I guess there will be a 0.5 today.

 
Gravatar
Comment by Matt Subscribed to comments via email
2007-09-20 18:03:13

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

 
 
Gravatar
Comment by randell Subscribed to comments via email
2007-09-20 08:33:59

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

 
Gravatar
Comment by Chris Jacobson Subscribed to comments via email
2007-09-20 08:36:31

I can hardly wait until 1.0… lol

Gravatar
Comment by blogadmin
2007-09-20 08:43:40

For my first plugin this has been an interesting experience.

 
 
Gravatar
Pingback by Widgets and Plugins
2007-09-20 16:51:39

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

 
Gravatar
Comment by Bob LaPlante Subscribed to comments via email
2007-09-20 18:44:50

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

Gravatar
Comment by blogadmin
2007-09-20 20:26:37

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.

 
 
Gravatar
Comment by mmurtha Subscribed to comments via email
2007-09-20 20:52:01

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

Gravatar
Comment by blogadmin
2007-09-20 20:56:22

The graphical version does not allow you to change the border. That only works with the text version.

Gravatar
Comment by mmurtha Subscribed to comments via email
2007-09-20 21:01:36

Ok, thanks!

 
 
 
Gravatar
Comment by Thomas Sinfield
2007-09-20 22:26:08

the image hasnt changed for me yet :S it is still yesterdays product, but with todays information.

Gravatar
Comment by blogadmin
2007-09-20 22:29:48

I see a new image what version are you using?

 
 
Gravatar
Comment by Thomas Sinfield
2007-09-20 22:37:27

I got it as soon as it came out. so I guess I probably should update!

 
Gravatar
2007-09-21 02:10:16

[...] this plugin does, is that it shows your visitors the daily deals from DealDotCom (and your affiliate link is [...]

 
Gravatar
Comment by Paula Fugaro Subscribed to comments via email
2007-09-21 09:57:14

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' to
width='$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.

Gravatar
Comment by blogadmin
2007-09-21 10:08:51

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.

Gravatar
Comment by Matt Subscribed to comments via email
2007-09-21 22:00:06

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. :P I’m going to go test it now. :P

 
 
 
Gravatar
Comment by Chris Jacobson Subscribed to comments via email
2007-09-21 10:13:53

When did 0.8 come out? Today?

Gravatar
Comment by blogadmin
2007-09-21 10:20:27

It hasn’t I was guessing it was a typo. :)

Unless Paula has invented time travel!

 
 
Gravatar
Comment by Chris Jacobson Subscribed to comments via email
2007-09-21 10:24:04

Just a suggestion, but the .zip file name should be changed accordingly whenever a new version comes out. (dealdotcom_0-5.zip) etc..

Gravatar
Comment by blogadmin
2007-09-21 10:28:44

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.

 
 
Gravatar
Comment by Nathen
2007-09-21 17:29:41

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

 
Gravatar
2007-09-22 08:54:36

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

 
Gravatar
Comment by blogadmin
 
Gravatar
Comment by blogadmin
2007-09-24 20:55:53

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

 
Gravatar
Comment by blogadmin
2007-09-25 23:56:49

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/

 
Gravatar
Comment by Harold Read Subscribed to comments via email
2007-10-05 09:57:19

It seems the plugin has gone back to not displaying the product image.

Gravatar
Comment by blogadmin
2007-10-05 10:06:03

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

 
 
Gravatar
2007-10-08 18:48:47

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

 

Sorry, the comment form is closed at this time.

© 2007 BlueFur Hosting | Privacy Policy
Theme by Unique Blog Designs