chrometweaks.org

Does anyone know a good alternative to iPage?

Click Here To View All Answers...


First off, Does anyone know a good alternative to iPage? Looking forward for any answer. Second question of mine... Hi,.

I want to add additional pages like 'Shipping & Returns' and have them listed in the information box. How do I do that...or where can I read how to do it?.

Thanks!..

Comments (58)

Yep, but... you might wanna make sure and wait for someone else here to confirm it as I am not confident. Better yet, why don't you email the iPage guys because they can answer your iPage question better...

Comment #1

OsCommerce Community Support Forums Support iPage site | Solutions | Contributions | Collaborative Documentation Effort.

Forum Rules Help Search Members Calendar.

Logged in as: bobthelucky ( Log Out ) My Controls 0 New Messages View New Posts My Assistant.

OsCommerce Community Support Forums -> osCommerce Support -> General Support.

How to make a new page.

Track this topic | Email this topic | Print this topic.

Bobthelucky Posted: May 17 2004, 12:55 PM.

Bob.

Group: Community Member.

Posts: 60.

Joined: 10-May 04.

I want to make two new pages, an about page and a links page, iran a search but did not get relavent topics returned, I want to lets say make a new front or home page but change the name on these two and add a ling at top for them any ideas where I can find this subject?.

Thanks for any help.

Sac9829 Posted: May 17 2004, 01:00 PM.

Cody.

Group: Community Member.

Posts: 56.

Joined: 9-May 04.

Try this. It helped me learn how to do it:.

Exercise 4 Boxes: Adding New Boxes.

Adding New Boxes, Links and Pages.

We will now look into adding our own custom boxes, as well as adding/changing links, pages and graphics to boxes. In addition, we will learn how to add items to the columns, outside of the actual boxes. All of these modifications are fairly easy to perform, but they are not entirely intuitive (understatement!)..

Making a New Box.

Let’s jump right in. The files involved are: /catalog/includes :.

Column_left.php.

Column_right.php.

/catalog/includes/boxes : ALL files in this directory.

Open /catalog/includes/boxes/information.php in a text editor and save it as /catalog/includes/boxes/test.php..

Then in column_left.php, add this line:.

Require(DIR_WS_BOXES'test.php');.

Directly below this line:.

Require(DIR_WS_BOXES'information.php');.

Save column_left.php to your server, and reload the main catalog page in your browser. You will now see two information boxes on the left. The second one we just added with one line of code. That is the easy part..

Changing Links and Text : Customizing your new box and adding new pages.

The next step is to customize that box, and to do it, we need to modify a few more files. I want to change the title bar of our new box, as well as make links to new, custom pages that I will also create. This process is a bit more clunky than it should be, but we will have to make due. Here we go!.

For this example, I will be creating four links to pages called testpage1.php, testpage2.php testpage3.php, and testpage4.php in the new information block we created in the previous step..

I am using the original shipping.php files as my base template. Use this example to familiarize yourself with the procedure. The process is the same for other blocks, you just need to identify the proper files to copy and modify. Confused? Good. Read on….

Open the following files in WordPad or some other text editor that will not modify code without you telling it to, and will allow you to search and replace:.

/catalog/includes/filenames.php.

/catalog/includes/languages/english.php.

/catalog/includes/languages/english/shipping.php.

/catalog/shipping.php.

/catalog/includes/boxes/test.php.

In the file /catalog/includes/filenames.php, find the section marked define filenames used in the project. In this section, copy any one of the file definitions, and paste it to a new line, just after the one you copied. Now you need to modify the newly pasted line to point to testpage1 See the example below:.

Copy the first file definition listed:.

Define('FILENAME_ACCOUNT', 'account.php');.

Then paste this on a new line immediately following it, four times. Create four new define statements as follows:.

Define('FILENAME_TESTPAGE1', 'testpage1.php');.

Define('FILENAME_TESTPAGE2', 'testpage2.php');.

Define('FILENAME_TESTPAGE3', 'testpage3.php');.

Define('FILENAME_TESTPAGE4', 'testpage4.php');.

Now, save /catalog/includes/filenames.php. This is the step that creates the filename definitions so that osCommerce can build links..

Next, in the file /catalog/includes/languages/english.php, find the section marked information box text. Copy the entire section and paste it below the original section..

Change the section to look like this:.

// information box text in includes/boxes/test.php.

Define('BOX_HEADING_TEST', 'Test Box');.

Define('BOX_TEST_LINK1', 'Test Link 1');.

Define('BOX_TEST_LINK2', 'Test Link 2');.

Define('BOX_TEST_LINK3', 'Test Link 3');.

Define('BOX_TEST_LINK4', 'Test Link 4');.

Save /catalog/includes/languages/english.php. This step creates the link text that will go into each new link you create..

In the file /catalog/includes/languages/english/shipping.php edit the following:.

Define('NAVBAR_TITLE', 'Shipping & Returns');.

Define('HEADING_TITLE', 'Shipping & Returns');.

Define('TEXT_INFORMATION', 'Enter your shipping info here');.

To look like this:.

Define('NAVBAR_TITLE', 'Test Page 1');.

Define('HEADING_TITLE', 'Test Page 1');.

Define('TEXT_INFORMATION', 'This is an added sample page');.

Save as /catalog/includes/languages/english/testpage1.php.

Repeat the above steps three more times, creating testpage2, testpage3, and testpage4. This is the step that actually creates the text that will be on each of your new pages, and in the process, creates four new files..

In the file: /catalog/shipping.php using the replace feature of you text editor.

Replace this FILENAME_SHIPPING.

With this FILENAME_TESTPAGE1.

Save As /catalog/testpage1.php.

Repeat this three more times, changing FILENAME_TESTPAGE1 to FILENAME_TESTPAGE2, FILENAME_TESTPAGE3 and FILENAME_TESTPAGE4 and saving as testpage2.php, testpage3.php and testpage4.php. This step creates the actual pages that will be loaded by the links..

Finally, edit the file /catalog/includes/boxes/test.php to look like this:.

<?php.

$info_box_contents = array();.

$info_box_contents[] = array('align' => 'left',.

'text' => BOX_HEADING_TEST.

);.

New infoBoxHeading($info_box_contents, false, false);.

$info_box_contents = array();.

$info_box_contents[] = array('align' => 'left',.

'text' => '<a href="'tep_href_link.

(FILENAME_TESTPAGE1, '', 'NONSSL')'">'BOX_TEST_LINK1'</a><br>' ..

'<a href="'tep_href_link.

(FILENAME_TESTPAGE2, '', 'NONSSL')'">'BOX_TEST_LINK2'</a><br>' ..

'<a href="'tep_href_link.

(FILENAME_TESTPAGE3, '', 'NONSSL')'">'BOX_TEST_LINK3'</a><br>' ..

'<a href="'tep_href_link.

(FILENAME_TESTPAGE4, '', 'NONSSL')'">'BOX_TEST_LINK4'</a>'.

This changes the text that is output in the browser. You are finished editing files at this point. Make sure you upload the files to the proper directories, as some of them have the same filenames. View your catalog in your browser and the new links should show up in your new block! See the example below..

Next Oldest | General Support | Next Newest.

Fast Reply.

Show Smilies Pop Up Window | Enable Smilies | Enable Signature.

Close Topic Options.

Track this topic.

Receive email notification when a reply has been made to this topic and you are not active on the board..

Subscribe to this forum.

Receive email notification when a new topic is posted in this forum and you are not active on the board..

Download / Print this Topic.

Download this topic in different formats or view a printer friendly version..

Forum Home Search Help osCommerce Support - News and Announcements - General Support - Installation and Configuration - Features and Suggestions - Development - Tips and Tricks - Collaborative Documentation Effort osCommerce Modules - Payment Modules - Shipping Modules - Order Total Modules Contributions - Contribution Announcements - Contribution Support Legal Issues - GNU General Public License - E-Commerce Laws Chatterbox Cafe - General Chit-Chat - My Store.

Powered by Invision Power Board(U) v1.3 Final 2003 IPS, Inc..

This was sent to me today and I have added two new pages even if it dont sound right for you follow along and do it you will learn a lot..

Comment #2

I followed the directions on OSCdox.com and I am getting a "not found" for my new page. Pre-MS2.2, I had no issues doing this, but MS2.2 I can't seem to get it to work. Here is what I posted on another.

Thread...

Comment #3

I guess just double check the path is correct..

Comment #4

I had double checked several times as well as my associate. I suppose you did not read the thread I linked to. I had posted the code there as to avoid cluttering up other threads. Here it is again if you care to review the paths....

THREAD: Page Not Found from InfoBox..

Comment #5

Hi,.

I want to add additional pages like 'Shipping & Returns' and have them listed in the information box. How do I do that...or where can I read how to do it?.

Thanks!..

Comment #6

Infobox info:.

Http://wiki.oscommer...sCatBoxGenLinks.

General Info:.

Http://wiki.oscommerce.com/docs.

(bookmark this page).

To add new pages just take a look at one of the simpler existing files in your catalog folder. Copy the basic layout and look for <! body_text //> and <! body_text_eof //> whatever you put in between there will show up on the page...

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.