Elxis CMS Forum

Support => General => Topic started by: venkipammi on April 04, 2009, 18:48:28

Title: how to disable greek language in drop down box in user registration box?
Post 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?
Title: Re: how to disable greek language in drop down box in user registration box?
Post by: nikos on April 04, 2009, 18:54:37
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.
Title: Re: how to disable greek language in drop down box in user registration box?
Post by: Ivan Trebješanin on April 04, 2009, 19:05:32
NO, do NOT mess with the code! If you want to disable greek language, simply go to administrator->Languages Manager and unpublish greek language.
Title: Re: how to disable greek language in drop down box in user registration box?
Post by: nikos on April 04, 2009, 19:19:27
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.