Koozali.org: home of the SME Server

Horde: What are the differences between "templates-custom" and "t-user-custom"?

Offline ruipedroca

  • ****
  • 86
  • +0/-0
I'm trying to configure Horde and after reading several times the Developers Manual section regarding templates, I feel a litle confused about the differences between "templates-custom" and "templates-user-custom".

Can somebody please clarify?
One or two simple examples would be appreciated.

Developers Manual section:
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual#Local_site_overrides:_templates-custom_and_templates-user-custom
Live and let die

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
I'm trying to configure Horde and after reading several times the Developers Manual section regarding templates, I feel a litle confused about the differences between "templates-custom" and "templates-user-custom".

Can somebody please clarify?

Look immediately above:

"Templates for user home directories: templates-user"

Offline ruipedroca

  • ****
  • 86
  • +0/-0
Look immediately above:

"Templates for user home directories: templates-user"

Thanks, but i did.
But it is also said that qmail definitions are in user folders in /.qmail.

So, where do i stand?..
I'd like to hear someone with experience in Horde templates.
Live and let die

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Thanks, but i did.
But it is also said that qmail definitions are in user folders in /.qmail.

So, where do i stand?..
I'd like to hear someone with experience in Horde templates.
If you were a little more specific we could help you perhaps. For now I can only say that the ~/.qmail templates are located in /etc/e-smith/templates-user/.qmail/ and modification of those fragments should be made to a copy in the same tree structure in /etc/e-smith/templates-user-custom/ relative to /etc/e-smith/templates-user/ just like all other templates.
Re-read the SME Server Developers Guide on the template system, the template-user directory uses the same analogy as the normal templates.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
So, where do i stand?..

You know better than I do.

Quote
I'd like to hear someone with experience in Horde templates.

Why? What problem are you trying to solve?

Horde keeps no files within user home directories, so templates-user-custom is not relevant.

Offline ruipedroca

  • ****
  • 86
  • +0/-0
If you were a little more specific we could help you perhaps. For now I can only say that the ~/.qmail templates are located in /etc/e-smith/templates-user/.qmail/ and modification of those fragments should be made to a copy in the same tree structure in /etc/e-smith/templates-user-custom/ relative to /etc/e-smith/templates-user/ just like all other templates.
Re-read the SME Server Developers Guide on the template system, the template-user directory uses the same analogy as the normal templates.

Thanks cactus, I got that. What confused me was the reference, in the Developers Manual, about qmail file in home directories as you can see here:
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual#Templates_for_user_home_directories:_templates-user
After i understood the logic behind it, the explanation made sense to me; but, before it didn't.

CharlieBrady made it clear to me:
Horde keeps no files within user home directories, so templates-user-custom is not relevant.

You know better than I do.
If i did, i wouldn't have asked...

What i am trying to do is simple:
Configure the same default webmail options and preferences for all users that will be created in this server and make it impossible to them to change those options and preferences.
Some examples:
- disable the link "download a zip file of all emails"
- disable the link "report problem"
- disable the link "options"
- disable the option to choose the default language
- in imp: choose the default "message composition", "new message" and more, preventing users to change it.
- in calendar: choose the default "portal options", "free busy" information and more, also preventing users to change it.
And so on.

Now i know i have to create, configure and expand the right templates in "/etc/e-smith/templates-custom/...", most of which will be fragments, and i know i must copy  them from the /templates folder. This is ok and it begins to make perfect sense to me now i'm beginning to see what/how and why.

Thanks!
Live and let die

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
To do what you want to do, you need to modify the various horde component's prefs.php file.  Set it the way you want and set the value to locked.  The prefs.php file is in the components config directory.

You will need to create templates-custom fragments and expand the correct file.

For example, for imp, the prefs.php file is located at:
/home/httpd/html/horde/imp/config

For any user that might have already logged in, you will need to manually remove any prefs that you don't want them to be able to set, as those will take precedence over any changes you make.

All horde related settings are stored in the horde mysql database.

John
......

Offline ruipedroca

  • ****
  • 86
  • +0/-0
To do what you want to do, you need to modify the various horde component's prefs.php file.  Set it the way you want and set the value to locked.  The prefs.php file is in the components config directory.

You will need to create templates-custom fragments and expand the correct file.

For example, for imp, the prefs.php file is located at:
/home/httpd/html/horde/imp/config

For any user that might have already logged in, you will need to manually remove any prefs that you don't want them to be able to set, as those will take precedence over any changes you make.

All horde related settings are stored in the horde mysql database.

John

Thanks John for your help!!  Very enlightning! :razz:
After i make my changes, i'll post back.
Live and let die