Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Facebook - Like button


metalice

Recommended Posts

hi,

 

is there any script/add on that add the small like button of face book to every page? and also the tweet button?

like here(on the left side): http://www.goarticles.com/cgi-bin/showa.cgi?C=3402953

i tried to look in the add on section and couldnt find it.

 

 

TNX

Matan

 

previous post

 

If you go to FB and get an app id as the post refers to, you will be given a box of code. I simply pasted that into my footer and it works. not sure about twitter.

 

Tim

http://www.oscommerce.com/forums/topic/358071-how-to-facebook-like-button-in-oscommerce/page__st__20__p__1535478entry1535478

Link to comment
Share on other sites

previous post

 

If you go to FB and get an app id as the post refers to, you will be given a box of code. I simply pasted that into my footer and it works. not sure about twitter.

 

Tim

http://www.oscommerce.com/forums/topic/358071-how-to-facebook-like-button-in-oscommerce/page__st__20__p__1535478entry1535478

 

hi,

 

if ill use the code of facebook the like button wont be added to every page. i already have follow on us in facebook button in the homepage.

i need a like button for every product page. people like to push the like after they are buying something. :)

Link to comment
Share on other sites

i have created a box that i can palce on the left or right hand side (using infobox admin)..

 

you create a file in includes> boxes. and call it facebook.php. insert the following codes:

 


<!-- facebook //-->
         <tr>
           <td>
<?php
   $info_box_contents = array();
   $info_box_contents[] = array('text' => BOX_HEADING_FACEBOOK);

   new infoBoxHeading($info_box_contents, false, false);

 ?><table class="infoBoxContents" border="0" width="200" bgcolor="#FFFFFF"cellspacing="0" cellpadding="1"><tr><td class="infoBoxContents"><iframe src="http://www.facebook.com/plugins/likebox.php?href=your page ref goes here wall&width=215&connections=0&stream=false&header=false&height=75" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:215px; height:80px;" allowTransparency="false"></iframe></td></tr></table>
<?
   $info_box_contents = array();
   new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- facebook_eof //-->

 

if you are using infobox admin you simply add the box in admin...otherwise you need to go to left or right column.php in includes folder and add include(DIR_WS_BOXES . 'facebook.php');

 

twitter will depend if you want a twitter 'follow me' button or a box to show your tweets.

I use both on my posh kitty site... the 'follow us box' i used as a contrib by Max Terbeck then changed it/some images and added links to others as well.

 

hope this helps

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...