gartex Posted May 8, 2008 Posted May 8, 2008 Hi. I'm trying to install Define Mainpage. I was going over the instructions before I actually tried installing & I'm stuck on this step: **CATALOG STEP 3 --> COPY the define_mainpage.php 'file/s' (TO_YOUR_LANGUAGE_FOLDERS): ===================================================================== Must SET Full Read Write RWRWRW 777 Permission on this file!! ===================================================================== catalog/includes/language/(YOUR_LANGUAGE_FOLDER)/define_mainpage.php @@@@@@@@@@ END COPY NEW FILES (TO_YOUR_LANGUAGE_FOLDERS) @@@@@@@@@@ So: 1. Does it mean the catalog > admin & includes folders included in the zip file I downloaded? (they have define_mainpage.php files in them) & 2. It says "folder" but my "catalog/includes/language/english folder doesn't open. The english.php does but the code in it doesn't look like "define_mainpage.php" fits in with the rest of the code in there. Please help. Thanks. Quote
♥geoffreywalton Posted May 8, 2008 Posted May 8, 2008 In the directory structure created when you unzipped the contribution there should be a file called define_mainpage.php in the directory catalog/includes/language/english. This is the one that needs to be copied to the languages folder. It should contain the test that will appear on the screen when you use the code in the php file of the same name. If there isn't then try looking in an earlier version. It could also be a typo and they meancatalog/admin/includes/language/english Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
gartex Posted May 8, 2008 Author Posted May 8, 2008 Ok - Thank you Geoffrey. I'll try it. :rolleyes: Quote
gartex Posted May 8, 2008 Author Posted May 8, 2008 (edited) Hi. I hit a snag. I received these 3 error messages after following Lee Neilson's Define Mainpage install info.: Warning: include(includes/languages/english/define_mainpage.php) [function.include]: failed to open stream: No such file or directory in /home/public_html/osCommerce/index.php on line 307 Warning: include(includes/languages/english/define_mainpage.php) [function.include]: failed to open stream: No such file or directory in /home/public_html/osCommerce/index.php on line 307 Warning: include() [function.include]: Failed opening 'includes/languages/english/define_mainpage.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/php') in /home/public_html/osCommerce/index.php on line 307 I checked line 307 & it looks like what was asked of me to copy. Here's what it says: <td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?></td> Please help! Thanks. Edited May 8, 2008 by gartex Quote
kronosporto Posted July 29, 2008 Posted July 29, 2008 i had this problem,and the solution is very simple in catalog/index.php: <td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_MAINPAGE); ?></td> just erase the DEFINE. regards Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.