![]() |
|
|
|||||||
| For more information about the ads and why they're here, please see the FAQ |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I am new to RC, and have to say I LOVE it. I am trying to alter a few things and the one I am currently stuck on is showing the email of a user in the title, so the title would be john@doe-Roundcube Webmail . Does anyone know how I could do this please? Any help would be greatly appreciated. Thanks! |
|
#2
|
|||
|
|||
|
Hi,did you get this resolved?
it is really weird, php code does not have effect in the template files (under skins/default/include or template) |
|
#3
|
|||
|
|||
|
Hi,
There may be a better way of doing it but I did it like this: 1. Find the big switch statement in program\include\rcmail_template.inc 2. Scroll thoruhg that switch statemtn untuil line 448, where you will hit this code: else if ($object=='pagetitle') { $task = $this->task; $title = !empty($this->config['product_name']) ? $this->config['product_name'].' :: ' : ''; if (!empty($this->pagetitle)) $title .= $this->pagetitle; else if ($task == 'login') $title = rcube_label(array('name' => 'welcome', 'vars' => array('product' => $this->config['product_name']))); else $title .= ucfirst($task); return Q($title); } 3. I simply replaced this with this: else if ($object=='pagetitle') { $task = $this->task; if ($task == 'login'){ $title = rcube_label(array('name' => 'welcome', 'vars' => array('product' => $this->config['product_name']))); } else{ $emailaddy=$_SESSION['username']; $title=$emailaddy1." - Roundcube Webmail"; } return Q($title); } Hope that helps. Cheers! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
| For more information about the ads and why they're here, please see the FAQ |