Dear Nathan,

 

Thanks for your mail. I cannot find the syntax that you mentioned.

 

This is my customerlogin.dtl file.

 

# --

# CustomerLogin.dtl - provides customer HTML login screen

# Copyright (C) 2001-2009 OTRS AG, http://otrs.org/

# --

# $Id: CustomerLogin.dtl,v 1.25 2009/02/16 11:07:25 tr Exp $

# --

# This software comes with ABSOLUTELY NO WARRANTY. For details, see

# the enclosed file COPYING for license information (AGPL). If you

# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.

# --

#

# http headers

$Include{"CustomerHeader"}

 

<!-- start login -->

<script language="JavaScript" type="text/javascript">

<!--

function submit_form() {

#    if (!document.login.User.value) {

#        alert('$JSText{"Login is needed!"}');

#        return false;

#    }

#    else if (!document.login.Password.value) {

#        alert('$JSText{"Password is needed!"}');

#        return false;

#    }

 

    now = new Date();

    Diff = now.getTimezoneOffset();

    document.login.TimeOffset.value = Diff;

 

    return true;

}

//-->

</script>

<center>

<p>

  <font color="red">$Text{"$Data{"Message"}"}</font>

  <table border="0" cellspacing="0" cellpadding="3" width="300">

    <tr>

      <td class="singleboxhead">$Text{"Login"}</td>

    </tr>

    <tr>

      <td class="singleboxbody">

        <form action="$Env{"CGIHandle"}" method="post" enctype="application/x-www-form-urlencoded" name="login">

          <input type="hidden" name="Action" value="Login"/>

          <input type="hidden" name="RequestedURL" value="$QData{"RequestedURL"}"/>

          <input type="hidden" name="Lang" value="$Env{"UserLanguage"}"/>

          <input type="hidden" name="TimeOffset" value=""/>

          <table cellspacing="8" cellpadding="2">

            <tr>

              <td>$Text{"Username"}:</td>

              <td><input type="text" name="User" value="$QData{"User"}" size="18"/></td>

            </tr>

            <tr>

              <td>$Text{"Password"}:</td>

              <td><input type="password" name="Password" size="18"/></td>

            </tr>

          </table>

          <input class="button" type="submit" value="$Text{"Login"}" onclick="return submit_form();"/>

        </form>

      </td>

    </tr>

  </table>

</p>

<!-- dtl:block:LostPassword -->

<p>

  <table border="0" cellspacing="0" cellpadding="3" width="300">

    <tr>

      <td class="singleboxhead">$Text{"Lost your password?"}</td>

    </tr>

    <tr>

      <td class="singleboxbody">

        <form action="$Env{"CGIHandle"}" method="post" enctype="application/x-www-form-urlencoded">

          <input type="hidden" name="Action" value="CustomerLostPassword"/>

          <input type="hidden" name="Lang" value="$Env{"UserLanguage"}"/>

          <table cellspacing="8" cellpadding="2">

            <tr>

              <td>$Text{"Username"}:</td>

              <td><input type="text" name="User" value="" size="18"/></td>

            </tr>

            <tr>

              <td colspan="2"><i class="small">($Text{"Request new password"})</i></td>

            </tr>

          </table>

          <input class="button" type="submit" value="$Text{"Submit"}"/>

        </form>

      </td>

    </tr>

  </table>

</p>

<!-- dtl:block:LostPassword -->

<p>

  <form action="$Env{"CGIHandle"}" method="post" enctype="application/x-www-form-urlencoded">

    <input type="hidden" name="Action" value=""/>

    <input type="hidden" name="RequestedURL" value="$QData{"RequestedURL"}"/>

    <table border="0" cellspacing="0" cellpadding="3" width="300">

      <tr>

        <td class="singleboxhead">$Text{"Language"}</td>

      </tr>

      <tr>

        <td class="singleboxbody">

          <table cellspacing="8" cellpadding="2">

            <tr>

              <td>$Text{"Language"}:</td>

              <td>$Data{"Language"}</td>

            </tr>

          </table>

          <input class="button" type="submit" value="$Text{"Submit"}"/>

        </td>

      </tr>

    </table>

  </form>

</p>

<!-- dtl:block:CreateAccount -->

<p>

  <table border="0" cellspacing="0" cellpadding="3" width="300">

    <tr>

      <td class="singleboxhead">$Text{"Create Account"}</td>

    </tr>

    <tr>

      <td class="singleboxbody">

        <form action="$Env{"CGIHandle"}" method="post" enctype="application/x-www-form-urlencoded">

          <input type="hidden" name="Action" value="CustomerCreateAccount"/>

          <input type="hidden" name="Lang" value="$Env{"UserLanguage"}"/>

          <table border="0" cellspacing="0" cellpadding="3">

            <tr>

              <td>$Text{"Salutation"}: </td>

              <td> <input type="text" name="Salutation" value="$QData{"UserSalutation"}" size="25" maxlength="50"/></td>

            </tr>

            <tr>

              <td>$Text{"Firstname"}: </td>

              <td> <input type="text" name="Firstname" value="$QData{"UserFirstname"}" size="25" maxlength="50"/></td>

            </tr>

            <tr>

              <td>$Text{"Lastname"}: </td>

              <td> <input type="text" name="Lastname" value="$QData{"UserLastname"}" size="25" maxlength="50"/></td>

            </tr>

#            <tr>

#              <td>$Text{"Login"}: </td>

#              <td> <input type="text" name="Username" value="$QData{"UserLogin"}" size="25" maxlength="50"/></td>

#            </tr>

            <tr>

              <td>$Text{"Email"}/$Text{"Login"}: </td>

              <td> <input type="text" name="Email" value="$QData{"UserEmail"}" size="25" maxlength="50"/></td>

            </tr>

#            <tr>

#              <td>$Text{"CustomerID"}: </td>

#              <td> <input type="text" name="CustomerID" value="$QData{"UserCustomerID"}" size="25" maxlength="50"/></td>

#            </tr>

          </table>

          <input class="button" type="submit" value="$Text{"Create"}"/>

        </form>

      </td>

    </tr>

  </table>

</p>

<!-- dtl:block:CreateAccount -->

</center>

<!-- stop login -->

 

$Include{"CustomerFooter"}

 

Regards,

Zak

 

From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Nathan Campbell
Sent: Thursday, December 03, 2009 10:55 AM
To: User questions and discussions about OTRS.
Subject: Re: [otrs] Remove the language option in the customer login page

 

Sorry - you were talking about the Customer Login page - same instructions, but that file is named CustomerLogin.dtl in the same folder. :)

-----Original Message-----
From: otrs-bounces@otrs.org on behalf of Mohamed Zakaria
Sent: Wed 12/2/2009 7:38 PM
To: 'otrs@otrs.org'
Cc:
Subject: [otrs] Remove the language option in the customer login page

Hi,

Does anyone knows how to remove the language option in the customer login page?

I would like to just use english and prohibit the customers from using other languages.

Thank you.

Regards,
Zak

#####################################################################################
This email is confidential and intended solely for the use of the individual to whom
it is addressed. If you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding, printing or copying
of this email is strictly prohibited. If you have received this email in error
please contact the sender.
#####################################################################################
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/


This email is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. If you have received this email in error please contact the sender.