Remove "Viewtopic" and "Viewforum" from page title

A perfect place for code snippets to small to be a MOD or a library.
Or for examples on how to use our libraries.
Post Reply
User avatar
bonelifer
Administrator
Administrator
Posts: 477
Joined: 24 Jun 2006, 17:48
Real name: William
Location: htpc.MythBuntu

Remove "Viewtopic" and "Viewforum" from page title

Post by bonelifer »

This post was originally posted by Kenny at 6 String MODs, I have made some minor adjustments.

I've notice a few people who are interested in removing the "Viewtopic" and "Viewforum" text from the browsers page title. It's very simple to do, requiring only 2 small edits. Enjoy :)

OPEN: viewforum.php
FIND:

Code: Select all

page_header($user->lang['VIEW_FORUM'] . ' - ' . $forum_data['forum_name'], true, $forum_id);

REPLACE WITH:

Code: Select all

page_header($forum_data['forum_name']);

OPEN: viewtopic.php
FIND:

Code: Select all

page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id);

REPLACE WITH:

Code: Select all

page_header($topic_data['topic_title']);
Post Reply