Forums / Addon Sideboxes / Sidebox title bar says BOX_HEADING_EDITABLE_SIDEBOX_LIVE_CHAT instead of Live Chat

Sidebox title bar says BOX_HEADING_EDITABLE_SIDEBOX_LIVE_CHAT instead of Live Chat

Started by teddybear on 24 Jul 2012, 7:00 PM · Views: 1,206

Results 1 to 4 of 4
24 Jul 2012, 7:00 PM
#1
teddybear avatar

teddybear

New Zenner

Join Date:
Sep 2007
Posts:
38
Plugin Contributions:
0

Sidebox title bar says BOX_HEADING_EDITABLE_SIDEBOX_LIVE_CHAT instead of Live Chat

Good Evening lovely people :)

I have installed a new editable sidebox here http://www.ital-dezigns.co.uk and am sure I have followed the instructions properly, have done it twice in fact, but if you look at the top right sidebox, you will see the category title says BOX_HEADING_EDITABLE_SIDEBOX_LIVE_CHAT when it should say 'Live Chat' I have looked everywhere before coming here, but am stumped, and just can not work out how to change it to say Live Chat, I have probably done something stupid :blush: loll

Thank you for your time.

24 Jul 2012, 7:07 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Sidebox title bar says BOX_HEADING_EDITABLE_SIDEBOX_LIVE_CHAT instead of Live Chat

Sidebox modules have a language file, so you have either loaded it to the wrong place, or not loaded it at all.

20 years a Zencart User

25 Jul 2012, 1:49 PM
#3
teddybear avatar

teddybear

New Zenner

Join Date:
Sep 2007
Posts:
38
Plugin Contributions:
0

Re: Sidebox title bar says BOX_HEADING_EDITABLE_SIDEBOX_LIVE_CHAT instead of Live Chat

Hi Schoolboy, thanks...I uploaded the whole includes folder to root directory as it said, so not sure if something might have gone wrong :lookaroun

25 Jul 2012, 5:04 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Sidebox title bar says BOX_HEADING_EDITABLE_SIDEBOX_LIVE_CHAT instead of Live Chat

Much will depend on how the author of that sidebox has structured it.

In the INCLUDES folder of the module, there are probably:

/includes/languages/
/includes/modules/
/includes/templates/

Folders.

Inside THOSE will be more foldlers... PROBABLY

/includes/languages/english/extra_definitions/... ??? (then what? - look at the module and tell me how the rest if this path is structured)
/includes/modules/sideboxes/... ??? (then what? - look at the module and tell me how the rest if this path is structured)
/includes/templates/... ??? (then what? - look at the module and tell me how the rest if this path is structured)

What you are seeing (BOX_HEADING_EDITABLE_SIDEBOX_LIVE_CHAT) is called a LANGUAGE CONSTANT.

Language Constants must be accompanied by an associated variable:

define('BOX_HEADING_EDITABLE_SIDEBOX_LIVE_CHAT', 'Chat With Us');

Your TEMPLATE file for that sidebox is saying: "I see a CONSTANT called BOX_HEADING_EDITABLE_SIDEBOX_LIVE_CHAT, so please go collect its variable from the associated language file."

If it cant find that language file, or if the CONSTANT is not there, the template will simply return the Constant Text in its own file.

20 years a Zencart User