+ Reply to Thread
Results 1 to 6 of 6

Thread: Custom login page

  1. #1
    furman12 is offline Roundcube Newcomer
    Join Date
    Feb 2010
    Posts
    4
    Downloads
    1
    Uploads
    0

    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

  2. #2
    skaero's Avatar
    skaero is offline Administrator
    Join Date
    Jun 2006
    Location
    USA - New Mexico
    Posts
    2,087
    Downloads
    5
    Uploads
    0

    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

  3. #3
    furman12 is offline Roundcube Newcomer
    Join Date
    Feb 2010
    Posts
    4
    Downloads
    1
    Uploads
    0

    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>(...)?

  4. #4
    JohnDoh is offline Super Moderator
    Join Date
    May 2007
    Posts
    1,206
    Downloads
    6
    Uploads
    0

    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)
    $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
    $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
    Last edited by JohnDoh; 02-27-2010 at 12:10 PM.
    Roundcube Patches: Sieverules, SpamAssassin Prefs, and more…

  5. #5
    furman12 is offline Roundcube Newcomer
    Join Date
    Feb 2010
    Posts
    4
    Downloads
    1
    Uploads
    0

    Default

    I have next question. I must write in login usermame@host.com, and select the same host. I want do write only username

  6. #6
    furman12 is offline Roundcube Newcomer
    Join Date
    Feb 2010
    Posts
    4
    Downloads
    1
    Uploads
    0

    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'];

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts