Page titles

Voice your opinions, concerns and suggestions on how to make the Transport Tycoon Forums better.

Moderator: General Forums Moderators

Post Reply
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 990
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Page titles

Post by frosch »

All "pages" of the forums have a title like
Transport Tycoon Forums • View topic - Title game competition for OpenTTD 1.2 series
I.e. at the front there is the forum name, and at the back there is the topic title. However, when opening multiple topics in tabs, they truncate the long name to something like "Transport Tycoon..."

Is it possible to reverse the order of items in the titles, so that the topic title goes first?
Title game competition for OpenTTD 1.2 series • Transport Tycoon Forums - View topic
That would make the truncated titles more useful.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
orudge
Administrator
Administrator
Posts: 25213
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Re: Page titles

Post by orudge »

It should, I think, be possible, but I've not looked into it. I'm not completely sure I want to do that - for consistency, I'd have to (or want to) change it on every page. I appreciate it may have uses in the situation you describe, though.
Supercheese
Tycoon
Tycoon
Posts: 1660
Joined: 16 Dec 2007 22:24
Location: Idaho, USA

Re: Page titles

Post by Supercheese »

I use a Greasemonkey script to (mostly) fix this: http://userscripts.org/scripts/show/53799

It doesn't seem to work when in posting mode, view forum mode, and in some other places, but it works well when browsing a topic.
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
Auge
Chief Executive
Chief Executive
Posts: 660
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: Page titles

Post by Auge »

Hello
orudge wrote:It should, I think, be possible, but I've not looked into it. I'm not completely sure I want to do that - for consistency, I'd have to (or want to) change it on every page. I appreciate it may have uses in the situation you describe, though.
The board script has a template engine to do that automatically. I downloaded the style pack sinterklaas for phpBB 3.0.10 and looked into the templates. The following line of overall_header.html builds the title:

Code: Select all

<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
Changing this line to ...

Code: Select all

<title>{PAGE_TITLE} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{SITENAME}</title>
... should fix it (if the structure of your template corresponds to the sinterclaas template).

Tschö, Auge
Post Reply

Return to “Forum Suggestions and Feedback”

Who is online

Users browsing this forum: No registered users and 2 guests