X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How do I remove the "Select Laungauge" dropdown? (https://forum.x-cart.com/showthread.php?t=13409)

sbtiti 04-13-2005 02:52 PM

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>


balinor 04-15-2005 04:20 AM

Just comment out that whole batch you posted.

sbtiti 04-18-2005 02:42 PM

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?

balinor 04-18-2005 02:45 PM

Are you using a custom template?

lonbeatty 04-20-2005 02:12 PM

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

bluecat 07-07-2005 09:22 PM

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


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

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