thesulei Posted June 20, 2004 Posted June 20, 2004 hi, im in the process of customising my default ms2 setup and ive run into a little problem after creating a new page (FAQ) and setting the information box to show the link the page is not showing correctly - it has an unwanted indent on both the left and right anyone know how I can get rid of this so it looks like any other page My php skills are very limited so nothing complex please :) Thanks
thesulei Posted June 20, 2004 Author Posted June 20, 2004 never mind i solved it - i think the contribution code for a new page i was using had some errors in it so i used the code from and exsisting page and changed the filenames require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FAQ); $location = ' » <a href="' . tep_href_link(FILENAME_FAQ, '', 'NONSSL') . '" class="headerNavigation">' . NAVBAR_TITLE . '</a>'; The read me i was using to create the pages is as follows (if anyone else is looking for help creating pages): New page set. Quickly create new pages to integrate with your catalog site. Please back up your existing files first 1. Rename the enclosed page (catalog/new_page.php) to whatever you need e.g foobar.php. Open it and change the 2 occurances of FILENAME_NEW_PAGE to match your chosen page name e.g FILENAME_FOOBAR. Upload to your catalog/ directory 2. Rename the enclosed new_page.php in catalog/includes/languages/english/ to your new name e.g foobar.php (Dont forget to add your contents!) Now upload to your server into catalog/includes/languages/english/ 3. add to application_top.php the following Define('FILENAME_FOOBAR', 'foobar.php'); Changing 'foobar' for your own chosen name of course! 4. in catalog/includes/boxes add to information.php (or whichever box you want the new link to go into)a new line '<a href="' . tep_href_link(FILENAME_FOOBAR, '', 'NONSSL') . '">' . BOX_INFORMATION_FOOBAR . '</a><br>' . 5. In catalog/includes/languages/english.php add new line define('BOX_INFORMATION_FOOBAR', 'Foobar'); Again, change foobar to your own name. Your done. This is from a contribution i downloaded (forgotten name) not my creation...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.