Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

New Help zone called resources?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-29-2004, 06:16 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default New Help zone called resources?

I'm trying to create a new area, just like the help zone, but called resources

I have copied the help files, renamed and edited, but they don't work. I think the problem is in the php files:

help.php
Code:
# # $Id: help.php,v 1.17.2.1 2004/02/05 12:25:45 mclap Exp $ # require "./auth.php"; require $xcart_dir."/include/categories.php"; require $xcart_dir."/include/help.php"; $smarty->display("customer/home.tpl");

I have copied this and renamed it resources.php. I changed .include/help.php to include/resources.php, then copied and renamed the help.php file in the include folder.

I took out all of the code that I thought was unnecessary for the resources section so my include/resources.php now looks like this:

Code:
# # $Id: include_resources.php,v Amy Heavey 29/10/04 Exp $ # $smarty->assign("main","resources"); $smarty->assign("resources_section",$section); ?>

OK, the main variable affects the title of the page in home.tpl, but where does the help_section variable go? (I have changed help_section to resources_section above.)

I apologise if this doesn't make sense, I'm just at a loss about how to do this.

Any advice gratefully received,

Thanks

Amy
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #2  
Old 10-29-2004, 07:37 AM
 
pmstudios pmstudios is offline
 

Senior Member
  
Join Date: May 2004
Posts: 133
 

Default

Hi Amy,

You'll want to do a check on the $main variable in skin1/customer/home_main.tpl

Code:
{elseif $main eq "resources"} {include file="path_to/resources.tpl"} {/if}

I'm not sure how your resources.php file looks now, but make sure you require auth.php, otherwise you may run into some errors if some requirements aren't being included.
__________________
X-Cart 4.0.5
MySQL: 3.23.58
PHP 4.3.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:16 AM.

   

 
X-Cart forums © 2001-2020