This is a discussion on Help....MS2 Max new page content -how to?., within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I am at my wit's end.....I am trying to add new links to the site,and I read the guide for ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I am at my wit's end.....I am trying to add new links to the site,and I read the guide for help.....I created the links in the template...(main_page.tpl) and it works fine...Now I would like to know how to add content to these pages....For instance,I need to add content to "privacy/return" which is in privacy.php...There are two files one in /languages/ and one under /catalog. Which one should I modify.?and how? Thanks Whazzy |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| /languages/english/ The file will look like this: <?php /* $Id: privacy.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Privacy Notice'); define('HEADING_TITLE', 'Privacy Notice'); define('TEXT_INFORMATION', 'Put here your Privacy Notice information. WHICH MEANS YOU CAN WRITE ANYTHING IN THIS AREA YOU WANT, just about. If you happen to use any hyphens, make sure to put a backslash \ before it. (i.e., ya\'ll) I learned that the hard way......'); ?> See the above in action for the following week at http://sdscrubs.com/privacy.php[/url] |
|
#3
| |||
| |||
| There are actually Two files. In order to get the content to show within the box underneath if you have specified a different color for Infoboxes, you need to edit the conditions/privacy/shipping files in the main area. I found adding my text in on the following line, through trial and error, yielded very nice looking results. Look for the "infoboxContents" which are on two lines, one right after the other, around line 66 or so. There is another set of nested tables below the first set, and the text goes in there. <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="center">ADD ALL YOUR INFOBOX TEXT HERE, and you can even use the <br /> tags as well to make it have spaces where necessary.<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> Now, to get rid of the "Put Info Here" lines, you have to edit the same files in the includes/languages/english or whichever language you are using. Follow In-Overtime's instructions and that will get that annoying Top part out. Or you can do ONLY that, and get a single color layout. The choice is yours The reason I added this to this older thread, was because it is good info, and something that had me pulling my hair out for 2 days myself. Thanks for the start In-Overtime!!
__________________ ~~!!It did WHAT??!!~~ |
|
#4
| |||
| |||
| oooooh I just realized this was for MAX>> I am not sure if the same file structure applies in that.. blah Im sorry :< But... shouldnt this be in the MAX forum tho?
__________________ ~~!!It did WHAT??!!~~ |
|
#5
| ||||
| ||||
| Hmmm... people keep forgetting where they are...moved.
__________________ Michael Sasek osCMax Developer
|
|
#6
| |||
| |||
| In-Overtime, I want to edit the conditions.php look and feel with html tables, not just drop in text as you mentioned. Do you know how to do this? Thanks, Chris |
|
#7
| |||
| |||
| Chris, I have to bow to the wisdom of others on this one. maybe msasek can point you in the right direction. However, I have been able to modify what appears in the main area of conditions.php with some HTML tags. It might work with tables. I did a sample test on one of the websites I administer, adding the simple <table> elements before and after my main body text and it seemed to work fine. ../catalog/includes/languages/english/conditions.php Quote:
|
|
#8
| |||
| |||
| I forgot to login when I posted the above...... |
|
#9
| ||||
| ||||
| I have tried dropping html into the TEXT_INFORMATION definition, but I'm getting php parsing errors. The parser seems to choke on illegal chars like "-", ".", "/", etc. Any suggestions? As I'm writing this, I'm wondering of there is a char limit on the text that can be inserted into this field and my html is getting cut off and then throwing errors when pulled from the database. Msasek, do you have any suggestions? |
|
#10
| ||||
| ||||
| chrismole, escape the quotes in the html with \ and you will be fine. This is proper PHP syntax.
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Missing Content | heaven | osCMax v2 Installation issues | 2 | 08-31-2005 03:30 PM |
| OH PLEASE HELP-content erasing itself! | Alesha | osCommerce 2.2 Modification Help | 1 | 07-08-2004 01:14 PM |
| page content not showing up in Google | Anonymous | osCMax v1.7 Discussion | 16 | 02-11-2004 07:40 AM |
| Change content area on index page | bobbyb | osCommerce 2.2 Modification Help | 3 | 12-16-2003 08:12 AM |
| Box content alignment | ajax | osCommerce 2.2 Modification Help | 0 | 09-28-2003 07:45 PM |