markw10 Posted July 10, 2009 Share Posted July 10, 2009 I have an E-Commerce site now and will also be launching a 2nd website, a blog, later this summer. My question is currently I have started using both Twitter and Facebook and have various ways of listing my items on there such as using TwitterFeed and submitting RSS Feeds. I am just starting to look at Social Bookmarking sites now such as Digg, Delicious, and Kaboodle. What I'd like to know is how best should I list my items on these? I know they aren't really for listing and I have an extra module that allows any page on my website to be shared on several social bookmarking sites. Is there any way of linking some of my pages to them though. I know I could create accounts on several and share pages but is there an easier way such as a program that would link various pages on several of the social bookmarking sites? Link to comment Share on other sites More sharing options...
lindsayanng Posted July 10, 2009 Share Posted July 10, 2009 Theres nothing to automatically do it.. Because that would be annoying and remove the usefulness of those sites.. If someone had a bot that submitted every thing you posted every time, it woul dget flooded with spammers.. I think that twitter has something that will automatically tweet a link under your account if you make a change, but right now its for wordpress, and you would have to code from scratch using twitter's API and feeds As for those other sites, you can just add the social bookmarking links on every page so that your customiers can DIGG, STUMBLE, Delicious, etc... your products.. but thats about it A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
leoneonekenobi Posted January 26, 2010 Share Posted January 26, 2010 hi ok can anyone help? just wondered what code i neede to put in the href link so that the correct product it linked to say facebook etc on product_info.php i just cant work it out? the closest i got with a code that works was - href="http://twitter.com/home?status=<?php echo tep_href_link('product_info.php') . '" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>'; ?> but when i put that link into the address bar it show product not found. hope someone can help. regards leoneonekenobi Link to comment Share on other sites More sharing options...
♥kymation Posted January 26, 2010 Share Posted January 26, 2010 Save this code as catalog/includes/boxes/bookmarks.php, or whatever you want to call it: <?php /* $Id: bookmarks.php, v 1.0 20090925 kymation Exp $ $Loc: catalog/includes/boxes/ $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2009 osCommerce Released under the GNU General Public License */ $bookmarks_string = '<script LANGUAGE="Javascript"> <!-- Begin if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { document.write(\'<A HREF="javascript:window.ext\'); document.write(\'ernal.AddFavorite(location.href, document.title);" \'); document.write(\'onMouseOver=" window.status=\'); document.write("\'Add to Favorites!\'; return true "); document.write(\'"onMouseOut=" window.status=\'); document.write("\' \'; return true "); document.write(\'">' . tep_image_button ('button_add_fave.gif', IMAGE_BUTTON_ADD_FAVORITES, 'style="margin-bottom:5px;"') . '</a><br>\'); } // End --> </script> <noscript></noscript> '; $bookmarks_query_raw = " select name, domain, full_url, image from " . TABLE_BOOKMARKS . " order by sort_order "; // print 'Bookmarks Query: ' . $bookmarks_query_raw . '<br>'; $bookmarks_query = tep_db_query ($bookmarks_query_raw); while ($bookmarks = tep_db_fetch_array ($bookmarks_query) ) { $bookmarks_string .= '<a rel="nofollow" class="bookmarks" '; $bookmarks_string .= 'href="' . $bookmarks['domain'] . '" '; $bookmarks_string .= 'onclick="window.open(\'' . $bookmarks['full_url'] . '" '; $bookmarks_string .= 'title="Bookmark to: ' . $bookmarks['name'] . '"> '; $bookmarks_string .= tep_image (DIR_WS_ICONS . $bookmarks['image'], 'Bookmark to: ' . $bookmarks['name'], '', '', 'class="bookmarks"'); $bookmarks_string .= '</a>' . "\n"; } // while ($bookmarks ?> <!-- social_bookmarks //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array ('text' => BOX_HEADING_BOOKMARKS); new infoBoxHeading ($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array ('text' => $bookmarks_string); new infoBox ($info_box_contents); ?> </td> </tr> <!-- social_bookmarks_eof //--> Then add the new box to whichever column you want it to appear in. You'll need to add a database table with the sites you want to bookmark to. Here's mine: -- -- Table structure for table `bookmarks` -- CREATE TABLE IF NOT EXISTS `bookmarks` ( `bookmarks_id` int(11) NOT NULL auto_increment, `name` varchar(32) NOT NULL, `domain` varchar(32) NOT NULL, `full_url` varchar(255) NOT NULL, `image` varchar(64) NOT NULL, `sort_order` int(11) NOT NULL default '0', PRIMARY KEY (`bookmarks_id`), KEY `sort_order` (`sort_order`) ) ; -- -- Dumping data for table `bookmarks` -- INSERT INTO `bookmarks` (`bookmarks_id`, `name`, `domain`, `full_url`, `image`, `sort_order`) VALUES (1, 'Google', 'http://www.google.com/', 'http://www.google.com/bookmarks/mark?op=add&hl=en&bkmk=''+encodeURIComponent(location.href)+''&annotation=&labels=&title=''+encodeURIComponent(document.title));return false;', 'google_trans.gif', 5), (2, 'Yahoo', 'http://www.yahoo.com/', 'http://myweb2.search.yahoo.com/myresults/bookmarklet?t=''+encodeURIComponent(document.title)+''&d=&tag=&u=''+encodeURIComponent(location.href));return false;', 'yahoo_trans.gif', 10), (3, 'Facebook', 'http://www.facebook.com/', 'http://www.facebook.com/sharer.php?u=''+encodeURIComponent(location.href)+''&t=''+encodeURIComponent(document.title));return false;', 'facebook_trans.gif', 15), (4, 'Digg', 'http://digg.com/', 'http://digg.com/submit?phase=2&url=''+encodeURIComponent(location.href)+''&bodytext=&tags=&title=''+encodeURIComponent(document.title));return false;', 'digg_trans.gif', 20), (5, 'StumbleUpon', 'http://www.stumbleupon.com/', 'http://www.stumbleupon.com/submit?url=''+encodeURIComponent(location.href)+''&title=''+encodeURIComponent(document.title));return false;', 'stumbleupon_trans.gif', 25), (6, 'Reddit', 'http://reddit.com/', 'http://reddit.com/submit?url=''+encodeURIComponent(location.href)+''&title=''+encodeURIComponent(document.title));return false;', 'reddit_trans.gif', 30), (7, 'Del.icio.us', 'http://del.icio.us/', 'http://del.icio.us/post?v=2&url=''+encodeURIComponent(location.href)+''¬es=&tags=&title=''+encodeURIComponent(document.title));return false;', 'del_trans.gif', 35), (8, 'Technorati', 'http://www.technorati.com/', 'http://technorati.com/faves?add=''+encodeURIComponent(location.href)+''&tag='');return false;', 'technorati_trans.gif', 40), (9, 'Slashdot', 'http://slashdot.org/', 'http://slashdot.org/bookmark.pl?url=''+encodeURIComponent(location.href)+''&title=''+encodeURIComponent(document.title));return false;', 'slashdot_trans.gif', 45), (10, 'Propeller', 'http://www.propeller.com/', 'http://www.propeller.com/submit/?U=''+encodeURIComponent(location.href)+''&T=''+encodeURIComponent(document.title));return false;', 'propeller_trans.gif', 50), (11, 'Jumptags', 'http://www.jumptags.com/', 'http://www.jumptags.com/add/?url=''+encodeURIComponent(location.href)+''&title=''+encodeURIComponent(document.title));return false;', 'jumptags_trans.gif', 55), (12, 'Diigo', 'http://www.diigo.com/', 'http://www.diigo.com/post?url=''+encodeURIComponent(location.href)+''&title=''+encodeURIComponent(document.title)+''&tag=&comments=''); return false;', 'diigo_trans.gif', 60), (13, 'Newsvine', 'http://www.newsvine.com/', 'http://www.newsvine.com/_wine/save?popoff=1&u=''+encodeURIComponent(location.href)+''&tags=&blurb=''+encodeURIComponent(document.title));return false;', 'newsvine_trans.gif', 65), (14, 'Blinklist', 'http://www.blinklist.com/', 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Tag=&Url=''+encodeURIComponent(location.href)+''&Title=''+encodeURIComponent(document.title));return false;', 'blinklist_trans.gif', 70), (15, 'Spurl', 'http://www.spurl.net/', 'http://www.spurl.net/spurl.php?v=3&tags=&title=''+encodeURIComponent(document.title)+''&url=''+encodeURIComponent(document.location.href));return false;', 'spurl_trans.gif', 75), (16, 'Simpy', 'http://www.simpy.com/', 'http://www.simpy.com/simpy/LinkAdd.do?title=''+encodeURIComponent(document.title)+''&tags=¬e=&href=''+encodeURIComponent(location.href));return false;', 'simpy_trans.gif', 80), (17, 'Blogmarks', 'http://blogmarks.net/', 'http://blogmarks.net/my/new.php?mini=1&simple=1&url=''+encodeURIComponent(location.href)+''&content=&public-tags=&title=''+encodeURIComponent(document.title));return false;', 'blogmarks_trans.gif', 85), (18, 'Folkd', 'http://www.folkd.com/', 'http://www.folkd.com/submit/''+(dokument.location.href));return false;', 'folkd_trans.gif', 90), (19, 'Furl', 'http://www.furl.net/', 'http://www.furl.net/storeIt.jsp?u=''+encodeURIComponent(location.href)+''&keywords=&t=''+encodeURIComponent(document.title));return false;', 'furl_trans.gif', 95), (20, 'Ma.Gnolia', 'http://ma.gnolia.com/', 'http://ma.gnolia.com/bookmarklet/add?url=''+encodeURIComponent(location.href)+''&title=''+encodeURIComponent(document.title)+''&description=&tags='');return false;', 'ma.gnolia_trans.gif', 100), (21, 'Netvouz', 'http://www.netvouz.com/', 'http://www.netvouz.com/action/submitBookmark?url=''+encodeURIComponent(location.href)+''&description=&tags=&title=''+encodeURIComponent(document.title)+''&popup=yes'');return false;', 'netvouz_trans.gif', 105); Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
leoneonekenobi Posted January 26, 2010 Share Posted January 26, 2010 hi jim thanks for a fast answer but what im trying to add is sexybookmarks. in which the bookmark icons animate on mouseover.....unfortunetly i cannot work out the code required for the href. so that it links back to the right product on product_info.php page regards leoneonekenobi Link to comment Share on other sites More sharing options...
♥kymation Posted January 26, 2010 Share Posted January 26, 2010 The above code will generate the correct link to a product page, or even to a category page. You just need to add your mouseover code to the $bookmarks_string. I don't know what that code looks like exactly, but it shouldn't be all that hard to figure out. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
leoneonekenobi Posted January 26, 2010 Share Posted January 26, 2010 hi jim i am new to php and javascript.....i have been working on my site since xmas...changed alot and predominently i am a furniture designer...i have a test site with this on but i can if you like upload the product_info.php and put a product on so that you can see what i mean? regards leoneonekenobi Link to comment Share on other sites More sharing options...
♥kymation Posted January 26, 2010 Share Posted January 26, 2010 Post your link and I'll take a look at it. I should be able to figure it out if the code is at all sane. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
leoneonekenobi Posted January 26, 2010 Share Posted January 26, 2010 hi ok cool...ive uploaded the product_info.php etc...also activated a product.... now you will see the social bookmarks etc underneath the product description. but when you click on one you will see the link is not right..but as i wrote in the code above i cannot get the href correct so that it links back to the product. the site is - www.fusal-design.com regards leoneonekenobi Link to comment Share on other sites More sharing options...
♥kymation Posted January 26, 2010 Share Posted January 26, 2010 Fairly simple; the whole effect is done in CSS. You just need to surround each bookmark in a list element, then add the Unordered list tags and a div around that. It should look something like this (replacing lines 45-52 of the code I posted above): $bookmarks_string .= '<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">' . "\n"; $bookmarks_string .= '<ul class="socials">' . "\n"; while ($bookmarks = tep_db_fetch_array ($bookmarks_query) ) { $bookmarks_string .= '<li class="sexy-' . $bookmarks['domain'] . '">' . "\n"; $bookmarks_string .= '<a rel="nofollow" class="bookmarks" '; $bookmarks_string .= 'href="' . $bookmarks['domain'] . '" '; $bookmarks_string .= 'onclick="window.open(\'' . $bookmarks['full_url'] . '" '; $bookmarks_string .= 'title="Bookmark to: ' . $bookmarks['name'] . '"> '; $bookmarks_string .= tep_image (DIR_WS_ICONS . $bookmarks['image'], 'Bookmark to: ' . $bookmarks['name'], '', '', 'class="bookmarks"'); $bookmarks_string .= '</a>' . "\n"; $bookmarks_string .= '</li>' . "\n"; } // while ($bookmarks $bookmarks_string .= '</ul>' . "\n"; $bookmarks_string .= '</div>' . "\n"; You may need some mods to your CSS for that to work properly, plus some database changes to use the appropriate Social Bookmarking sites. Although I'm somewhat surprised that your list is missing the two largest players in the field: Google and Yahoo. My code also puts the bookmarks in a stock osCommerce box. If you don't want that, strip out the box code and convert it to a module. You can include the resulting code anywhere that you can put a div. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
leoneonekenobi Posted January 26, 2010 Share Posted January 26, 2010 hi thanks jim but ive got to say i really dont understand. i can and have changed addons to suit my design but when it comes to your last advice i havent a clue. just need a correct href link..? Link to comment Share on other sites More sharing options...
♥kymation Posted January 26, 2010 Share Posted January 26, 2010 As I said before, this code generates a correct link. You can adapt it any way you want. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
leoneonekenobi Posted January 26, 2010 Share Posted January 26, 2010 hi jim i have changed my site back to the standard social bookmark button which if you click on works correctly without adding extra tables or having a bookmarks.php file....surely i just need a href link be it in html or php that will link to the right product. regards leoneonekenobi Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.