PDA

View Full Version : New Addon: RedBubble Link


massin
06-20-2008, 02:43 PM
This simple add-on provides a way to define a link to your photographs for sale on RedBubble. This includes an input text box on the Image Edit screen for inserting the RedBubble URL for the image and new tokens for templates to display the link. I've used this on the ACM Photography Photoblog (http://photoblog.acmphotography.com) if you would like to see it in action.

INSTRUCTIONS:


Download Zip file
Unzip contents into the 'addons' directory
Add a value for '$admin_lang_imgedit_redbubble' to the admin language file(s) (e.g. 'language/admin-lang-english.php')
$admin_lang_imgedit_redbubble = 'RedBubble Link';
Add a value for '$lang_redbubble_text' to the appropriate language file(s) (e.g. 'language/lang-english.php')
$lang_redbubble_text = 'Buy Now @ RedBubble';
Enable the Addon
Apply the template tags (<REDBUBBLE> or <REDBUBBLE_LOGO>) to your image page


Enjoy!

djammstreet
06-23-2008, 09:33 PM
Hi, it doesn't work perfectly on my Pixelpost 1.7. The following message appears at the bottom of the details image section: "Unknown column 'redbubble' in 'field list'". Any idea to resolve this ?

massin
06-24-2008, 10:20 AM
Hi,

When you enable the addon, it should've checked to see if the 'redbubble' column existed and, if not, created it. In this case it seems that it didn't work... to work around this, you can run the following on your MySQL DB to create the required field (insert the appropriate prefix for the '{$pixelpost_db_prefix}' part):

ALTER TABLE {$pixelpost_db_prefix}pixelpost ADD redbubble TEXT default ''

Let me know if that still doesn't work. Thanks!

Dkozikowski
06-24-2008, 03:28 PM
TEXT columns should never have a default value. A lot of servers see that and don't know how to handle it. Probably why Djammstreet's table was never created by your addon.

massin
06-24-2008, 11:41 PM
Thanks for the feedback! No idea for sure if that was the problem, but it does seem likely (http://bugs.mysql.com/bug.php?id=25520). I've updated the code and re-posted as v0.2. I really appreciate your input, thanks!

Cheers,
Massin

djammstreet
06-24-2008, 11:53 PM
I tried to inject the command and now there are no more problem. Perfect add-on ! ;)
Thanks for your response.

falcon1
03-13-2009, 10:54 PM
This is not working for me... I get this error. And the addon shows up in my admin as version 0.1 even though I downloaded the version 0.2 and uploaded that one.

massin
03-17-2009, 08:13 AM
hi Falcon1, Did you try manually running the SQL from a previous post? I don't know why you were able to download v0.1 ... I've deleted it entirely just in case. Try downloading again?