phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

How to change title of viewing topics and index?


 
Search this topic... | Search General Support... | Search Box
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Author Message
Inception
Board Member



Joined: 22 Dec 2013

Posts: 7
Location: California


flag
PostPosted: Mon Dec 30, 2013 6:41 pm 
Post subject: How to change title of viewing topics and index?

I want to know how to change like when you're viewing topics, instead of "View topic - X - Board Name" I want it to just display the topic name, rather than that, like this "X" and also on the board index I just want it to display as "Board Name", how would I go about doing this? icon_biggrin.gif

==Edit==
Also, you know how it says "(Forum name)Index>Topic Name" I'd like it to just say "Forum Index>Topic name" like the little link things at the top of a forum topic

_________________
Want a free way to advertise your webpages and forums? Join PFA today! - http://projectfreeads.gi9.co
Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 175
Location: Germany


flag
PostPosted: Tue Dec 31, 2013 4:34 am 
Post subject: Re: How to change title of viewing topics and index?

Inception wrote:
Also, you know how it says "(Forum name)Index>Topic Name" I'd like it to just say "Forum Index>Topic name" like the little link things at the top of a forum topic

By default, the title is "View topic - X", not "View topic - X - Board name", so this has been modified by either yourself or through a MOD.
Just display topic title (when Board name is not part of):
Code:
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$page_title = $lang['View_topic'] .' - ' . $topic_title;

#
#-----[ REPLACE WITH ]------------------------------------------
#
$page_title = $topic_title;

Just display topic title (when Board name is part of):
Code:
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$page_title = $lang['View_topic'] .' - ' . $topic_title . ' - ' . $board_config['site_name'];

#
#-----[ REPLACE WITH ]------------------------------------------
#
$page_title = $topic_title;

Remove "X Forum Index" from Navbar:
Code:
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
$lang['Forum_Index'] = '%s Forum Index';  // eg. sitename Forum Index, %s can be removed if you prefer

#
#-----[ REPLACE WITH ]------------------------------------------
#
$lang['Forum_Index'] = '%s';  // eg. sitename Forum Index, %s can be removed if you prefer

The last request too is not a default feature, this has also been modified, because the navbar just shows the following by default: ForumName Index -> ForumWithThatTopic, not ForumName Index -> ThatTopic.

Please post your templates/your_template/viewtopic_body.tpl, either as .txt or include it inside code tags.
Back to top
Inception
Board Member



Joined: 22 Dec 2013

Posts: 7
Location: California


flag
PostPosted: Tue Dec 31, 2013 4:12 pm 
Post subject: Re: How to change title of viewing topics and index?

Okay, I fixed the thing with viewing topics, now what about forums, they still say View Forum - X
_________________
Want a free way to advertise your webpages and forums? Join PFA today! - http://projectfreeads.gi9.co
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 628
Location: Spain


flag
PostPosted: Tue Dec 31, 2013 7:19 pm 
Post subject: Re: How to change title of viewing topics and index?

Look for something similar in viewforum.php, a line that starts with
Code:
$page_title =

_________________
phpBB2 will never die, I hope!
Back to top
Inception
Board Member



Joined: 22 Dec 2013

Posts: 7
Location: California


flag
PostPosted: Wed Jan 01, 2014 8:21 pm 
Post subject: Re: How to change title of viewing topics and index?

Thanks! I fixed it by changing
Code:
$page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name'];
to
Code:
$page_title = $forum_row['forum_name'];

_________________
Want a free way to advertise your webpages and forums? Join PFA today! - http://projectfreeads.gi9.co
Back to top
Display posts from previous:   
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 4 Hours
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0699 seconds using 16 queries. (SQL 0.0121 Parse 0.0011 Other 0.0567)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo