alkhataat Posted May 4, 2007 Share Posted May 4, 2007 I am trying to ad a new box for google adds below the currencies box at the right column, I went thru some guidance from the manual and thru other contributions but did not succeed, as a newbie I would need a little more clarification to understand those instructions, the last contribution I followed was that one: in your includes/column_right_or_left.php add this where you would like your add to show (you can even add it within the footer or header if you would like to. CODE if ($request_type == NONSSL) { /* only show adsense in NON SSL else it causes warning */ include(DIR_WS_BOXES . 'adds.php'); } then create a new php file called adds.php with these contents: CODE <?php /* $Id: adds.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- adds //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_ADDS); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<script type="text/javascript">YOUR JAVA SCRIPT GOES HERE</script>'); new infoBox($info_box_contents); ?> <!-- adds_eof //--> Then add the filename to filenames.php, and define your new box title in the english.php where the rest of your info boxes are defined. then your done thats it. I followed that instruction but errors messages came up and the site shape is corrupted Warning: main(includes/boxes/adds.php) [function.main]: failed to open stream: No such file or directory in /home/qazaeboo/public_html/includes/column_right.php on line 48 Warning: main(includes/boxes/adds.php) [function.main]: failed to open stream: No such file or directory in /home/qazaeboo/public_html/includes/column_right.php on line 48 Warning: main() [function.include]: Failed opening 'includes/boxes/adds.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/qazaeboo/public_html/includes/column_right.php on line 48 Can any one kindly give me a clear guidance how to ad this box. Much obliged Regards Link to comment Share on other sites More sharing options...
rusty1001 Posted May 5, 2007 Share Posted May 5, 2007 I am trying to ad a new box for google adds below the currencies box at the right column, I went thru some guidance from the manual and thru other contributions but did not succeed, as a newbie I would need a little more clarification to understand those instructions, the last contribution I followed was that one: in your includes/column_right_or_left.php add this where you would like your add to show (you can even add it within the footer or header if you would like to. CODE if ($request_type == NONSSL) { /* only show adsense in NON SSL else it causes warning */ include(DIR_WS_BOXES . 'adds.php'); } then create a new php file called adds.php with these contents: CODE <?php /* $Id: adds.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- adds //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_ADDS); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<script type="text/javascript">YOUR JAVA SCRIPT GOES HERE</script>'); new infoBox($info_box_contents); ?> <!-- adds_eof //--> Then add the filename to filenames.php, and define your new box title in the english.php where the rest of your info boxes are defined. then your done thats it. I followed that instruction but errors messages came up and the site shape is corrupted Warning: main(includes/boxes/adds.php) [function.main]: failed to open stream: No such file or directory in /home/qazaeboo/public_html/includes/column_right.php on line 48 Warning: main(includes/boxes/adds.php) [function.main]: failed to open stream: No such file or directory in /home/qazaeboo/public_html/includes/column_right.php on line 48 Warning: main() [function.include]: Failed opening 'includes/boxes/adds.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/qazaeboo/public_html/includes/column_right.php on line 48 Can any one kindly give me a clear guidance how to ad this box. Much obliged Regards "Then add the filename to filenames.php, and define your new box title in the english.php where the rest of your info boxes are defined." Hi Have you done this - there are two things to do there and are they the right format.. define filename in filenames .php and add to your info box which one it is... check that, if not you not added the code properly to the colun_right.. cheers Rusty ------------------------------------------- Link to comment Share on other sites More sharing options...
alkhataat Posted May 5, 2007 Author Share Posted May 5, 2007 "Then add the filename to filenames.php, and define your new box title in the english.php where the rest of your info boxes are defined." Hi Have you done this - there are two things to do there and are they the right format.. define filename in filenames .php and add to your info box which one it is... check that, if not you not added the code properly to the colun_right.. cheers Hi Russell, Thanks for your help, I have done that, followed the above precisely but same errors are there, if possible some clear steps and what exactly should be defined and where ? best wishes Link to comment Share on other sites More sharing options...
Guest Posted May 5, 2007 Share Posted May 5, 2007 Hi Russell, Thanks for your help, I have done that, followed the above precisely but same errors are there, if possible some clear steps and what exactly should be defined and where ? best wishes Can you post the files? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.