Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

new infobox help


Recommended Posts

i am trying to add a live support box to my site. i know how to create new boxes already. my problem is i want to have an image within that box for the live support and to perform a javascript function when clicked on.


how would this be entered in the php file? also which file would it go in?


here is what i have made so far:




basically what i have done is copied an existing infobox (includes/boxes/information.php) and made changes in order to make the new includes/boxes/support.php


and here is how it is so far....

 $Id: support.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
<!-- support //-->
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_SUPPORT);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SUPPORT, '', 'NONSSL') . '">' . BOX_support_SUPPORT . '</a>');

 new infoBox($info_box_contents);

<!-- support_eof //-->


do i need to make a includes/languages/english/support.php file?


also, here is the javascript code i want in the box:

<!-- Powered by: Crafty Syntax Live Help (CSLH) http://www.craftysyntax.com/livehelp/ -->
<script language="javascript" src="http://www.birddogbowling.com/livehelp/livehelp_js.php?department=1"></script>
<!-- copyright 2003 by Eric Gerdes -->


sorry the post sounds a little scattered, hopefully it makes sense and someone can help me out. thanks!


if i am going about this totally wrong, someone let me know, as to i am horrible at php :o

Link to comment
Share on other sites


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

  • Create New...