Author |
Message |
Inception Board Member
Joined: 22 Dec 2013
Posts: 7 Location: California
|
Posted: 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?
==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
|
Posted: 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
|
Posted: 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
|
Posted: 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 _________________ phpBB2 will never die, I hope! |
|
Back to top |
|
|
Inception Board Member
Joined: 22 Dec 2013
Posts: 7 Location: California
|
Posted: 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 |
|
|
|