This is a discussion on Modifying Infoboxes - Using a Template too within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hey People: Inherited client's cart and am learning as I go along. Searched for this, and posted this question with ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hey People: Inherited client's cart and am learning as I go along. Searched for this, and posted this question with another thread, but still need help. Need to modify the info box called "Information" that has all the shipping/refund, privacy policy, conditions etc. Someone said I need to know if it is hard coded or not to know how to edit. How do I tell? The cart is apparently using a template called Flame. Nothing that I do to the /includes/boxes/information.php file has worked - I need someone to point me in the right direction or point me at instructions for this chore. Can't find specific directions for this in the manaul either. Can I create a new box with only the links I desire and eliminate the old one? Y'all get me started. Thanks in advance for the assist - you guys have helped alot so far! bbw
__________________ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ knowledge is power - teach me |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| do you need to modify the box or the text? the box is /includes/boxes/information.php and should look like Code: $boxContent = '<a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_PRIVACY) . '"> ' . BOX_INFORMATION_PRIVACY . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '</a><br>'.
'<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGES, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">
' . BOX_INFORMATION_GV . '</a><br>' . //ICW ORDER TOTAL CREDIT CLASS/GV
'<a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '</a>';
Code: $boxContent = '<a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '</a><br>'.
'<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGES, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">
' . BOX_INFORMATION_GV . '</a><br>' . //ICW ORDER TOTAL CREDIT CLASS/GV
'<a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '</a>';
__________________ so endith the lesson<think>sometimes I just sit's and thinks</think> "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB |
|
#3
| |||
| |||
| Aah sorry - Am trying to eliminate three of the links on there - those last three about the gift vouchers, the site map and the catalog. And the first thing (and the fifth and the latest) I tried was the exact thing you state about just taking out the offending line - if I take out just the last line (for instance to see if it will work or not) I get this: never mind - now I get this: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/ezseenco/public_html/includes/functions/database.php on line 19 Unable to connect to database server! BBL - gotta research this one first thanks anyway bbw
__________________ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ knowledge is power - teach me |
|
#4
| |||
| |||
| Ok has resolved itself I suppose.... Ok if I eliminate the one line regarding the site map, this is what I get when rendered in my browser... Parse error: parse error, unexpected ';' in /home/ezseenco/public_html/includes/boxes/information.php on line 32 If I remove all three lines that I want gone, I get a duplicate Sign In infobox right under the first Sign In infobox. Here is a link with the error above - http://www.ezseen.com thanks for the help bbw
__________________ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ knowledge is power - teach me |
|
#5
| |||
| |||
| post the box code.
__________________ so endith the lesson<think>sometimes I just sit's and thinks</think> "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB |
|
#6
| |||
| |||
| Here it is without any deletions. Below that I'll post what I edited the page with my one deletion. <?php /* $Id: information.php,v 1.4.2.1.2.2 2005/09/21 20:58:25 Michael Sasek Exp $ osCMax Power E-Commerce http://oscdox.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Most of this file is changed or moved to BTS - Basic Template System - format. $boxHeading = BOX_HEADING_INFORMATION; $corner_left = 'square'; $corner_right = 'square'; $box_base_name = 'information'; // for easy unique box template setup (added BTSv1.2) $box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2) ?> <!-- information bof //--> <?php $boxContent = '<a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '"> ' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '</a><br>'. '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGE S, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '"> ' . BOX_INFORMATION_GV . '</a><br>' . //ICW ORDER TOTAL CREDIT CLASS/GV '<a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '</a>'; include (bts_select('boxes', $box_base_name)); // BTS 1.5 ?> <!-- information eof //--> here is the page with my edits. <?php /* $Id: information.php,v 1.4.2.1.2.2 2005/09/21 20:58:25 Michael Sasek Exp $ osCMax Power E-Commerce http://oscdox.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Most of this file is changed or moved to BTS - Basic Template System - format. $boxHeading = BOX_HEADING_INFORMATION; $corner_left = 'square'; $corner_right = 'square'; $box_base_name = 'information'; // for easy unique box template setup (added BTSv1.2) $box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2) ?> <!-- information bof //--> <?php $boxContent = '<a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '"> ' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '</a><br>'. '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGE S, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '"> ' . BOX_INFORMATION_GV . '</a><br>' . //ICW ORDER TOTAL CREDIT CLASS/GV ; include (bts_select('boxes', $box_base_name)); // BTS 1.5 ?> <!-- information eof //--> I'm gonna feel really dumb if it is because I left the semicolon in the wrong place or something stupid like that.... be easy on me. Thanks! bbw
__________________ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ knowledge is power - teach me |
|
#7
| |||
| |||
| no takers? bbw
__________________ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ knowledge is power - teach me |
|
#8
| |||
| |||
| Quote:
Code: <?php
/*
$Id: information.php,v 1.4.2.1.2.2 2005/09/21 20:58:25 Michael Sasek Exp $
osCMax Power E-Commerce
http://oscdox.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
// Most of this file is changed or moved to BTS - Basic Template System - format.
$boxHeading = BOX_HEADING_INFORMATION;
$corner_left = 'square';
$corner_right = 'square';
$box_base_name = 'information'; // for easy unique box template setup (added BTSv1.2)
$box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2)
?>
<!-- information bof //-->
<?php
$boxContent = '<a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_PRIVACY) . '"> ' . BOX_INFORMATION_PRIVACY . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '</a>';
include (bts_select('boxes', $box_base_name)); // BTS 1.5
?>
__________________ so endith the lesson<think>sometimes I just sit's and thinks</think> "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB |
|
#9
| |||
| |||
| YOU ARE THE MAN!!! (or woman?) anyway, that did it!! Thanks so much! I will put it in my BeyondCompare to see what I messed up. Thanks again!!! bbw
__________________ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ knowledge is power - teach me |
|
#10
| |||
| |||
| the problem, from what I can tell, is you had a hanging "." before the ";" PS: I am gender neutral (or for those of Jewish descent, from the Passover Hagada, "I am, I am" - okay, it's just a lil sacreligious, but that's what you get from a Y'shiva dropout )
__________________ so endith the lesson<think>sometimes I just sit's and thinks</think> "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New infoboxes don't appear in page.. | jasper0 | osCMax v2 Customization/Mods | 0 | 08-08-2006 10:19 AM |
| infoboxes appear behind coolmenu instead of below | betagirl | osCMax v2 Installation issues | 0 | 04-18-2006 09:46 PM |
| Modifying product_info.php - infoboxes | Migraine | osCommerce 2.2 Modification Help | 1 | 04-15-2005 02:23 PM |
| small template problem with other infoboxes. | eternity575 | osCMax v1.7 Discussion | 3 | 07-30-2004 03:14 PM |
| Space between infoboxes? | Kristine | osCMax v1.7 General Mods Discussion | 1 | 03-23-2004 03:22 AM |