osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

New infobox display at wrong place

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-02-2006, 01:55 PM
New Member
 
Join Date: May 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
robfor
Default New infobox display at wrong place

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 06-02-2006, 02:32 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,334
Thanks: 68
Thanked 324 Times in 307 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: New infobox display at wrong place

You cannot just drop in the box. You need to adapt it to work with BTS system first...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 06-03-2006, 02:04 AM
New Member
 
Join Date: May 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
robfor
Default Tried modifying..

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 07:37 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax