Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: weblance on November 22, 2011, 11:17:06 PM
-
Hi,
I would like to disable the last login time shown in Horde when I login to the webmail.
The code in prefs.php:
// show the last login time of user
$_prefs['show_last_login'] = array(
'value' => true,
'locked' => false,
'shared' => true,
'type' => 'checkbox',
'desc' => _("Show last login time when logging in?")
);
I know that all I have to do is replace two of the values so that it looks like this:
// show the last login time of user
$_prefs['show_last_login'] = array(
'value' => false,
'locked' => true,
'shared' => true,
'type' => 'checkbox',
'desc' => _("Show last login time when logging in?")
);
It works, but when the server is restartet it returns to the default value.
How can I make it permanent?
/Carl
-
Carl..
if you take a look at the top of the file , you'd see
/*
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
*/
since you are not a newbie with SME, you should know that almost everything is templates/fragments driven..
take a look here: http://wiki.contribs.org/Template_Tutorial
-
hint.. the file to edit is 350lastlogin ;-)
-
Carl..
if you take a look at the top of the file , you'd see
/*
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
*/
since you are not a newbie with SME, you should know that almost everything is templates/fragments driven..
take a look here: http://wiki.contribs.org/Template_Tutorial
Yes I know and I've read what it says in the top :-) But I don't know how to do the template . . . but now I do.
Thanks for your help!!
-
Yes I know and I've read what it says in the top :-) But I don't know how to do the template . . . but now I do.
Only edit the file after copying it to the /etc/e-smith/templates-custom tree with the same relative path as it had in regards to /etc/e-smith/templates/ otherwise updates of horde will reset your changes as well.
-
mkdir -p /etc/e-smith/templates-custom/home/httpd/html/horde/config/prefs.php
cp /etc/e-smith/templates/home/httpd/html/horde/config/prefs.php/350lastlogin /etc/e-smith/templates-custom/home/httpd/html/horde/config/prefs.php/350lastlogin
### Make changes to the file as above, save the file ###
expand-template /home/httpd/html/horde/config/prefs.php
-
Carl..
if you take a look at the top of the file , you'd see
/*
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
*/
since you are not a newbie with SME, you should know that almost everything is templates/fragments driven..
take a look here: http://wiki.contribs.org/Template_Tutorial
makes me think the header is maybe not clear enough
should it add a link to the Template tutorial ?
when I open this file as a server admin I do not consider myself as a developper, and I will not follow the link.
maybe adding :
"Administrator, if you need to modify permanently the content of this file please refer to ...."
-
+1 for me
-
Guys...seriously...if you just gave the man the answer in the first place this thread would have been 2-3 posts long... :D :D
However, I should have stated:
mkdir -p /etc/e-smith/templates-custom/home/httpd/html/horde/config/prefs.php
cp /etc/e-smith/templates/home/httpd/html/horde/config/prefs.php/350lastlogin /etc/e-smith/templates-custom/home/httpd/html/horde/config/prefs.php/350lastlogin
### Make changes to the file you just copied in templates-custom, to be as below, save the file ### use whatever editor you like:
// show the last login time of user
$_prefs['show_last_login'] = array(
'value' => false,
'locked' => true,
'shared' => true,
'type' => 'checkbox',
'desc' => _("Show last login time when logging in?")
);
expand-template /home/httpd/html/horde/config/prefs.php
I was not referring to editing the file in e-smith/templates, I was referring to the contents to be changed...
-
Guys...seriously...if you just gave the man the answer in the first place this thread would have been 2-3 posts long... :-D :-D
The man has been long gone since 2012, so why revive an almost 6 years old thread....