Even better would be to do this through a plugin. Check out the template_object_* hook. Else you're going to have to re-do this every time you update.
Cor
On Jan 10, 2013, at 6:34 AM, Juan Carlos Sanchez juancarlos.sanchez@upm.es wrote:
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).