Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 06-20-2008, 02:43 PM
massin Offline
forum loafer
 
Join Date: Dec 2007
Posts: 6
New Addon: RedBubble Link

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 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!
Reply With Quote
  #2  
Old 06-23-2008, 09:33 PM
djammstreet Offline
forum loafer
 
Join Date: Jun 2008
Posts: 2
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 ?
Reply With Quote
  #3  
Old 06-24-2008, 10:20 AM
massin Offline
forum loafer
 
Join Date: Dec 2007
Posts: 6
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!
Reply With Quote
  #4  
Old 06-24-2008, 03:28 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
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.
Reply With Quote
  #5  
Old 06-24-2008, 11:41 PM
massin Offline
forum loafer
 
Join Date: Dec 2007
Posts: 6
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
Reply With Quote
  #6  
Old 06-24-2008, 11:53 PM
djammstreet Offline
forum loafer
 
Join Date: Jun 2008
Posts: 2
I tried to inject the command and now there are no more problem. Perfect add-on !
Thanks for your response.
Reply With Quote
  #7  
Old 03-13-2009, 10:54 PM
falcon1 Offline
forum loafer
 
Join Date: Jun 2008
Posts: 7
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.
Reply With Quote
  #8  
Old 03-17-2009, 08:13 AM
massin Offline
forum loafer
 
Join Date: Dec 2007
Posts: 6
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?
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:59 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs