osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

How to create custom pages?

This is a discussion on How to create custom pages? within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi guys, I want to create and extra "about us" page a bit like "conditions" page but cannot seem 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
Reply

 

LinkBack Thread Tools
  #1  
Old 01-22-2007, 04:28 PM
Lurker
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jasper1106 is on a distinguished road
Default How to create custom pages?

Hi guys,

I want to create and extra "about us" page a bit like "conditions" page but cannot seem to find the relevant admin link.

Have I missing something simple? Thanks for any help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 01-22-2007, 05:12 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,089
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 Re: How to create custom pages?

Search "add new page" and this is the search result:
Add new page under "Information"
__________________
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!
Reply With Quote
  #3  
Old 01-23-2007, 06:46 AM
Lurker
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jasper1106 is on a distinguished road
Default Re: How to create custom pages?

Micheal, Thanks for your quick reply. I did use the search but was obviously putting the the wrong keywords.

I have played with numerous files for hours without result now. I have added the relevant files to the different directories however in my info box. The link I created as the URL: FILENAME_name

This obviously means I need to define tep_href_link location. I have looked in includes/filenames.php and I cannot even find the define shipping line, its like all my other links are reading from a completely seperate file. I put the define commands in anyway for my new page according to the other thread but it did not have an effect.

Quote:
define('FILENAME_ABOUT', 'about.php');
define('CONTENT_ABOUT', 'about');
define('CONTENT_ABOUT_CONTENT', 'about');
define('FILENAME_ABOUT', CONTENT_ABOUT . '.php');
define('FILENAME_ABOUT_CONTENT', CONTENT_ABOUT_CONTENT . '.php');
is there another language file in a random place which I have missed?

Thanks for your help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 01-23-2007, 07:06 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,089
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 Re: How to create custom pages?

This page talks about adding links to new side boxes:
osCommerce Documentation by OSCdox :: osCommerce and osCMax installation and users manual, discussion forums (phpWiki)


And in the first thread I referred you to see step 6 of this post:
http://www.oscmax.com/forums/oscmax-v2-customization-mods/4985-add-new-page-under-information.html#post17060


Quote:
6. Add a link to the information box by editing /includes/boxes/information.php. Copy the second to the last link defined and paste it in directly below the original. Change the constants to your filename constant and change the box constant text to whatever your text is. Alternately, you can add a box text constant to english.php and call the constant instead of adding custom text.
__________________
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!
Reply With Quote
  #5  
Old 01-23-2007, 07:18 AM
Lurker
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jasper1106 is on a distinguished road
Default Re: How to create custom pages?

Hiya thanks for the reply once again.

I have scanned all these documents and posts with precison and your document above makes perfect sense, but my FILENAME locations are not in the language file.

I am going to redownload OsCMax from scratch and compare the two files incase one or the other have become corrupt along the way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 01-23-2007, 07:38 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,089
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 Re: How to create custom pages?

It is NOT the language file... I swear...

/includes/boxes/information.php

Quote:
Change the constants to your filename constant and change the box constant text to whatever your text is.
You are over complicating...

If you want the link text to be:

My New Page

Then that is what you add to information.php...
__________________
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!
Reply With Quote
  #7  
Old 05-09-2007, 12:51 PM
New Member
 
Join Date: Jul 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adamr415
Default Re: How to create custom pages?

I have read the pages about how to add a new box, now my question is, how do you control the order of the new box, so that it comes before information
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 05-10-2007, 03:25 PM
Member
 
Join Date: Apr 2007
Posts: 42
Thanks: 7
Thanked 1 Time in 1 Post
Rep Power: 0
Twister is on a distinguished road
Default Re: How to create custom pages?

Check your private messages - I think I answered all your questions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 05-16-2007, 04:03 AM
New Member
 
Join Date: Mar 2007
Posts: 21
Thanks: 6
Thanked 1 Time in 1 Post
Rep Power: 0
zuqaili is on a distinguished road
Default Re: How to create custom pages?

Hi, thanks for asking me to post something. Sorry for digressing a bit but actually i am having a problem with using 'strftime ("%a, %d %b %Y %H:%M:%S %z")' instead of just 'strftime' function being used in line 150 of main_page.tpl.php for displaying the date. While both 'strftime' and 'strftime ("%a, %d %b %Y %H:%M:%S %z")' work great for displaying the local time and date (eg. Wed, 16 May 2007 15:39:14 West Asia Standard Time) on my windows based localhost, they do'nt work so well on a unix host ( i get a different format and incorrect date and time displayed like: Wed, 16 May 2007 03:37:14 -0700) i have to use for my website. The problem is that only on a unix machine the time gets displayed 12 hours behind my local time which in turn also makes the date behind by that many hours. It would be nice to have the time and date or even just the date displayed on the website correctly, in sync, with the local time and date of the browser in which the website page is opened. Would appreciate any help on this. Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 05-16-2007, 09:53 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 470
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: How to create custom pages?

okay, there are dates, and then there are dates.

You are mixing up two different dates from two different machines.

The server has a date
on a unix server the date command will get you the date.

# date
Wed May 16 21:46:54 PDT 2007

That is the date stamp that your server will use on all your orders

The date on the users box will most likely be different (unless they are located in the same time zone as the server).

To display the users date you can use the following javascript in your HTML

Code:
<!-- ONE STEP TO INSTALL CURRENT DATE & TIME (SHORT):

   1.  Put the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Copy this code into the BODY of your HTML document  -->

<BODY>

<SCRIPT>
document.write(Date()+".")
</SCRIPT>
So, there you have it. there are dates, and then there are dates.
__________________
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
Create new pages based on template treb osCMax v2 Features Discussion 1 08-01-2005 04:07 AM
extra pages mod - doesnt resemble main pages battleaxe osCMax v1.7 Discussion 3 11-05-2004 06:32 AM
Custom product_listing pages? help ! fridgemags osCommerce 2.2 Modification Help 9 09-08-2004 03:19 AM
Custom Currency cdhough osCommerce 2.2 Modification Help 2 07-09-2004 11:39 AM
Custom product info pages jdiablo osCommerce 2.2 Modification Help 1 03-20-2003 06:40 PM


All times are GMT -8. The time now is 02:16 PM.


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