Elxis CMS Forum
Support => General => Topic started by: venkipammi on April 04, 2009, 18:48:28
-
Hello sir,i like elxis.let me know how can we disable Greek language in language drop down box when a new user registration?
-
In file registration.html.php we delete the part of code which follows
<div class="tablerow">
<div class="tablecell"><?php echo _E_PREFLANG; ?>: *</div>
<div class="tablecell">
<?php echo $lists['preflang']; ?>
</div>
</div>
and we add the follow line code
<input type="hidden" name="preflang" value="greek" />
As value we set the prefered language of our site.
-
NO, do NOT mess with the code! If you want to disable greek language, simply go to administrator->Languages Manager and unpublish greek language.
-
Ivan is right. Just this method i use when in a single language site you want to disable language option in registration form, because has no sense to select it.