halltristan Posted February 18, 2009 Share Posted February 18, 2009 Ok, I'm trying to make a "welcome page" instead of showing new products when people go to the store front. I've tried, to no avail, to point the index.php away from the New products module to a new page an it just doesn't to work. I believe this is the string to change in the index: <?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> Could someone please help me? I've made many extra pages before with no trouble, but making the index.php file show one seems to be different than everywhere else. Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2009 Share Posted February 18, 2009 That looks like the right thing to remove to me. Also make sure you are you editing your includes/languages/english/index.php file. That would be where to make any and all changes as far as the welcome message goes. Link to comment Share on other sites More sharing options...
halltristan Posted February 18, 2009 Author Share Posted February 18, 2009 That looks like the right thing to remove to me. Also make sure you are you editing your includes/languages/english/index.php file. That would be where to make any and all changes as far as the welcome message goes. The includes/languages/english/index.php file really doesn't have alot to do with this, not from what I can tell. I guess the real question I have is what do I replace <?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> with? Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2009 Share Posted February 18, 2009 Don't need to replace it with anything. You need to remove both instances of <?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> and the module will no longer show up. The index calls on the language file to display the welcome message, you will go there to edit it. It does have a lot to do with it. http://www.frag-addicts.com/store/ go there and view the store index page, the text there above the products module is called from the includes/languages/english/index.php file. My code for that text is: define('TEXT_MAIN', 'This is the store for Frag Addicts. We hope you are enjoying our community - playing in our servers and talking with eachother on our forums.<br><br>Our store is currently limited to <b>T-Shirts, donating to our community, buying special priveleges and accepting raffle entries</b>.<br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top"></td></tr> </table><br> '); Keep coding your TEXT_MAIN definition in the language file in that fashion and you can make a nice welcome page without the products module. Link to comment Share on other sites More sharing options...
halltristan Posted February 18, 2009 Author Share Posted February 18, 2009 Well that would work, but I have another problem: The template I'm using puts a nice border around all blocks and all of the extra pages I've made so far. If I used the technique you gave above, the index.php page would no longer look like the rest of the template. And I really don't feel like trying to work with tables to make it look the same. Any other suggestions? Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2009 Share Posted February 18, 2009 It's a bit hard to visualize what you're design issue is without seeing it, mind linking me to your site? I might be able to take a quick look and think of another way do to do 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.