This is a discussion on New infobox display at wrong place within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I have tried to install 2 different infoboxes and first upload the infobox file to catalog/include/boxes/... Then I go to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I have tried to install 2 different infoboxes and first upload the infobox file to catalog/include/boxes/... Then I go to infobox admin and choose new infobox, add the data for it and save. The infobox do display but at the lowest left corner of the site, even if I configure it to show on the right side. I have numbered the display order so that it becomes the next free number i.e 13 in my case... Bad omen or? If I try to set the display order to 1 so it displays first.. Well it do display first but at the same time ***** up the entire layout so everyting look very strange. |
|
#2
| ||||
| ||||
| You cannot just drop in the box. You need to adapt it to work with BTS system first...
__________________ Michael Sasek osCMax Developer
|
|
#3
| |||
| |||
| Used the best_sellers box as an example and changed my google ad sense box according to it and I get a box named resources at the right place but it only display the text Array: Original file resources.php: <?php /* Google Infobox, v 1.1 03/16/2005 by LisSyl Based on the original version (v 1.0) by Mike Bakker osCommerce http://www.oscommerce.com/ Copyright (c) 2000,2001 osCommerce Released under the GNU General Public License http://www.websolutionsbymike.com http://www.n2scents.com http://www.davesjerky.com */ ?> <!-- google ads Info Box //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_RESOURCES ); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<script type="text/javascript"><!-- ' . ADSENSE_SETTINGS . '//--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>'); new infoBox($info_box_contents); ?> </td></tr> <!-- google ads_eof //--> Modified file resources_bts.php: <?php /* Google Infobox, v 1.1 03/16/2005 by LisSyl Based on the original version (v 1.0) by Mike Bakker osCommerce http://www.oscommerce.com/ Copyright (c) 2000,2001 osCommerce Released under the GNU General Public License http://www.websolutionsbymike.com http://www.n2scents.com http://www.davesjerky.com */ ?> <!-- google ads Info Box //--> <?php $boxHeading = BOX_HEADING_RESOURCES; $corner_left = 'square'; $corner_right = 'square'; $box_base_name = 'resources_bts'; // for easy unique box template setup (added BTSv1.2) $box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2) $boxContent = array(); $boxContent[] = array('align' => 'center', 'text' => '<script type="text/javascript"><!-- ' . ADSENSE_SETTINGS . '//--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>'); include (bts_select('boxes', $box_base_name)); // BTS 1.5 ?> <!-- google ads_eof //--> I have both boxes activated and in the original box the ads gets displayed correctly but the box displays in the wrong place. Anybody know where my modification went wrong? |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to place an order for a customer? | pal | osCMax v1.7 Discussion | 2 | 05-10-2005 06:29 AM |
| text information in wrong place | wildtypitch | osCMax v1.7 Discussion | 1 | 11-26-2004 10:46 AM |
| Place ProtX Form in Frame?!?!? | frijj2k | osCommerce 2.2 Modification Help | 1 | 07-28-2004 06:45 AM |
| Jumping all over the place | marastafat | osCommerce 2.2 Installation Help | 3 | 02-25-2004 11:32 AM |