If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / Creinold Social / Media Marketing Mod 1.0

Creinold Social / Media Marketing Mod 1.0

Started by creinold on 23 May 2010, 8:38 PM · Views: 8,581

Results 1 to 20 of 39
23 May 2010, 8:38 PM
#1
creinold avatar

creinold

Zen Follower

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

Post #1 by creinold

I am working on a new modification to integrate Facebook like (with analytic), Share on Facebook, Facebook Comments, Share on Myspace, RSS addthis Social Bookmark button (with analytic) among other stuff such as RSS feeds, reviews, etc....

I got the Facebook like function pretty much working but want it to pull an image from the product page to display on Facebook like page.

It uses meta tag to pull the information into Facebook

I need to put a path for the image in image content. Does anyone know if their is a short echo statement for product_image_main? Any help and tips/suggestions would be appreciated. I will be turning this into a modification for everyone to download.

Thanks Charles

Plans:
Own language file
Settings via Admin
Own CSS file
Etc...

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 May 2010, 8:38 PM
#2
creinold avatar

creinold

Zen Follower

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

Post #2 by creinold

Here's what my meta tag look like for facebook:

<!-- Facebook Like Your Admin Id --> <meta property="fb:admins" content="761808494"/> <!-- Facebook Like Your Product Title --> <meta property="og:title" content="<?php echo META_TAG_TITLE; ?>"/> <!-- Facebook Like Your Product Description --> <meta property="og:description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> <!-- Facebook Like Your Site Name --> <meta property="og:site_name" content="Gotleather.com"/> <!-- Facebook Like Your Product Image --> <meta property="og:image" content=" "/> <!-- Facebook Like Your Website type --> <meta property="og:type" content="website" /> <!-- Facebook Like Your URL to Like Page --> <meta property="og:url" content="<?php echo $canonicalLink; ?>" />

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

25 May 2010, 3:47 AM
#3
creinold avatar

creinold

Zen Follower

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

Post #3 by creinold

Can't figure out the code to figure out how to print (echo) the image url. =(

I see when you hover the mouse about the main image it shows the url in the status bar. But when I use any of the coding it prints nothing.

Here's what I tried with no luck...
<meta property="og:image" content="<?php echo $products_image_base; ?>" />

<meta property="og:image" content="<?php echo $products_image_medium; ?>" /> <meta property="og:image" content="<?php echo $products_image_large; ?>" />

I also tried a few other ones that I didn't write above but got the same result =(..

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

26 May 2010, 3:37 AM
#4
creinold avatar

creinold

Zen Follower

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

Post #4 by creinold

Got it to work! Edited the meta_tags.php in includes/modules folder to add a DB query for product images , then pulled it using html_header.php in the templates/your_custom_folder/common/

=)

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

29 May 2010, 2:44 PM
#7
creinold avatar

creinold

Zen Follower

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

Post #7 by creinold

Thanks! I haven't worked on for last few days. Been busy at the retail store. Will probably get more done on it tuesday after the memorial weekend. Once I get the concept up and going I will package that up as a beta. Then once I know it good and everyone happy I'll work on adding settings in the admin page. =) I appreciate your response.
Posted via Mobile Device

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

29 May 2010, 6:54 PM
#8
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Post #8 by khopek

Well it sounds like exactly what I am looking for. I've spent far too many hours trying to get the individual Facebook social plugins working, to no avail. Can't wait to see what you come up with!

30 May 2010, 3:31 AM
#9
creinold avatar

creinold

Zen Follower

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

Post #9 by creinold

Got Facebook xfbxml working, I like it a lot better. =) Check it out in the screenshot or you can check it out at my website at http://www.gotleather.com

Just rough still got work to do on it... Any suggestions?

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

30 May 2010, 4:12 AM
#10
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Post #10 by khopek

Awesome..I didn't know that a comment box would actually appear. That's great!

30 May 2010, 6:46 PM
#11
creinold avatar

creinold

Zen Follower

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

Post #11 by creinold

Yeah it's pretty neat, you can select the amount of comments you want to show, moderate it, set admins and moderators, blacklist, whitelist, Allow or disallow anonymous comments, etc. Even can style it with your own css file

:cool:

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

30 May 2010, 7:07 PM
#12
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #12 by haredo

Why is this script not working properly like your button called Share your facebook

<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_link { padding:2px 0 0 20px; height:16px; background:url(<http://static.ak.facebook.com/images/share/facebook_share_icon.gif?6:26981>) no-repeat top left; }</style><a rel="nofollow" href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank" class="fb_share_link">Share on Facebook</a>

I can't pull up the image or anything???

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

30 May 2010, 7:15 PM
#13
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #13 by haredo

haredo:

Why is this script not working properly like your button called Share your facebook

I can't pull up the image or anything???

Here is what I have works perfect but draws every image instead of just the main image

<div id="autoFacebook"> <a href="http://www.facebook.com/sharer.php?u=http://haredo.com&t=<?php echo zen_href_link(FILENAME_PRODUCT_INFO, zen_get_all_get_params()); ?>" type="button" name="fb_share">Share on Facebook</a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script> </div>

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

30 May 2010, 8:39 PM
#14
creinold avatar

creinold

Zen Follower

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

Post #14 by creinold

Here use this code instead of what you are using. This is all you need.

<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_link { padding:2px 0 0 20px; height:16px; background:url(http://static.ak.facebook.com/images/share/facebook_share_icon.gif?6:26981) no-repeat top left; }</style><a rel="nofollow" href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank" class="fb_share_link">Share on Facebook</a>

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

30 May 2010, 8:57 PM
#15
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #15 by haredo

Works perfect but instead of only the main product image showing as a thumbnail I get 4

main image
zen cart logo
hand pic with pencil from side box for Reviews
green check mark from the sidebox notification

Is there any way to write the code just to use the product image itself???

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

30 May 2010, 9:07 PM
#16
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,915
Plugin Contributions:
24

Post #16 by dbltoe

Only problem is that the code bombs when in a div due to the style element embedded.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

30 May 2010, 9:21 PM
#18
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,915
Plugin Contributions:
24

Post #18 by dbltoe

nope

Got it in a div to do a three-col display of review, fb, and tell-a-friend across the bottom of the product page.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

30 May 2010, 9:22 PM
#19
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #19 by haredo

just inserted the block of code here:

includes/ templates/ CUSTOM/ templates/ tpl_products_info_display.php

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

30 May 2010, 10:10 PM
#20
creinold avatar

creinold

Zen Follower

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

Post #20 by creinold

No div wrap needed. Just use my code only not mix it with any other:

<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_link { padding:2px 0 0 20px; height:16px; background:url(<http://static.ak.facebook.com/images/share/facebook_share_icon.gif?6:26981>) no-repeat top left; }</style><a rel="nofollow" href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank" class="fb_share_link">Share on Facebook</a>

insert it where you want it to show on tpl_product_info.php

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