JosArtisan Posted March 8, 2008 Posted March 8, 2008 I wonder if someone wouldn't mind telling me in detail how to add a new page to my site? I only have four and I need a new one! I kind of have a vague idea how, but not enough to do much good on my own. Thanks in advance. ~Johanna~
tapuahk Posted March 8, 2008 Posted March 8, 2008 Johanna, First, adding a page is not difficult. Question: Are we talking about adding a PHP file that would be linked to your other pages, such as "forum.php" or are we talking a HTML file such as "about_us.html" ? We usually need a little more info to help with design issues. Lastly, no question is ever a stupid question... We are all here to help and LEARN. ~~~Tapuahk I wonder if someone wouldn't mind telling me in detail how to add a new page to my site? I only have four and I need a new one! I kind of have a vague idea how, but not enough to do much good on my own.Thanks in advance. ~Johanna~
JosArtisan Posted March 8, 2008 Author Posted March 8, 2008 I guess it needs to be a php file. I have read the "add remove box pages" but that seemed to only change an existing page, not actually give me a whole new one. Thanks. ~Johanna~
tapuahk Posted March 8, 2008 Posted March 8, 2008 I guess it needs to be a php file. I have read the "add remove box pages" but that seemed to only change an existing page, not actually give me a whole new one. Thanks. ~Johanna~ First you need to build the page _________.php... What content you need etc.... You can use conditions.php as a template ... open it and save it as template.php Now edit it .... Change CONDITIONS references to your new page title and then define that in your languages files... You have a new page but it's just a copy of the conditions page... Change content... ~~~Tapuahk
tapuahk Posted March 8, 2008 Posted March 8, 2008 I guess it needs to be a php file. I have read the "add remove box pages" but that seemed to only change an existing page, not actually give me a whole new one. Thanks. ~Johanna~ I'll use a new page I'll call forum.php for this example. :) Using the template.php we created above. I open it and save it as forum.php Now I'll change references to CONDITIONS to FORUM and DEFINE the new variables in all my language files. Create a file called forum.php in all my language folders which is a copy of conditions.php already in those folders. About the middle of the page is TEXT_INFORMATION which is another variable defined in my new language/english/forum.php Change this to 'under construction' Now in the catalog/forum.php I'll create an inline frame to my forum application using html code or if my forum index is written in php include its content here. Then edit includes/boxes/information.php to include my new file forum.php ~~~Tapuahk
JosArtisan Posted March 8, 2008 Author Posted March 8, 2008 Hmm, ok, so it looks like like all you do is add new files instead of messing with ones that are already there. So I did all of the above like this, Uploaded a new file in catalogue called about_us.php Included a listing of the new page in catalogue/includes/filenames.php Made new about_us.php files in all my language folders, listed the new files in the language files. Included a listing in catalogue/includes/boxes/information.php Is this correct? After doing all of the above, the new page does not show up in my site. Any ideas? Thanks, ~Johanna~
tapuahk Posted March 11, 2008 Posted March 11, 2008 Hmm, ok, so it looks like like all you do is add new files instead of messing with ones that are already there. So I did all of the above like this, Uploaded a new file in catalogue called about_us.php Included a listing of the new page in catalogue/includes/filenames.php Made new about_us.php files in all my language folders, listed the new files in the language files. Included a listing in catalogue/includes/boxes/information.php Is this correct? After doing all of the above, the new page does not show up in my site. Any ideas? Thanks, ~Johanna~ If you just did the change on the information.php you should at least have a broken link in the information box on every page... '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>'); Make sure you DEFINE FILENAME_ABOUT_US as "about_us.php" in filenames.php: define('FILENAME_ABOUT_US', 'about_us.php'); In languages/english.php add: define('BOX_INFORMATION_ABOUT_US', 'About Us'); ~~~Tapuahk
JosArtisan Posted March 11, 2008 Author Posted March 11, 2008 My page is showing fine now. Thanks for all the help! I appreciate!
LarsenRacing Posted March 11, 2008 Posted March 11, 2008 Could someone please help, I added a new About Us page using info above, Problem, the page is there however it is Not right. Check out the page http://larsenracing.com/osc/about_us.php?o...32758ef8b0460b2 What did I do wrong, or what do I need to do to fix this. Thanks,
satish Posted March 11, 2008 Posted March 11, 2008 never paste oscid along with the url. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
LarsenRacing Posted March 11, 2008 Posted March 11, 2008 never paste oscid along with the url. Satish Sorry, I didn't know I did that, Got any idea what is wrong with the page?
Guest Posted March 12, 2008 Posted March 12, 2008 Sorry, I didn't know I did that, Got any idea what is wrong with the page? could not see it listed in your boxes. Did you do the edits in catalog/includes/boxes/information.php
LarsenRacing Posted March 13, 2008 Posted March 13, 2008 Coopco, I went back and tried to install the About Us page again, It is still NOT correct. What did I do wrong http://larsenracing.com/osc/about_us.php Thanks,
Recommended Posts
Archived
This topic is now archived and is closed to further replies.