Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / HOW CAN I PLACE THE Languages BAR?

HOW CAN I PLACE THE Languages BAR?

Locked

Views: 973

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
1 Sep 2010, 10:29 AM
#1
agness avatar

agness

New Zenner

Join Date:
Sep 2010
Posts:
30
Plugin Contributions:
0

HOW CAN I PLACE THE Languages BAR?

HOW CAN I PLACE THE Languages BAR?

:unsure::unsure::unsure:

PLS HELP ME :(

1 Sep 2010, 10:42 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: HOW CAN I PLACE THE Languages BAR?

We'll need a link to the site.

1 Sep 2010, 1:11 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: HOW CAN I PLACE THE Languages BAR?

You have a languages sidebox. What exactly do you want to do with it? OK, you want to move it to the header, top right.

You will need to take the code from the module file (probably /includes/modules/sideboxes/languages.php) and put it into or call it from /includes/templates/your_template/common/tpl_header.php.

3 Sep 2010, 5:52 AM
#5
agness avatar

agness

New Zenner

Join Date:
Sep 2010
Posts:
30
Plugin Contributions:
0

Re: HOW CAN I PLACE THE Languages BAR?

gjh42:

You have a languages sidebox. What exactly do you want to do with it? OK, you want to move it to the header, top right.

You will need to take the code from the module file (probably /includes/modules/sideboxes/languages.php) and put it into or call it from /includes/templates/your_template/common/tpl_header.php.

is that copy the includes/modules/sideboxes/languages.php into
includes/templates/your_template/common/tpl_header.php ??

can i know more , thank so much:smile:

3 Sep 2010, 6:36 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: HOW CAN I PLACE THE Languages BAR?

You might adapt this code from tpl_header.php:```php

<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div> ```Something like ```php <div id="headerLanguages"><?php require(DIR_WS_MODULES . 'sideboxes/languages.php'); ?></div> ``` Paste the code into tpl_header.php in the sequence where you want it to display (not inside other code blocks).
3 Sep 2010, 7:47 AM
#7
agness avatar

agness

New Zenner

Join Date:
Sep 2010
Posts:
30
Plugin Contributions:
0

Re: HOW CAN I PLACE THE Languages BAR?

gjh42:

You might adapt this code from tpl_header.php:```php

<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div> ```Something like > ```php <div id="headerLanguages"><?php require(DIR_WS_MODULES . 'sideboxes/languages.php'); ?></div> ``` > Paste the code into tpl_header.php in the sequence where you want it to display (not inside other code blocks).

:dontgetit
i can't find the words "div id="navMainSearch" in includes/modules/sideboxes/languages.php into and
includes/templates/your_template/common/tpl_header.php

what is my problem:(

3 Sep 2010, 5:09 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: HOW CAN I PLACE THE Languages BAR?

The first snippet is in tpl_header already, and has the same kind of function you want - to call a sidebox's code. You need to copy and alter it to call another sidebox's code.