Results 1 to 3 of 3

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

      
  1. #1
    New Member
    Join Date
    May 2006
    Posts
    17
    Rep Power
    0


    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.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    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 installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    May 2006
    Posts
    17
    Rep Power
    0


    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?

Similar Threads

  1. how to place an order for a customer?
    By pal in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 05-10-2005, 07:29 AM
  2. text information in wrong place
    By wildtypitch in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 11-26-2004, 10:46 AM
  3. Place ProtX Form in Frame?!?!?
    By frijj2k in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 07-28-2004, 07:45 AM
  4. Jumping all over the place
    By marastafat in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 02-25-2004, 11:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •