Hello:

The Javascript works perfectly for me.

Thanks a lot.

El 09/01/2013 17:13, Michael Alt escribió:
Hey Raul,

not that easy. You need to tweak the file  ./program/include/rcube_template.php in the function login_form from line 1128 on. But would not recommend this.

Probably way easier (if the login host you configured is static) is to insert a small JavaScript snippet into the login.html you already found (just above the closing </body> tag):

<script type="text/javascript">
  $(function(){
        $('#rcmloginuser')
            .css('width','70%')
            .wrap('<div/>')
            .after('<span style="color: #CECECE;margin-left:8px;">@mydomain</span>');
   });
</script>

These style rules work somewhat with larry skin. You need to adjust width (depending on how long "@mydomain" is) and color (depending on skin).

Michael


On Wed, Jan 9, 2013 at 5:10 PM, Juan Carlos Sanchez <juancarlos.sanchez@upm.es> wrote:
Hello:

Any help will be very useful for me too.


Thanks in advance.


Con fecha 9/1/2013, "Raul Elenes A." <raulelenes@gmail.com> escribió:

>Hi ya, I'm trying to customize loginform.html template file to include
>@mydomain besides a smaller input username field. Obviously I want the
>users only enter de username part of their full email addresses. I
>previously configured main.inc.php to do this properly.
>
>The issue is, the html file include this code to deploy the full form
>fields as an object:
>
><roundcube:object name="loginform" form="form" size="40" />
>
>and didn´t find how to modify it as mentioned.
>
>This is the layout wanted:
>
>[image: Inline image 1]
>
>Thanks in advance for your help!
_______________________________________________
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users


-- 

------------------------------------------------------
Juan Carlos Sanchez Hernandez
Responsable de  Seguridad y Correo Electronico
Servicio de Planificacion Informatica y Comunicaciones
Universidad Politecnica de Madrid
Rectorado
Avda. Ramiro de Maeztu 7
28040 Madrid
------------------------------------------------------