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.

Remove "Viewtopic" and "Viewforum" from page title

Postby bonelifer » 01 Nov 2010, 01:56

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']);
User avatar
bonelifer
Moderator Team Leader
Moderator Team Leader
 
Posts: 1450
Joined: 24 Jun 2006, 17:48
Location: htpc.MythBuntu
Real name: William

Return to Code snippets

Who is online

Users browsing this forum: Ahref Bot and 0 guests

cron