RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > News and Announcements > General Discussion

For more information about the ads and why they're here, please see the FAQ

Reply
  #1  
Old 02-08-2010, 04:20 PM
Roundcube Newcomer
 
Join Date: Feb 2010
Posts: 4
Default Custom login page

Hey,
I want make my own login page,
I found only this in skins/default/templates/login.html, but it isn't normal form. Can u help me with creating login page?
I want to delete server form and add my own
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
title><roundcube:object name="pagetitle" /></title>
<
meta name="Robots" content="noindex,nofollow" />
<
roundcube:include file="/includes/links.html" />
</
head>
<
body>

<
img src="/images/roundcube_logo.png" border="0" alt="<roundcube:object name='productname' />" style="margin:0 11px" />

<
roundcube:object name="message" id="message" />

<
div id="login-form">
<
div class="boxtitle"><roundcube:label name="welcome" /></div>
<
div class="boxcontent">

<
form name="form" action="./" method="post">
<
roundcube:object name="loginform" form="form" autocomplete="off" />

<
p style="text-align:center;"><input type="submit" class="button mainaction" value="<roundcube:label name='login' />" /></p>

</
form>
</
div>
</
div>

</
body>
</
html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 02-08-2010, 04:43 PM
skaero's Avatar
Super Moderator
 
Join Date: Jun 2006
Location: USA - New Mexico
Posts: 984
Send a message via ICQ to skaero Send a message via AIM to skaero Send a message via MSN to skaero Send a message via Yahoo to skaero
Default

RoundCube generates the login forum, you should be able to fully edit it useing css, if you want to create a forum to login to RoundCube from else where try using the Autologin plugin Plugin_Repository ? Roundcube Webmail
__________________
SKaero.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-27-2010, 11:42 AM
Roundcube Newcomer
 
Join Date: Feb 2010
Posts: 4
Default

I found this:
PHP Code:
// add host selection row
        
if (is_object($input_host)) {
            
$table->add('title'html::label('rcmloginhost'Q(rcube_label('server'))));
            
$table->add(null$input_host->show(get_input_value('_host'RCUBE_INPUT_POST)));
        } 
How to change it to html <select>(...)?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 02-27-2010, 12:03 PM
Super Moderator
 
Join Date: May 2007
Posts: 668
Default

are you trying to make a select box for the imap server? this can be done from the config ([rc root]/config/main.inc.php)
Quote:
$rcmail_config['default_host'] = array("host" => "name");
otherwise if you look in rcube_tamplate.php, a little above where you got the bit of code from you'll see
Quote:
$input_host = new html_select(array('name' => '_host', 'id' => 'rcmloginhost'));

foreach ($default_host as $key => $value) {
if (!is_array($value)) {
$input_host->add($value, (is_numeric($key) ? $value : $key));
}
else {
$input_host = null;
break;
}
}
this creates an html select object and adds options to it
__________________
RoundCube Patches & Plugins: Managesieve, SpamAssassin Prefs, and more…

Last edited by JohnDoh; 02-27-2010 at 12:10 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 02-27-2010, 12:53 PM
Roundcube Newcomer
 
Join Date: Feb 2010
Posts: 4
Default

I have next question. I must write in login usermame@host.com, and select the same host. I want do write only username
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 02-27-2010, 01:56 PM
Roundcube Newcomer
 
Join Date: Feb 2010
Posts: 4
Default

I want somethink else
Login = username@host.com
<input(...) name="1"> value = username
<select name="2"> option = host.com

Login = $_POST['1']."@".$_POST['2'];
and host = $_POST['2'];
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:11 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2006-2008 RoundCube Webmail Community