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

Help Zone Titles

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #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
  #2  
Old 12-18-2006, 04:28 PM
 
dcorwin dcorwin is offline
 

Advanced Member
  
Join Date: May 2004
Location: Hollywood, CA
Posts: 33
 

Default Re: Help Zone Titles

Nice little fix! Thanks!

How do you like your search and login bar being on the same line across the top? Care to give a quick tutorial? Thanks
__________________
Dave Polcino
Sampledump.com
Noise & Vision
XCart Pro 4.1.6
Reply With Quote
  #3  
Old 03-01-2007, 10:27 AM
  newattraction's Avatar 
newattraction newattraction is offline
 

Member
  
Join Date: Oct 2006
Posts: 17
 

Lightbulb Re: Help Zone Titles

Or, if you want to use language variables, do something like this:

Code:
if ($action=="contactus" || $section == 'contactus') { $location[] = array(func_get_langvar_by_name("lbl_contact_us")); } if ($section == 'about') { $location[] = array("About Us"); } if ($section == 'business') { $location[] = array(func_get_langvar_by_name("lbl_privacy_statement")); } if ($section == 'conditions') { $location[] = array(func_get_langvar_by_name("lbl_terms_n_conditions")); } if ($section == 'FAQ') { $location[] = array(func_get_langvar_by_name("lbl_faq_long")); }

Add this after

Code:
$location[] = array(func_get_langvar_by_name("lbl_help_zone"), "help.php");

in \include\help.php.

Hope someone will find it useful.
__________________
www.vonbell.com
xcart v4.1.6
Reply With Quote
  #4  
Old 07-05-2007, 01:50 PM
 
dub713 dub713 is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 56
 

Default Re: Help Zone Titles

hey there. nice fix.

how can we remove Help Zone from the breadcrumb though? i've changed the label to Info since we don't like Help Zone

we don't use the main help zone page, or, we don't want to, and don't want to have a mention of a help/info section. we link to each page from a customer service center/footer.

i've got it as this so far...

GAMA-GO > Info > About Us

but we dont' want that Info to be a link, and since that doesn't need to link, we'd just rather remove it. so, how can we ditch the Info, and have

GAMA-GO > About Us


thanks,
__________________
X-Cart version 4.1.7 - PHP 5.2. - MySQL server 5.0.41-community-nt - MySQL client 5.0.22 - Web server Apache/2.2.4 (Win32) - PHP/5.2.2
Reply With Quote
  #5  
Old 07-06-2007, 06:53 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Help Zone Titles

Quote:
Originally Posted by dub713
But we dont' want that Info to be a link, and since that doesn't need to link, we'd just rather remove it. so, how can we ditch the Info, and have
GAMA-GO > About Us

I had to modify location.tpl to get around this:

Code:
{if $location} {strip} {section name=position loop=$location} {if $location[position].1 neq "help.php"} {if $location[position].1 ne "" } <a href="{$location[position].1|amp}"> {else} <strong> {/if} {$location[position].0} {if $location[position].1 ne "" } </a> {else} </strong> {/if} {if not %position.last%} <span>&nbsp;::&nbsp;</span> {/if} {else} {* nothing *} {/if} {/section} {/strip} {/if}

Hope this helps.

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #6  
Old 08-27-2007, 05:57 PM
  eaglemobiles's Avatar 
eaglemobiles eaglemobiles is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 167
 

Default Re: Help Zone Titles

Hi,

I want to add icons to help zone i made a table and add icon but no idea where to start, please see attachment, any help please?
Attached Thumbnails
Click image for larger version

Name:	help.gif
Views:	186
Size:	38.5 KB
ID:	542  
__________________
X-Cart Gold 4.3.2
X-Cart Gold 4.4.1
Unix

High Quality CCTV DVRs & Cameras
http://www.eaglemobiles.co.uk/CCTV
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


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 03:29 AM.

   

 
X-Cart forums © 2001-2020