osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Help....MS2 Max new page content -how to?.,

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-13-2003, 02:33 PM
New Member
 
Join Date: Nov 2002
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
whazzy
Default Help....MS2 Max new page content -how to?.,

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 10-20-2003, 07:43 PM
Member
 
Join Date: Oct 2003
Location: The Antelope Valley in SoCal
Posts: 47
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
In-Overtime
Default

/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]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-07-2003, 02:49 PM
Member
 
Join Date: Aug 2003
Location: Lost
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
WebMistress
Default

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??!!~~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-07-2003, 09:54 PM
Member
 
Join Date: Aug 2003
Location: Lost
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
WebMistress
Default

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??!!~~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-07-2003, 10:08 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,083
Thanks: 81
Thanked 348 Times in 327 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

Hmmm... people keep forgetting where they are...moved.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • 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. Default multi server configuration for exceptional performance!

  • 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!
  #6  
Old 12-19-2003, 11:27 PM
Anonymous
Guest
 
Posts: n/a
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 12-20-2003, 08:21 AM
Anonymous
Guest
 
Posts: n/a
Default

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:
<?php

define('NAVBAR_TITLE', 'Conditions of Use');
define('HEADING_TITLE', 'Terms and Conditions of Use');

define('TEXT_INFORMATION', '

<table><tr><td>
<p align="justify">You Must Agree to these Terms and Conditions</p>

<p align="justify">By submitting your request for authorization . . . .
<p align="justify">Legal Disclaimer:
<p align="justify">This website includes visual, audio, . . . .
<p align="justify">If you are . . . .
<p align="justify">All materials, messages, and . . . .
<p align="justify">Any and all unauthorized . . . .
<p align="justify">Viewing this site . . . . .
<p align="justify">All of the performers . . . .. .
</td></tr></table>

');
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 12-20-2003, 08:26 AM
Member
 
Join Date: Oct 2003
Location: The Antelope Valley in SoCal
Posts: 47
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
In-Overtime
Default

I forgot to login when I posted the above......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 12-20-2003, 10:25 AM
chrismole's Avatar
Active Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 102
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 5
chrismole
Default

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 12-20-2003, 12:47 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,083
Thanks: 81
Thanked 348 Times in 327 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

chrismole, escape the quotes in the html with \ and you will be fine. This is proper PHP syntax.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • 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. Default multi server configuration for exceptional performance!

  • 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!
Sponsored Links
Advertisement
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
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


All times are GMT -8. The time now is 11:31 AM.


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