Forums / All Other Contributions/Addons / creinold Pinterest Button Addon

creinold Pinterest Button Addon

Started by creinold on 10 Mar 2012, 1:00 AM · Views: 14,601

Results 61 to 80 of 98
19 Mar 2012, 4:58 PM
#61
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

creinold Pinterest Button Addon

opps I forgot to strip the html from the description... here the correct code:

<!--Bof creinold Pinterest Modifications, (You can move this anywhere you like the Pin it Button to show up on Product Info page.) -->
<div id="pinterest"><a href="http://pinterest.com/pin/create/button/?url=<?php echo zen_href_link(FILENAME_PRODUCT_INFO); ?>&media=<?php echo HTTP_SERVER . DIR_WS_CATALOG . $products_image_medium; ?>&description=<?php echo stripslashes(strip_tags($products_description)); ?>" class="pin-it-button" count-layout="horizontal">Pin It</a></div>
<!--eof creinold Pinterest Modifications, (You can move this anywhere you like the Pin it Button to show up on Product Info page.) -->  

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

19 Mar 2012, 5:12 PM
#62
nolsowski avatar

nolsowski

Inactive

Join Date:
Aug 2010
Posts:
324
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

creinold:

opps I forgot to strip the html from the description... here the correct code:

<!--Bof creinold Pinterest Modifications, (You can move this anywhere you like the Pin it Button to show up on Product Info page.) --> <div id="pinterest"><a href="http://pinterest.com/pin/create/button/?url=<?php echo zen_href_link(FILENAME_PRODUCT_INFO); ?>&media=<?php echo HTTP_SERVER . DIR_WS_CATALOG . $products_image_medium; ?>&description=<?php echo stripslashes(strip_tags($products_description)); ?>" class="pin-it-button" count-layout="horizontal">Pin It</a></div> <!--eof creinold Pinterest Modifications, (You can move this anywhere you like the Pin it Button to show up on Product Info page.) --> ```

Now the image doesn't work. lol

22 Mar 2012, 2:43 AM
#63
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

Okay try this now:

<!--Bof creinold Pinterest Modifications, (You can move this anywhere you like the Pin it Button to show up on Product Info page.) -->
<div id="pinterest"><a href="http://pinterest.com/pin/create/button/?url=<?php echo zen_href_link(FILENAME_PRODUCT_INFO); ?>&media=<?php echo $pt_image; ?>&description=<?php echo stripslashes(strip_tags($products_description)); ?>" class="pin-it-button" count-layout="horizontal">Pin It</a></div>
<!--eof creinold Pinterest Modifications, (You can move this anywhere you like the Pin it Button to show up on Product Info page.) -->

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

22 Mar 2012, 2:46 AM
#64
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

I also don't see this in your codes/ Make sure it's added to the jscript_main.php

<?php
if (isset($_GET['products_id'])) { // use products_image if products_id exists
$pinterest_image = $db->Execute("select p.products_image from " . TABLE_PRODUCTS . " p where products_id='" . (int)$_GET['products_id'] . "'");
$pt_image = HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $pinterest_image->fields['products_image'];
}
?>

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

22 Mar 2012, 2:54 AM
#65
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

I think something is wrong with the pintrest servers. Nothing loading even on my site were it works... Hmmm

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

22 Mar 2012, 12:35 PM
#66
nolsowski avatar

nolsowski

Inactive

Join Date:
Aug 2010
Posts:
324
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

creinold:

I think something is wrong with the pintrest servers. Nothing loading even on my site were it works... Hmmm

I changed the code above and I made sure the code was in my jscript_main.php. I don't know if the pintrest servers are still down but I don't see my description and image yet. I am going to be gone for the day but will check back once I am home. Thanks again!

22 Mar 2012, 11:16 PM
#67
nolsowski avatar

nolsowski

Inactive

Join Date:
Aug 2010
Posts:
324
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

Okay just got home and noticed that the image and description doesn't show up at all. Not sure if pintrest servers are still down but that's where I am at.

23 Mar 2012, 7:29 AM
#68
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

Just found out Pinterest update the codes. So now my codes will have to be update also. So tomorrow I will update to the newest codes. Geez you think they keep some kind of backward compatibility at least...

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

23 Mar 2012, 1:26 PM
#69
nolsowski avatar

nolsowski

Inactive

Join Date:
Aug 2010
Posts:
324
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

creinold:

Just found out Pinterest update the codes. So now my codes will have to be update also. So tomorrow I will update to the newest codes. Geez you think they keep some kind of backward compatibility at least...

Yeah you would think they would.

28 Mar 2012, 5:22 PM
#70
eriesch avatar

eriesch

New Zenner

Join Date:
Jan 2009
Posts:
2
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

I added your code to our shopping cart and although it is working somewhat I have a few questions. The "Pin It" words are showing up on each product but not the PinIt image like on your page. Also, the link on the URL stops after "/index.php?main_page=product_info&" so it cuts off the end of my URL and then when posted on pinterest.com it does not have the correct link.

http://www.fishid.com/nwp/index.php?main_page=product_info&cPath=1&products_id=1

Thanks, Eric

29 Mar 2012, 1:32 AM
#71
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

Pinterest release some new codes that break this mod. I have an update but newer codes also broken. The count bubble is broken. I have a trouble ticket out with Pinterest developers.

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

2 Apr 2012, 2:56 PM
#72
bigstore avatar

bigstore

New Zenner

Join Date:
Jan 2012
Posts:
63
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

Read through this entire thread. First off, thank you very much for your patience and efforts on this plugin.

Secondly, did you ever figure out why the images don't load?

Thanks

5 Apr 2012, 8:01 AM
#73
ausgirl avatar

ausgirl

New Zenner

Join Date:
Oct 2011
Location:
Australia
Posts:
22
Plugin Contributions:
1

Re: creinold Pinterest Button Addon

It doesn't pull my images or load my description either :blink:

Im running v1.5.0

18 Apr 2012, 4:50 PM
#75
stlnyc avatar

stlnyc

Zen Follower

Join Date:
Oct 2008
Posts:
179
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

I have tried and tried but have been unable to get this mod working properly. But thankfully, Numinex has come thru and there mod works great. Can be downloaded here:
https://www.numinix.com/zen-cart-modules/social-networking/pinterest-com-pin-it-button?zenid=9bda2fa64d6c7e19bad2920d83b40eb8

https://www.grapediscounts.com
Zen Version 1.3.9f, Mods: Click-Show-Hide Menu, IH3, Editable SB, Recently Viewed SB, Froogle, EZ-Pop

17 May 2012, 7:38 PM
#76
tomreitz avatar

tomreitz

New Zenner

Join Date:
Jun 2007
Location:
Pasadena, Maryland, United States
Posts:
21
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

I figured this out... was pulling the image from the wrong directory... added /images/ to it...

<!--Bof creinold Pinterest Modifications, (You can move this anywhere you like the Pin it Button to show up on Product Info page.) --><div id="pinterest"><a href="http://pinterest.com/pin/create/button/?url=<?php echo zen_href_link(FILENAME_PRODUCT_INFO); ?>&media=<?php echo HTTP_SERVER . DIR_WS_CATALOG . '/images/' . $products_image; ?>&description=<?php echo stripslashes(strip_tags($products_description)); ?>" class="pin-it-button" count-layout="horizontal">Pin It</a></div>
<!--eof creinold Pinterest Modifications, (You can move this anywhere you like the Pin it Button to show up on Product Info page.) -->  
18 May 2012, 2:52 PM
#77
tomreitz avatar

tomreitz

New Zenner

Join Date:
Jun 2007
Location:
Pasadena, Maryland, United States
Posts:
21
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

further improved in case a product had an overly long description:

<div id="pinterest"><a href="http://pinterest.com/pin/create/button/?url=<?php echo zen_href_link(FILENAME_PRODUCT_INFO); ?>&media=<?php echo HTTP_SERVER . DIR_WS_CATALOG . '/images/' . $products_image; ?>&description=<?php echo stripslashes(strip_tags(substr($products_description,0,500))); ?>" class="pin-it-button" count-layout="vertical">Pin It</a></div>
25 May 2012, 2:57 PM
#78
mart07 avatar

mart07

New Zenner

Join Date:
May 2012
Location:
china
Posts:
1
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

its too complicated, and will change some former setting also slow down the speed open site. just insert this code in the tpl_product_info_display.php

<!--Bof creinold Pinterest .) --> <div id="pinterest"><a href="http://pinterest.com/pin/create/button/?url=<?php echo zen_href_link(FILENAME_PRODUCT_INFO); ?>&media=<?php echo HTTP_SERVER . DIR_WS_CATALOG . $products_image_medium; ?>&description=<?php echo stripslashes($products_description); ?>" class="pin-it-button" count-layout="horizontal">Pin It</a></div> <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script> <!--eof creinold Pinterest .) -->

then it will run good. just like this: http://www.mart07.com/europe-style-lace-dress-apricot-p-13244.html

29 May 2012, 5:24 PM
#79
thegoodlifestore avatar

thegoodlifestore

New Zenner

Join Date:
Oct 2007
Location:
North Carolina
Posts:
102
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

Got this mod installed and working ... but it's adding two "Pin It" buttons to some products. I thought it might have something to do with HTML in the item description. But all our products have that and it only adds the additional button on certain items.

We are using 1.3.9h.

Any help would be appreciated.

Single "Pin It" Button:
http://curlygirlstore.com/index.php?main_page=product_info&cPath=30&products_id=298

Two "Pin It" Buttons:
http://curlygirlstore.com/index.php?main_page=product_info&cPath=30&products_id=299

29 May 2012, 6:54 PM
#80
thegoodlifestore avatar

thegoodlifestore

New Zenner

Join Date:
Oct 2007
Location:
North Carolina
Posts:
102
Plugin Contributions:
0

Re: creinold Pinterest Button Addon

I fixed this! I went in and acted like I was going to edit the item, didn't make any changes and the previewed/saved it ... and the additional "Pin It" button disappeared. Strange.