RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Miscellaneous > Roundcube Discussion

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 06-09-2007, 12:21 AM
Registered User
 
Join Date: Jun 2007
Posts: 3
Downloads: 0
Uploads: 0
Default Page Title Help Needed

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-24-2007, 09:16 AM
Registered User
 
Join Date: Jul 2007
Posts: 2
Downloads: 0
Uploads: 0
Default Re: Page Title Help Needed

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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-24-2007, 11:06 AM
Registered User
 
Join Date: Jun 2007
Posts: 3
Downloads: 0
Uploads: 0
Default Re: Page Title Help Needed

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 09:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community