Go Back   cPanel Forums > General Discussion > cPanel Newbies

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-03-2009, 02:51 AM
Registered User
 
Join Date: Sep 2009
Posts: 61
stardotstar is on a distinguished road
Horde login Language Selection doesn't "stick"?

I have been reading many posts here mostly dating back a while that seem to indicate the the "feature" whereby one has to select the language for the Horde session on every login is something we have to live with. Is that right or am i missing a configuration or other setting which will allow my users to select autologin to Horde and wind up only having to enter their username and password instead of having to select the language for the session every time.

From what I can see the selection of the language does not "stick" even if it is set in the options in Horde. I also note that other settings are saving state properly.

I can't really find too much about this on the web at large so maybe I am getting something not very common.

One user has stated that the process of logging in to check their webmail (using horde in this instance) is slow and clunky. Am I missing something to allow users to just have to login with their username and password and then be served up their horde inbox? (I have the opening page set to mail in horde and this is sticking - its just the mail client intermediate window with the autoload in x seconds followed by the language dropdown that I think is causing the appearance of a slow process.)

TIA
Will
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-12-2009, 01:35 AM
Registered User
 
Join Date: Sep 2009
Posts: 61
stardotstar is on a distinguished road
Is anyone else even aware of this "problem" maybe I have an unusual issue and should lodge a ticket?
Will
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-13-2009, 05:25 PM
Registered User
 
Join Date: Sep 2009
Posts: 61
stardotstar is on a distinguished road
OK I have done some digging since lodging a ticket with WHM/cPanel and being instructed that it is definitely a "horde" thing and normal behavior.

So...

I find the layout of horde in cPanel thus:

Code:
root@jupiter [~]# locate horde
/scripts/fullhordereset
/scripts/neomail2hordeaddrbook
/scripts/resethorde
/usr/local/cpanel/3rdparty/etc/horde
/usr/local/cpanel/3rdparty/etc/horde/php.ini
/usr/local/cpanel/base/horde
/usr/local/cpanel/base/frontend/x/images/horde.gif
/usr/local/cpanel/base/frontend/x3/branding/horde.gif
/usr/local/cpanel/base/frontend/x3/images/horde.gif
/usr/local/cpanel/base/frontend/x3mail/branding/horde.gif
/usr/local/cpanel/base/horde/COPYING
/usr/local/cpanel/base/horde/README
/usr/local/cpanel/base/horde/admin
/usr/local/cpanel/base/horde/config
/usr/local/cpanel/base/horde/docs
/usr/local/cpanel/base/horde/imp
/usr/local/cpanel/base/horde/index.php
...
and in index.php note that the language selection is driven by:

Code:
/* Build the <select> widget containing the available languages. */
if (!$prefs->isLocked('language')) {
    $_SESSION['horde_language'] = NLS::select();
    $langs = '<select name="new_lang" onchange="selectLang()">';
    foreach ($nls['languages'] as $key => $val) {
        $sel = ($key == $_SESSION['horde_language']) ? ' selected="selected"' : '';
        $langs .= "<option value=\"$key\"$sel>$val</option>";
    }
    $langs .= '</select>';
}
It seems that the best way to disable this is to pre-set the isLocked('language')

This appears in config/prefs.php

Code:
// user language
$_prefs['language'] = array(
    'value' => '',
    'locked' => true,
    'shared' => true,
    'type' => 'select',
    'escaped' => true,
    'desc' => _("Select your preferred language:")
);
Changed locked to true from false.

This removes the selection drop down from the login window but still requires the user intervention at that point --> click "Log In"

I am still investigating the methods available to remove this login page which requires user intervention for those of us who want to presuppose a language for users (on login at least) and take advantage of the pre-auth provided by the webmail. cpanel redirection index...

Will
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-30-2009, 03:18 PM
Registered User
 
Join Date: Aug 2008
Posts: 8
lauer is on a distinguished road
My Solution...

Hi

My solution is to add the following line before the last </script> in /usr/local/cpanel/base/horde/templates/login/login.inc
Code:
document.horde_login.submit();
It does work, but I am almost sure that you need to do the change each time horde gets updated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-30-2009, 08:13 PM
Registered User
 
Join Date: Sep 2009
Posts: 61
stardotstar is on a distinguished road
Hi and thanks for that - its a great suggestion. I will try it.
Horde themselves blame the cPanel modified version of horde and won't contribute to any suggestions.

Thank you!

Will
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My Exim Configuration Changes Don't "Stick" gcutrer cPanel Newbies 7 10-21-2009 11:42 PM
Horde "Login Failed" after logging in xnull cPanel and WHM Discussions 78 05-01-2008 11:12 AM
Horde & "double login" tomfra cPanel and WHM Discussions 4 06-24-2003 06:39 AM


All times are GMT -5. The time now is 11:19 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc