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

How do I remove the "Select Laungauge" dropdown?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-13-2005, 02:52 PM
 
sbtiti sbtiti is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 32
 

Default How do I remove the "Select Laungauge" dropdown?

Is there a checkbox in the admin panel or do I need to edit home.tpl?

I see this code in it, but am unsure how much to take out:

Code:
<TABLE border="0" cellpadding="0" cellspacing="0"><TR> <TD valign="top"> {if ($usertype eq "C" || $usertype eq "B")and $all_languages_cnt gt 1} <TABLE border="0" cellpadding="4" cellspacing="0"> <FORM action="home.php" method="GET" name="sl_form"> <INPUT type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.QUERY_STRING}"> <TR> <TD><FONT class="SelectLanguage">{$lng.lbl_select_language}:</FONT><SELECT name="sl" onChange="javascript: document.sl_form.submit()"> {section name=ai loop=$all_languages}<OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION> {/section}</SELECT></TD></TR> </FORM> </TABLE> {else} {/if} </TD> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR></TABLE>
__________________
Version 4.0.9
Reply With Quote
  #2  
Old 04-15-2005, 04:20 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Just comment out that whole batch you posted.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-18-2005, 02:42 PM
 
sbtiti sbtiti is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 32
 

Default

When I remark it all out I lose the entire area. The entire table that uses the "main_bg_1" background image completely disappears. I would like to keep that table intact, I just want to remove the "Select Langauge" dropdown box and text.

How can I only remove it, but keep the table dimensions intact?
__________________
Version 4.0.9
Reply With Quote
  #4  
Old 04-18-2005, 02:45 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Are you using a custom template?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 04-20-2005, 02:12 PM
 
lonbeatty lonbeatty is offline
 

Member
  
Join Date: Jan 2005
Posts: 11
 

Default

sbtiti -

go to admin > languages

under "edit languages", select the language(s) you don't use (one at a time), and click on "disable"...

when there's only 1 language enabled, the "select language" dropdown box automatically disappears...

take care,
lon
__________________
Lon Beatty
Apache Linux V1.3.33
PERL version: 5.8.3
PHP version: 4.3.10
MySQL version: 4.0.22-standard
X-cart V4.0.11: Addons: None
Reply With Quote

The following user thanks lonbeatty for this useful post:
willwinman (02-23-2009)
  #6  
Old 07-07-2005, 09:22 PM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Quote:
Originally Posted by lonbeatty
sbtiti -

go to admin > languages

under "edit languages", select the language(s) you don't use (one at a time), and click on "disable"...

when there's only 1 language enabled, the "select language" dropdown box automatically disappears...

take care,
lon

Thank you.
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


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 07:59 AM.

   

 
X-Cart forums © 2001-2020