1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

How to modify Horde Template?

Discussion in 'Plesk for Linux - 8.x and Older' started by JamesG, Mar 25, 2007.

  1. JamesG

    JamesG Guest

    0
     
    Hi,

    is it possible to modify Horde-Template?, vor example, something like: "Welcome to Horde" to: "Welcome to my webmail"?

    thx,
    JamesG
     
  2. neosfutura

    neosfutura Guest

    0
     
    You can do it ;)

    To change the "welcome to Horde"

    Edit: /etc/psa-horde/horde/registry.php

    Find: 'name' => _("Horde"),

    Replace with:

    'name' => _(preg_replace('/^webmail./', '', $GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME']) ),

    OR

    by changing this line in /usr/share/psa-horde/imp/login.php:

    $title = sprintf(_("Welcome to %s"), $registry->get('name', ($imp_auth) ? 'horde' : null));

    with

    $rest = substr($_SERVER['SERVER_NAME'], 8);
    $title = sprintf(_("Welcome to %s"),$rest);

    ---

    Both will make the greeting- "Welcome to domain.com" - with domain.com being whatever domain's webmail is being called.

    ---

    To remove (or replace) the default horde logo, edit the common-footer at /usr/share/psa-horde/templates/
     
  3. JamesG

    JamesG Guest

    0
     
    thanks!, I will try it!

    JamesG
     
Loading...