Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: jaredyeo on April 01, 2009, 04:44:43 AM

Title: Remove double :: from title bar?
Post by: jaredyeo on April 01, 2009, 04:44:43 AM
Hello which file exactly stores the "::" string in the title bar? Can i change it to a "-" instead?
Title: Remove double :: from title bar?
Post by: Julius Caesar on April 01, 2009, 05:08:27 AM
In the file ./program/include/rcube_json_output.php

Search for 'product_name' and edit the function:

    public function set_pagetitle($title)
    {
        $name = $this->config->get('product_name');
        $this->command('set_pagetitle', JQ(empty($name) ? $title : $name.' :: '.$title));
    }
Title: Remove double :: from title bar?
Post by: jaredyeo on April 01, 2009, 05:37:46 AM
Quote from: Julius Caesar;18168
In the file ./program/include/rcube_json_output.php

Search for 'product_name' and edit the function:

    public function set_pagetitle($title)
    {
        $name = $this->config->get('product_name');
        $this->command('set_pagetitle', JQ(empty($name) ? $title : $name.' :: '.$title));
    }

Beautiful. Thanks.

edit: hmm doesnt seem to work :(
Title: Remove double :: from title bar?
Post by: Julius Caesar on April 01, 2009, 06:41:38 AM
Quote from: jaredyeo;18172
edit: hmm doesnt seem to work :(

There is also another file:

./program/include/rcube_template.php

Search for
Code: [Select]
' :: ' and replace this with
Code: [Select]
' - ' as well.

And the template for composing messages uses it's own title string: ./skins/default/templates/compose.html
Title: Remove double :: from title bar?
Post by: jaredyeo on April 01, 2009, 09:06:53 AM
Quote from: Julius Caesar;18174
There is also another file:

./program/include/rcube_template.php

Search for
Code: [Select]
' :: ' and replace this with
Code: [Select]
' - ' as well.

And the template for composing messages uses it's own title string: ./skins/default/templates/compose.html


Thank you Julius that's very helpful. Cheers.