X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Help Zone Titles (https://forum.x-cart.com/showthread.php?t=27357)

herseyc 12-14-2006 05:56 AM

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

dcorwin 12-18-2006 04:28 PM

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

newattraction 03-01-2007 10:27 AM

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.:-)

dub713 07-05-2007 01:50 PM

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,

chamberinternet 07-06-2007 06:53 AM

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

eaglemobiles 08-27-2007 05:57 PM

Re: Help Zone Titles
 
1 Attachment(s)
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?


All times are GMT -8. The time now is 03:22 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.