Social Bookmarks

A little mod you might like.



Add this to your product_details.tpl were you would like to see it.


```php

Social Bookmarking:



```
make a new .js like social.js and add this code. And copy it to your scripts folder. Or use the one in the zip.

```php
var image_dir="/xxxxxxxx/skins/[COLOR=Red]your_skin[/COLOR]/customer/images/social";

function add_tool(icon, name, url) {
document.write('Add to ' + name + '');
}

function add_all() {
var title = encodeURIComponent(document.title);
var url = encodeURIComponent(document.URL);

// icon, name, url
add_tool('delicious', 'del.icio.us', 'http://del.icio.us/post?url=' + url + '&title=' + title);
add_tool('digg', 'digg', 'http://digg.com/submit?phase=2&url=' + url + '&title=' + title);
add_tool('google', 'google', 'http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=' + url + '&title=' + title);
add_tool('spurl', 'Spurl.net', 'http://www.spurl.net/spurl.php?url=' + url + '&title=' + title);
add_tool('wists', 'Wists', 'http://wists.com/r.php?c=&r=' + url + '&title=' + title);
add_tool('simpy', 'Simpy', 'http://www.simpy.com/simpy/LinkAdd.do?href=' + url + '&title=' + title);
add_tool('newsvine', 'Newsvine', 'http://www.newsvine.com/_tools/seed&save?u=' + url + '&h=' + title);
add_tool('blinklist', 'BlinkList', 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Url=' + url + '&Title=' + title);
add_tool('furl', 'Furl', 'http://www.furl.net/storeIt.jsp?u=' + url + '&t=' + title);
add_tool('reddit', 'reddit', 'http://reddit.com/submit?url=' + url + '&title=' + title);
add_tool('fark', 'FARK', 'http://cgi.fark.com/cgi/fark/edit.pl?new_url=' + url + '&new_comment=' + title + '&linktype=');
add_tool('blogmarks', 'BlogMarks', 'http://blogmarks.net/my/new.php?mini=1&simple=1&url=' + url + '&title=' + title);
add_tool('yahoo', 'Yahoo! My Web', 'http://myweb2.search.yahoo.com/myresults/bookmarklet?u=' + url + '&t=' + title);
add_tool('smarking', 'smarking', 'http://smarking.com/editbookmark/?url=' + url + '&title=' + title);
add_tool('magnolia', 'Ma.gnolia', 'http://ma.gnolia.com/bookmarklet/add?url=' + url + '&title=' + title);
add_tool('segnalo', 'Segnalo', 'http://segnalo.com/post.html.php?url=' + url + '&title=' + title);
}

add_all();
```
Make a folder inside your images folder called social and copy the images to it.

Have Fun. :p

social bookmark.zip

social.jpg

thank you mr, good module

Looks good, I’ll be sure to use this. I sell music downloads for bands and they’ll be likely to want to use it.



Many thanks

Simon

Ok, so I’ve added this to my site now, see;



[url]http://www.notsounknown.co.uk/cs/index.php?target=products&product_id=1568[/url]



Works like a charm, many thanks

Simon

Hi recedo



Very nice, good site m8

Thanks for the kind words, still being finished at the moment though but opening to the public pretty soon.



But thankyou for the mod, should be appreciated by the artists on the site.



Simon

TTT - thank you very much.

Good job Zardos, that’s another mod available FREE here at CS, the dirtball modders over at brand X are charging $20 for this mod…lol…now check this tidbit of information out…



You would have to spend over $200 for the below mods from brand X to have what we have available FREE here at CS



Advanced Mini Cart - $39.99 (avail. FREE in 3rd party mods)

Customer Polls - $34.95 (avail. FREE in 3rd party mods)

Image Verification/Captcha - $29.95 (avail. FREE in 3rd party mods)

Global Product Options - $39.95 (included in CS)

Batch Product Updating - $59.95 (included in CS)

Hi snorocket



Thanks, and yes this is one of the best carts to date, i am still not live , but in on rush and waiting for next release for XHTML/CSS and other goodies. :smiley:

Howdy!



I was trying to get this to work in the bottom.tpl file but can only get the text that shows up (no social.jpg file shows up). I checked all my path settings, etc, and was just curious if this only works with 1.3.4sp2 or if I should be able to get it working with 1.3.3…also AWESOME mod zardos!!! Thanks again!!!



Cheers,

Travis

:smiley:

In social.js change this first line to reflect the path to your image:



var image_dir=“/megapcs/skins/your_skin/customer/images/social”;

Hi travis@blueheronbags.com



This should work with any version of CS, and you can put it any place you like.

Hi zardos and all,



Thanks a lot for this mod… I’ve installed it and it works alright, but I’d like it to open in a new window as the focus here is to keep the customer in the shop.



So I changed the original target=“_self” to target=“_blank”. But it still opens in the same window.



What seems impossible happens… I have tried it in three different browsers, emptied my cache but still no go. Any ideas?

Target blank to target=“_new”


[quote name=‘illusion’]Hi zardos and all,



Thanks a lot for this mod… I’ve installed it and it works alright, but I’d like it to open in a new window as the focus here is to keep the customer in the shop.



So I changed the original target=“_self” to target=“_blank”. But it still opens in the same window.



What seems impossible happens… I have tried it in three different browsers, emptied my cache but still no go. Any ideas?[/quote]

[quote name=‘zardos’]

function add_tool(icon, name, url) {

document.write(‘Add to ' + name + '’);

}

[/QUOTE]



the code to be added is as in red



missing a little code.



chahine

how to set it so that if follows the flow of the page design.?



chahine

[quote name=‘chahinemm’]the code to be added is as in red



missing a little code.



chahine[/QUOTE]



I have tried the code you gave and possibly every combination I could think about. None worked for me.



It all opens in the same window. Tested on Firefox 2.0, Opera 9.0 and IE 6.0

Try put target=“new” inside image or url


[quote name=‘illusion’]I have tried the code you gave and possibly every combination I could think about. None worked for me.



It all opens in the same window. Tested on Firefox 2.0, Opera 9.0 and IE 6.0[/quote]

[quote name=‘dominos_2004’]Try put target=“new” inside image or url

[/QUOTE]

oops thnx domino forgot to change one of them yeh the second one is supposed to be new



chahine

Yes, it’s now opening in a new window, thanks a lot.



I think this should be the default setting for this script, as most of us don’t want to loose the focus of the customer from the store just because of a bookmark, however good that is. But that is just my opinion…