Goanna Posted December 21, 2003 Share Posted December 21, 2003 I am trying to install the Define Mainpage Mod on an instance of OSC MS2 2.2. I am looking in index.php as the instructions say to do the following **CATALOG STEP 1 --> OPEN catalog/index.php: ==================================================================== Look for this around line 307 (near bottom): ==================================================================== <td class="main"><br><?php echo TEXT_MAIN; ?></td> ==================================================================== And replace that line with this: ==================================================================== <td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?></td> @@@@@@@@@@@@@@@@@@@@ END /CATALOG/INDEX.PHP @@@@@@@@@@@@@@@@@@@@@@ The problem is that there is no <td class="main"><br><?php echo TEXT_MAIN; ?></td> line in my index.php file. The only line in index.php that refers to text_main is the following $info_box_contents[] = array('align' => 'left', 'text' => TEXT_MAIN); It is around the same area as the onstruction say, line 307 but it is not formatted the same. Was this originally written for an older version of OSC? How do I apply this to my version? Will I have problems with the rest of the instructions also? Link to comment Share on other sites More sharing options...
Goanna Posted December 21, 2003 Author Share Posted December 21, 2003 Oh, I just remembered, I think I modded this so that my Main Text area appears in an infobox. So now how would I still keep that in an infobox while also using the contribution? Link to comment Share on other sites More sharing options...
Goanna Posted December 22, 2003 Author Share Posted December 22, 2003 Would this be the right way to do it? $info_box_contents[] = array('align' => 'left', 'text' => DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); Link to comment Share on other sites More sharing options...
Goanna Posted December 24, 2003 Author Share Posted December 24, 2003 Okay, I played around with this for a while and still cant get it. The above line didnt work so I changed it to $info_box_contents[] = array('align' => 'left', ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'include' => DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); And I still get nothing. That does allow me to enter the catalog without errors, but it doesnt display an infobox with my mainpage text. Any Help with this is greatly apreciated. Thanks all. Link to comment Share on other sites More sharing options...
Guest Posted December 24, 2003 Share Posted December 24, 2003 <tr> <!-- <td class="main"><?php echo TEXT_MAIN; ?></td> --> <td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?></td> </tr> that is what i found in my code, and the page works Link to comment Share on other sites More sharing options...
Goanna Posted December 24, 2003 Author Share Posted December 24, 2003 I dont have a regular mainpage though, I have it so that the main text appears in an infobox. if you click on my www button you will see what I mean. I was able to get the function to work, but it displaced things on my page. I want it to either include the text in the same field it is in now, or in a brand new infobox directly under "Welcome Guest, would you like to log in...." I tried creating a new infobox but the text gets placed on top of the infobox instead of in it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.