Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a script to an include


Guest

Recommended Posts

Posted

Hi,

 

I am very bad at php raw I want to add the following to an included file so it will appear on the right of all the pages;

 

<p><font face="Arial" color="#333333" size="2">

<a onmouseover="window.status="Click for Live Support"; return true;" onclick="launch_support_7182660_1()" onmouseout="window.status=""; return true;" href="java script:void(0)">

<img alt="Click for Live Support" src="http://bo.thesingers.name:6080/phplive/image.php?l=administrator&x=1&deptid=1&page=http%3A//bo.thesingers.name%3A6080/&unique=1124696224371&refer=&text=" border="0"></a></font></p>

 

 

I have created a file called images/boxes/livechat.php that looks like this;

 

<?php

/*

$Id: livechat.php,v 1.00 2005/08/22 14:55:26 hpdl Exp $

 

Released under the GNU General Public License

*/

?>

<!-- live_chat //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => "Live Sales Chat", 'align' => 'center');

 

new infoBoxHeading($info_box_contents, true, true);

 

new infoBox($info_box_contents);

 

?>

</td>

</tr>

<!-- live_chat_eof //-->

 

I include this file (livechat.php) after the currency include in include/colum_right.php

 

The file lives in include/boxes/livechat.php

 

I do not know the php to bring the two together.

 

Any help?

 

Regards

P

Posted
Hi,

 

I am very bad at php raw I want to add the following to an included file so it will appear on the right of all the pages;

 

<p><font face="Arial" color="#333333" size="2">

<a onmouseover="window.status="Click for Live Support"; return true;" onclick="launch_support_7182660_1()" onmouseout="window.status=""; return true;" href="java script:void(0)">

<img alt="Click for Live Support" src="http://bo.thesingers.name:6080/phplive/image.php?l=administrator&x=1&deptid=1&page=http%3A//bo.thesingers.name%3A6080/&unique=1124696224371&refer=&text=" border="0"></a></font></p>

I have created a file called images/boxes/livechat.php that looks like this;

 

<?php

/*

  $Id: livechat.php,v 1.00 2005/08/22 14:55:26 hpdl Exp $

 

  Released under the GNU General Public License

*/

?>

<!-- live_chat //-->

          <tr>

            <td>

<?php

  $info_box_contents = array();

  $info_box_contents[] = array('text' => "Live Sales Chat", 'align' => 'center');

 

  new infoBoxHeading($info_box_contents, true, true);

 

  new infoBox($info_box_contents);

 

?>

            </td>

          </tr>

<!-- live_chat_eof //-->

 

I include this file (livechat.php) after the currency include in include/colum_right.php

 

The file lives in include/boxes/livechat.php

 

I do not know the php to bring the two together.

 

Any help?

 

Regards

P

 

Place the file in Boxes folder and then in

column_right.php paste this line

include(DIR_WS_BOXES . 'livechat.php');

 

This should do.

 

Satish Mantri

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

Do it like this:

 

<?php
/*
 $Id: livechat.php,v 1.00 2005/08/22 14:55:26 hpdl Exp $

 Released under the GNU General Public License
*/
?>
<!-- live_chat //-->
         <tr>
           <td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => 'Live Sales Chat', 'align' => 'center');

 new infoBoxHeading($info_box_contents, true, true);
 
 $info_box_contents[]= array('text' => '<p><font face="Arial" color="#333333" size="2"><a onmouseover="window.status="Click for Live Support"; return true;" onclick="launch_support_7182660_1()" onmouseout="window.status=""; return true;" href="JavaScript:void(0)"><img alt="Click for Live Support" src="http://bo.thesingers.name:6080/phplive/image.php?l=administrator&x=1&deptid=1&page=http%3A//bo.thesingers.name%3A6080/&unique=1124696224371&refer=&text=" border="0"></a></font></p>');

 new infoBox($info_box_contents);

?>
           </td>
         </tr>
<!-- live_chat_eof //-->

 

Matti

Archived

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

×
×
  • Create New...