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 21 to 40 of 98
16 Mar 2012, 6:32 PM
#21
creinold avatar

creinold

Zen Follower

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

creinold Pinterest Button Addon

creinold:

I am starting to wonder if the HTML codes you use to style your description is messing it up. Because it is trying to render them in the pinit description. Hmmm...

Can you change one of your products descriptions to be just basic text description no html style and test it. Ie: No font tags, no order list / unorder list... etc/// Just text and that's it....

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

16 Mar 2012, 6:33 PM
#22
nolsowski avatar

nolsowski

Inactive

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

Re: creinold Pinterest Button Addon

creinold:

Can you change one of your products descriptions to be just basic text description no html style and test it. Ie: No font tags, no order list / unorder list... etc/// Just text and that's it....

Sure! Let me do that real quick.

16 Mar 2012, 6:37 PM
#23
nolsowski avatar

nolsowski

Inactive

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

Re: creinold Pinterest Button Addon

creinold:

Can you change one of your products descriptions to be just basic text description no html style and test it. Ie: No font tags, no order list / unorder list... etc/// Just text and that's it....

http://frompropertorocker.com/every-bunny-needs-a-little-bling-tutu-onepiece-p-3981.html This is where I changed the text.

16 Mar 2012, 6:49 PM
#24
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 the addThis server don't like the zen-cart product url code for some reason. I got to research why. Should just echo the url for the product. I wonder if is an SEO add on that causes the problem. What SEO add on you are using?

it's echo your URL to your product page as: http://frompropertorocker.com/product_info

instead of: http://frompropertorocker.com/every-bunny-needs-a-little-bling-tutu-onepiece-p-3981.html

The media tag is working good. Not sure why it doesn't show up in the popup when I press the pintrest button. the url to the image is: http://frompropertorocker.com/images/medium/kayden-grace/bunny-bling-tutu-one-piece_MED.jpg which shows it loaded correctly but image not showing up in my pop-up? Weird? Must be something with addThis... Another research item.

I figured out a the description tag.

<?php echo stripslashes(strip_tags($products_description)); ?>

You can try that on the addThis thingy also.

That will strip the HTML char from the description. I will add that to my next pinterest update.

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

16 Mar 2012, 6:57 PM
#25
nolsowski avatar

nolsowski

Inactive

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

Re: creinold Pinterest Button Addon

creinold:

Okay the addThis server don't like the zen-cart product url code for some reason. I got to research why. Should just echo the url for the product. I wonder if is an SEO add on that causes the problem. What SEO add on you are using?

it's echo your URL to your product page as: http://frompropertorocker.com/product_info

instead of: http://frompropertorocker.com/every-bunny-needs-a-little-bling-tutu-onepiece-p-3981.html

The media tag is working good. Not sure why it doesn't show up in the popup when I press the pintrest button. the url to the image is: http://frompropertorocker.com/images/medium/kayden-grace/bunny-bling-tutu-one-piece_MED.jpg which shows it loaded correctly but image not showing up in my pop-up? Weird? Must be something with addThis... Another research item.

I figured out a the description tag.

<?php echo stripslashes(strip_tags($products_description)); ?>
> 
> You can try that on the addThis thingy also.
> 
> That will strip the HTML char from the description. I will add that to my next pinterest update.

I have Ultimate SEO URLs installed. I can turn it off in the admin to see if that works.
16 Mar 2012, 7:12 PM
#26
nolsowski avatar

nolsowski

Inactive

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

Re: creinold Pinterest Button Addon

I just noticed that there is Pin It text under my photo and if you click that the description comes up. Not sure where that came from.

16 Mar 2012, 7:32 PM
#27
nolsowski avatar

nolsowski

Inactive

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

Re: creinold Pinterest Button Addon

nolsowski:

I just noticed that there is Pin It text under my photo and if you click that the description comes up. Not sure where that came from.

Okay now I noticed when I went the description page and added my font size and font choice now I get the duplicate description back up.

16 Mar 2012, 7:52 PM
#28
creinold avatar

creinold

Zen Follower

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

Re: creinold Pinterest Button Addon

Sorry my laptop battery died. Was at bookstore. I'll get back on later tonight. :(

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

16 Mar 2012, 7:53 PM
#29
nolsowski avatar

nolsowski

Inactive

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

Re: creinold Pinterest Button Addon

creinold:

Sorry my laptop battery died. Was at bookstore. I'll get back on later tonight. :(

Oh that's fine. Thank you for all your help so far! I really appreciate it. :D

16 Mar 2012, 7:59 PM
#30
creinold avatar

creinold

Zen Follower

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

Re: creinold Pinterest Button Addon

No problem. Hard to troubleshooting on my phone inet. LOL

Have you true turning off ultimate seo. And check to see what happens?

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

16 Mar 2012, 8:02 PM
#31
nolsowski avatar

nolsowski

Inactive

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

Re: creinold Pinterest Button Addon

creinold:

No problem. Hard to troubleshooting on my phone inet. LOL

Have you true turning off ultimate seo. And check to see what happens?

LOL. Understandable.

Yes I did turn it off but it doesn't look like it helped any.

16 Mar 2012, 8:14 PM
#32
creinold avatar

creinold

Zen Follower

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

Re: creinold Pinterest Button Addon

and did you use the new: ```

<?php echo stripslashes(strip_tags($products_description)); ?>

for the description?

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

16 Mar 2012, 8:15 PM
#33
nolsowski avatar

nolsowski

Inactive

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

Re: creinold Pinterest Button Addon

creinold:

and did you use the new: ```

<?php echo stripslashes(strip_tags($products_description)); ?>
> 
> for the description?

Yep I have it like this: pi:pinit:description="<?php echo stripslashes(strip_tags($products_description)); ?>" is that the correct way?
16 Mar 2012, 8:16 PM
#34
nolsowski avatar

nolsowski

Inactive

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

Re: creinold Pinterest Button Addon

I mean like this lol ```php
pi:pinit:description="<?php echo stripslashes(strip_tags($products_description)); ?>"

16 Mar 2012, 8:20 PM
#35
creinold avatar

creinold

Zen Follower

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

Re: creinold Pinterest Button Addon

Yeah that is correct.But looks like you added my pinterest codes back in to tpl_product_info_display.php did you also change it there?

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

16 Mar 2012, 8:21 PM
#36
nolsowski avatar

nolsowski

Inactive

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

Re: creinold Pinterest Button Addon

creinold:

Yeah that is correct.But looks like you added my pinterest codes back in to tpl_product_info_display.php did you also change it there?

I just changed that code in the tpl_product_info_display.php. Where was the other place I was supposed to put it in?

16 Mar 2012, 8:25 PM
#37
nolsowski avatar

nolsowski

Inactive

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

Re: creinold Pinterest Button Addon

I think I am confusing the both of us. lol I have the changed version of the addthis code you gave me and this code ```php
!--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($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.) --> ``` in my tpl_product_info_display.php am I supposed to have them both in my tpl_product_info_display.php?
16 Mar 2012, 8:51 PM
#38
creinold avatar

creinold

Zen Follower

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

Re: creinold Pinterest Button Addon

Change this:

!--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($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.) -->

To this:

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

Whew that was hard to do on my phone... LOL

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

16 Mar 2012, 8:54 PM
#39
nolsowski avatar

nolsowski

Inactive

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

Re: creinold Pinterest Button Addon

creinold:

Change this:

!--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($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.) --> ``` > > To this: > ``` !--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.) --> ``` > > Whew that was hard to do on my phone... LOL

LOL Thanks! It took off the extra description and changed it to the text Pin It under my image. If you click on that the description does show up in the pop window. But if you click on the Pin It button next to my addthis then it doesn't.

16 Mar 2012, 9:02 PM
#40
creinold avatar

creinold

Zen Follower

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

Re: creinold Pinterest Button Addon

addThis code: Was something I created real fast. I never tested it. You were my guinea pic... ;) LOL I need to play with it later. I don't use addThis on my site. You can remove it till I figure it out better...

to remove, delete:

<a class="addthis_button_pinterest"
pi:pinit:url="<?php echo zen_href_link(FILENAME_PRODUCT_INFO); ?>"
pi:pinit:media="<?php echo HTTP_SERVER . DIR_WS_CATALOG . $products_image_medium; ?>"
pi:pinit:description="<?php echo stripslashes(strip_tags($products_description)); ?>"
pi:pinit:layout="horizontal">

my pinterest codes:
You need to put the javascript_main.php codes back in too... ;)

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