Retix Posted August 11, 2010 Posted August 11, 2010 Hi guys am new at coding but I really need you help I would like to add the follow us on facebook, youtube, twitter etc on my webshop http://retix.biz at the bottom but last time I tried I massed up a code in the footer fil so I want to ask for help this time and I hope u guys can help me:-) the code I want to add is : <!-- AddThis Button BEGIN --> <p>Follow Us</p> <div class="addthis_toolbox addthis_32x32_style addthis_default_style"> <a class="addthis_button_facebook_follow" addthis:userid="YOUR-PROFILE"></a> <a class="addthis_button_twitter_follow" addthis:userid="YOUR-USERNAME"></a> <a class="addthis_button_googlebuzz_follow" addthis:userid="YOUR-USERNAME"></a> <a class="addthis_button_youtube_follow" addthis:userid="YOUR-USERNAME"></a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=remmy"></script> <!-- AddThis Button END --> I would like to add it at the bottom of my page some where with out massing the webshop code up any help???
Guest Posted August 11, 2010 Posted August 11, 2010 Remmy, You will have to post the code from the footer.php file so we can see where to insert it. Chris
Retix Posted August 11, 2010 Author Posted August 11, 2010 Remmy, You will have to post the code from the footer.php file so we can see where to insert it. Chris hey chris the code for footer.php is <?php /* $Id: $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ ?> <br> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td align="center" class="smallText"> <?php /* The following copyright announcement is in compliance to section 2c of the GNU General Public License, and can not be removed, or can only be modified appropriately with additional copyright notices. For more information please read the osCommerce Copyright Policy at: http://www.oscommerce.com/about/copyright This comment must be left intact together with the copyright announcement. */ ?> osCommerce Online Merchant Copyright © 2007 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a><br> osCommerce provides no warranty and is redistributable under the <a href="http://www.fsf.org/licenses/gpl.txt" target="_blank">GNU General Public License</a> </td> </tr> <tr> <td><?php echo tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5'); ?></td> </tr> <tr> <td align="center" class="smallText">Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a></td> </tr> </table> thanks:-)
multimixer Posted August 11, 2010 Posted August 11, 2010 hey chris the code for footer.php is The file you posted is [catalog]/admin/includes/footer.php You need to post the file [catalog]/includes/footer.php ... unless you want the "follow us" links to appear in the admin section My community profile | Template system for osCommerce - New: Responsive | Feedback channel
Retix Posted August 11, 2010 Author Posted August 11, 2010 The file you posted is [catalog]/admin/includes/footer.php You need to post the file [catalog]/includes/footer.php ... unless you want the "follow us" links to appear in the admin section Hey Multimixer thanks:-) you are right I donot want it to be in the admin section... the right code is <?php /* $Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> </td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" style="height:67px; background:url(images/bot.gif)" class="footer"> <tr> <td><?php echo tep_draw_separator('spacer.gif', '22', '1'); ?></td> <td style="width:542px"> <br style="line-height:25px"> <strong><a href="<?php echo tep_href_link('specials.php')?>"><?php echo BOX_HEADING_SPECIALS?></a> | <a href="<?php echo tep_href_link('advanced_search.php')?>"><?php echo BOX_SEARCH_ADVANCED_SEARCH?></a> | <a href="<?php echo tep_href_link('reviews.php')?>"><?php echo BOX_HEADING_REVIEWS?></a> | <? if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link('account.php')?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a><? } else { ?><a href="<?php echo tep_href_link('create_account.php')?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT?></a><? } ?> | <? if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link('logoff.php')?>"><?php echo HEADER_TITLE_LOGOFF?></a><? } else { ?><a href="<?php echo tep_href_link('login.php')?>"><?php echo HEADER_TITLE_LOGIN?></a><? } ?></strong><br> <br style="line-height:5px"> <?php echo FOOTER_TEXT_BODY?> <a href="<?php echo tep_href_link('privacy.php')?>"><?php echo BOX_INFORMATION_PRIVACY?></a><br> </td> <td style="width:182px"><br style="line-height:29px"><?php echo tep_image(DIR_WS_IMAGES.'p1.gif')?><br></td> </tr> </table> </td> </tr> </table> <?php if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><?php /* echo tep_display_banner('static', $banner); */ ?></td> </tr> </table> <?php } ?> thanks for you help
Retix Posted August 13, 2010 Author Posted August 13, 2010 okay it was easy I fixed this and I now have the follow us on:-) so no need for reply... but thanks alot multimixer... what u wrote helped....
Recommended Posts
Archived
This topic is now archived and is closed to further replies.