View Single Post
  #1  
Old 12-14-2006, 05:56 AM
 
herseyc herseyc is offline
 

Member
  
Join Date: Jun 2006
Location: Suffolk, VA
Posts: 28
 

Default Help Zone Titles

I wanted to have the page title and location on the help pages reflect the page that the visitor is on.

Here is how I did it:

In include/help.php

add

Code:
if ($action=="contactus" || $section == 'contactus') { $location[] = array("Contact Us"); } if ($section == 'about') { $location[] = array("About Us"); } if ($section == 'business') { $location[] = array("Privacy Statement"); } if ($section == 'conditions') { $location[] = array("Site and Store Policies"); } if ($section == 'FAQ') { $location[] = array("Frequently Asked Questions"); }

Just after (line 41 in my version - 4.1.2):
Code:
$location[] = array(func_get_langvar_by_name("lbl_help_zone"), "help.php");

Might be helpful to someone.

Take Care - Ride FREE
__________________
Hersey
http://www.chopperstickers.com/
X-Cart 4.1.3
Linux
Reply With Quote