Knowledge Base

Remove 'View Topic' and 'View Forum' From Titles
Article ID: 465
Written By: Phil
Written On: Wed Sep 22, 2010 4:19 pm
Description: This article describes the process required to remove "View Topic" and "View Forum" from your board titles.
link to this article on phpbb.com: Select All
[kb=remove-view-topic-and-view-forum-from-titles]Remove 'View Topic' and 'View Forum' From Titles[/kb]
link to this article on your own board: Select All
[url=http://www.phpbb.com/kb/article/remove-view-topic-and-view-forum-from-titles/]Knowledge Base - Remove 'View Topic' and 'View Forum' From Titles[/url]

For various reasons, you may decide you want to remove the words "View Topic" and "View Forum" from your board URLs. Regardless of the reason, it's a rather simple process -- two edits total.

First, open viewforum.php and find the following:
Code: Select all
page_header($user->lang['VIEW_FORUM'] . ' - ' . $forum_data['forum_name'], true, $forum_id); 

Replace this code with:
Code: Select all
page_header($forum_data['forum_name'], true, $forum_id); 

Next, save viewforum.php, and open viewtopic.php. Find the following:
Code: Select all
page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id); 

and change it to
Code: Select all
page_header($topic_data['topic_title'], true, $forum_id); 


Finally, save viewtopic.php, and, for good measure, clear your board's cache using the "Purge Cache" button on the General tab (usually the homepage) of the ACP.



20100922 - updated for phpBB 3.0.7-PL1 - t_backoff