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

Offline KyleJ144

  • Newbie
  • *
  • Posts: 5
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" />
<title><roundcube:object name="pagetitle" /></title>
<roundcube:include file="/includes/links.html" />
<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 />


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

<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" />

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

<roundcube:object name="preloader" images="
" />


Offline KyleJ144

  • Newbie
  • *
  • Posts: 5
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,450
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:
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦