Author Topic: Customising the login page  (Read 534 times)

Offline KyleJ144

  • Newbie
  • *
  • Posts: 3
Customising the login page
« on: September 17, 2019, 12:49:16 PM »
Hey i would like to change user name to email on the login form, but I can find the file that i need to access.


when i go too skins/larry/templates/login.html then i just get the following code

Code: [Select]
<roundcube:object name="doctype" value="html5" />
<html>
<head>
<title><roundcube:object name="pagetitle" /></title>
<roundcube:include file="/includes/links.html" />
</head>
<body class="login">

<h1 class="voice"><roundcube:object name="productname" /> <roundcube:label name="login" /></h1>

<div id="login-form">
<div class="box-inner" role="main">
<roundcube:object name="logo" src="/images/roundcube_logo.png" id="logo" />

<roundcube:form name="form" method="post">
<roundcube:object name="loginform" form="form" size="40" submit=true />
</form>

</div>

<div class="box-bottom" role="complementary">
<roundcube:object name="message" id="message" />
<noscript>
<p class="noscriptwarning"><roundcube:label name="noscriptwarning" /></p>
</noscript>
</div>

<div id="bottomline" role="contentinfo">
<roundcube:object name="productname" /> <roundcube:object name="version" condition="config:display_version" />
<roundcube:if condition="config:support_url" />
&nbsp;&#9679;&nbsp; <a href="<roundcube:var name='config:support_url' />" target="_blank" class="support-link"><roundcube:label name="support" /></a>
<roundcube:endif />
<roundcube:container name="loginfooter" id="bottomline" />
</div>
</div>

<roundcube:include file="/includes/footer.html" />

<roundcube:object name="preloader" images="
  /images/ajaxloader.gif
  /images/ajaxloader_dark.gif
  /images/buttons.png
  /images/addcontact.png
  /images/filetypes.png
  /images/listicons.png
  /images/messages.png
  /images/messages_dark.png
  /images/quota.png
  /images/selector.png
  /images/splitter.png
  /images/watermark.jpg
" />

</body>
</html>


Offline KyleJ144

  • Newbie
  • *
  • Posts: 3
Re: Customising the login page
« Reply #1 on: September 18, 2019, 07:16:43 AM »
Anyone able to assist

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,385
Re: Customising the login page
« Reply #2 on: September 18, 2019, 01:51:02 PM »
you need to create a plugin. then you can either override the default template object or use the render_page hook to modify what roundcube generates.

this is probably a bit out of date now but it might give you some ideas: https://gist.github.com/johndoh/fd9752851fe4afe8cd581b2680017dd3
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦