View Single Post
  #9  
Old 05-14-2007, 07:39 AM
  n00bert's Avatar 
n00bert n00bert is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 46
 

Default Re: How to add a new page in Help Zone?

Here's what I did for extra help pages in 4.1.6:

Say you want to create a warranty information page.

1. create a new language variable in admin > languages. call it warranty
2. create a file called warranty.tpl and add it to /skin1/help/
3. open warranty.tpl and copy this code into it:
Code:
{capture name=dialog} ...your code... {/capture} {include file="dialog.tpl" title=$lng.lbl_warranty content=$smarty.capture.dialog extra='width="100%"'}

4. open index.tpl which is also in /skin1/help/ and add this code:

Code:
{elseif $section eq "warranty"} {include file="help/warranty.tpl"}

5. add the following to general.tpl, which is also in /skin1/help/, where you want the button to display on the help.php page:
Code:
{include file="buttons/button.tpl" button_title=$lng.lbl_warranty href="help.php?section=warranty"}

This way when you click a button named warranty, your warranty info appears in a dialog box with a title, and is integrated with the rest of your site.

You can see it in action on http://www.urban-kings.com/help.php

regards,
n00bert
__________________
Version 4.1.6 Gold

urban-kings.com
urbanwear and street fashion specialist
Reply With Quote