Zen Cart Logo
Forums / All Other Contributions/Addons / Support thread: Social Bookmarking/Social Shopping

Support thread: Social Bookmarking/Social Shopping

Locked

Views: 44,706

Results 1 to 20 of 99
This thread is locked. New replies are disabled.
27 Sep 2006, 9:42 AM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Support thread: Social Bookmarking/Social Shopping

Adds bookmarklet buttons for popular social bookmarking/shopping sites to your product_info page. Currently does del.icio.us, furl, wists and My Yahoo. If this mod is popular, I will add some more shopping sites (Kaboodle, Stylehive, etc.) later on. Get it while it's hot at

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_60&products_id=315

If you haven't used social bookmarking, it would be a good idea to learn something about it before putting it on your site. :) Open a free account on del.icio.us and try it out. It's particularly useful if you find yourself working on multiple computers throughout the day and need access to your bookmarks on each one - but even if you only work on one computer, it's interesting to see what other people are looking at and what's popular on the web.

Good luck,
Scott

28 Sep 2006, 2:05 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Support thread: Social Bookmarking/Social Shopping

The image below shows what the social button bar looks like.

28 Sep 2006, 8:29 AM
#3
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: Support thread: Social Bookmarking/Social Shopping

Hi there,

I like this mod, I think it is a great idea. Works without a hitch! Will get back to you soon.

:lookaroun

28 Sep 2006, 9:29 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Support thread: Social Bookmarking/Social Shopping

Thanks for the feedback. I have one more change in the hopper, which is to optionally (the cart owner can set a flag) provide a link to Socializer, which gives a brazillion links to social bookmarking sites. Actually, what I would really like is to have something like this, but for social shopping sites, but I haven't found it yet.

I waffled about putting this on (it's ad supported, so some shop owners might not want it), but didn't realize the obvious solution of just making it optional.

Scott

11 Oct 2006, 5:04 PM
#5
zforrest avatar

zforrest

New Zenner

Join Date:
Jun 2006
Location:
Austin, TX
Posts:
85
Plugin Contributions:
0

Re: Support thread: Social Bookmarking/Social Shopping

I'd like to use this, but it doesn't seem to work with chemo's seo urls mod.

11 Oct 2006, 6:45 PM
#6
dinki avatar

dinki

Zen Follower

Join Date:
Oct 2006
Posts:
206
Plugin Contributions:
0

Re: Support thread: Social Bookmarking/Social Shopping

This is way cool. Can you report on how well it is working on your site (or anyone else's who has installed the mod)? I'm curious as to whether folks will actually use this. If they do it could provide a good bit of traffic.

11 Oct 2006, 11:00 PM
#7
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Support thread: Social Bookmarking/Social Shopping

zforrest - thank you for this report. Can you be more specific? I would like to update the documentation on this.

Thanks,
Scott

12 Oct 2006, 1:51 PM
#8
zforrest avatar

zforrest

New Zenner

Join Date:
Jun 2006
Location:
Austin, TX
Posts:
85
Plugin Contributions:
0

Re: Support thread: Social Bookmarking/Social Shopping

Well, it's a rather weird bug.

Ok. So in the social template included in the contribution, there is a line similar to the following:

$linkpath = urlencode($linkpath);

Which takes characters like "&" and makes them readable like "&" (I assume), however, but whenever you go to bookmark, delicious, furl, etc, misreads the link. For example, on a given product, I click the delicious icon and this is an example url it will save:

http://www.mysite.com/index.php?main_page=product_info&products_id=70543

ok, so far so good. Now when I actually save the link, delicious redirects but I reach a 404 error because this will is the link it redirects to:

http://www.mysite.com/product_info?amp;products_id=70543

which sucks.

I've tried some other methods like htmlentities and htmlspecialchars, but since I really don't know what the hell I'm doing in PHP, my efforts have been in vain. I hope my explanation helps.

12 Oct 2006, 10:34 PM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Support thread: Social Bookmarking/Social Shopping

Thank you - let me see if I can resolve it. I was actually going to do another release shortly anyhow to provide the link to even more sites. :)

Scott

13 Oct 2006, 12:24 PM
#11
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Support thread: Social Bookmarking/Social Shopping

If you are using any sort of SEO URL modification logic (Chemo's Ultimate URLs, Ultimate SEO URLs, or any other contribution), and you're having trouble with this contribution, please PM me. If I can get a few more specifics, I might be able to figure out the problem.

Thanks,
Scott

13 Oct 2006, 8:41 PM
#12
zforrest avatar

zforrest

New Zenner

Join Date:
Jun 2006
Location:
Austin, TX
Posts:
85
Plugin Contributions:
0

Re: Support thread: Social Bookmarking/Social Shopping

swguy:

zforrest, if you type into the address bar

http://www.mysite.com/index.php?main_page=product_info&products_id=70543

does this work?

No. Chemo's urls mod takes that url and turns it into the second url I posted in my previous description of the problem, like so:

http://www.mysite.com/product_info?amp;products_id=70543

13 Oct 2006, 9:28 PM
#13
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Support thread: Social Bookmarking/Social Shopping

OK. So is a chemo URL

<product name with spaces turned to dashes>-p-<product id>.html

If so, I will send you a patch.

Scott

13 Oct 2006, 10:26 PM
#14
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Support thread: Social Bookmarking/Social Shopping

That is essentially how the url looks. However, there are some settings that allow you to filter out smaller words (such as a, the, etc.).

If this mod used the zen href function to pull the correct product link it would solve the problem, I believe.

On a side note, what the mod really looks for is the -p-<product id>.html. So you can type anything into the browser of a cart using ultimate seo http://(the domain)/blahblahblahblah-p-100.html, and it will still redirect the customer to product id # 100. My point is, all that really matters is the -p-<product id>.html, the rest is search engine candy.

Anyways, I hope that helps.

swguy:

OK. So is a chemo URL

<product name with spaces turned to dashes>-p-<product id>.html

If so, I will send you a patch.

Scott

13 Oct 2006, 11:27 PM
#15
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Support thread: Social Bookmarking/Social Shopping

Ok, I just installed it and it appears to work fine the Ultimate SEO and it correctly constructs the url using the zen href link function.

Thanks.

14 Oct 2006, 12:10 AM
#16
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Support thread: Social Bookmarking/Social Shopping

Thank you, voltage. So we're down to: works with Ultimate SEO, doesn't work with Chemo's URLs. I will cook up a test fix for Chemo's URLs with this new information.

Thanks,
Scott

14 Oct 2006, 12:48 AM
#17
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Support thread: Social Bookmarking/Social Shopping

Ultimate SEO is the zencart version of Chemo's Ultimate SEO URL's that Dreamscape ported from Osc. Isn't it?

swguy:

Thank you, voltage. So we're down to: works with Ultimate SEO, doesn't work with Chemo's URLs. I will cook up a test fix for Chemo's URLs with this new information.

Thanks,
Scott

14 Oct 2006, 1:23 AM
#18
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Support thread: Social Bookmarking/Social Shopping

zforrest, would you please try this change? In tpl_social.php, please change line 5 from

$linkpath = zen_href_link(zen_get_info_page($_GET['products_id']) , 'products_id=' . $_GET['products_id'], 'NONSSL', false);

to

 $linkpath = HTTP_SERVER . DIR_WS_CATALOG . "product-p-" . $_GET['products_id'] . ".html";

and let me know if it works? If it does, I'll add a define for Chemo URLs to include this code.

** THIS IS ONLY FOR PEOPLE USING CHEMO URLS; others please do not make this change!

Thanks,
Scott

16 Oct 2006, 1:41 PM
#19
zforrest avatar

zforrest

New Zenner

Join Date:
Jun 2006
Location:
Austin, TX
Posts:
85
Plugin Contributions:
0

Re: Support thread: Social Bookmarking/Social Shopping

It works. Thanks.

16 Oct 2006, 1:44 PM
#20
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Support thread: Social Bookmarking/Social Shopping

Thanks for getting back to me on this.

I will update the module on the downloads site shortly.

Scott