Optimal titles mod - need to remove forum name from title

Support for the phpBB3 SEO mods released in the phpBB3 SEO Toolikt forum.

Moderator: Moderators

Optimal titles mod - need to remove forum name from title

Postby e13o13 » Thu Dec 11, 2008 3:55 pm

I just installed the optimal titles mod - it is working well (the way I want it to) for each of the forum pages - only showing the actual forum name... But for the topic pages themselves it is adding on the forum name at the end of it, I would prefer that the title only show the topic name...

example...

http://www.forums.christianpersonalfinance.com/investment-strategies-for-the-obama-administration-t84.html

any ideas on how to fix this?
e13o13
 
Posts: 19
Joined: Wed Sep 10, 2008 1:26 pm
Location: St. Louis

Advertisement

Postby e13o13 » Fri Dec 12, 2008 3:46 am

anyone have any ideas on this?
e13o13
 
Posts: 19
Joined: Wed Sep 10, 2008 1:26 pm
Location: St. Louis

Postby HB » Fri Dec 12, 2008 3:53 am

If you prefer shorter titles:

Code: Select all
#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php

#
#-----[ FIND ]------------------------------------------
#

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

#
#-----[ REPLACE WITH ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN - TITLE
$extra_title = ($start > 0) ? ' - ' . $user->lang['Page'] . ( floor( ($start / $config['posts_per_page']) ) + 1 ) : '';
page_header($topic_data['topic_title'] . $extra_title);
// www.phpBB-SEO.com SEO TOOLKIT END - TITLE
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1211
Joined: Mon Oct 16, 2006 2:25 am

Postby e13o13 » Fri Dec 12, 2008 4:06 am

Dan,
thanks for getting back to me... I swapped that code with the code in that file and it gave me an error - so I couldn't see the pages at all... I deleted the cache to see if that was it... nope.

Is there something else I need to do in addition to the code?
e13o13
 
Posts: 19
Joined: Wed Sep 10, 2008 1:26 pm
Location: St. Louis

Postby HB » Fri Dec 12, 2008 4:11 am

All I can advise is checking your work. Only one line of code changed from the original mod and I don't see an error in what I posted. Of course I can only guess since you didn't mention what error you're seeing. :lol:
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1211
Joined: Mon Oct 16, 2006 2:25 am

Postby e13o13 » Fri Dec 12, 2008 4:22 am

got it - I figured it out - thanks again for your help!
e13o13
 
Posts: 19
Joined: Wed Sep 10, 2008 1:26 pm
Location: St. Louis


Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 5 guests