Premod 3.05 and Titles

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

Premod 3.05 and Titles

Postby darkone » Mon Jun 15, 2009 1:02 pm

Hello Everyone

I just installed the latest premod and have some questions concerning titles and keywords.

My website uses a portal (Stargate Portal) and it is the main page. Ever since I installed the premod my title for that page is just 'portal' and I can already see the results in google went from 1st page to 3rd (damn they are quick). The forum topics/page titles are just fine. I just wanted to be able to change what I see for the 'portal' and 'forum' page is there a way to hard code this or do something to the overall_header to fix this?

I will read through the docs again to see if this is mentioned in there somewhere and I missed it and I think there was a way to exclude certain words as keywords as well?


Thanks for the assistance and as always great work!

-D1-
darkone
 
Posts: 21
Joined: Thu Jul 12, 2007 3:23 pm

Advertisement

Re: Premod 3.05 and Titles

Postby darkone » Tue Jun 16, 2009 3:35 am

I did some reading and was wondering if someone could assist. I added this to my setup_phpbb_seo.php to change the titles of certain pages:

Code: Select all
$this->url_replace = array(
      'Portal' => 'SpaceSimCentral - Your Space Sim and Multiplayer Space Combat Gaming, Modding and Resource Community',
      'Downloads' => 'SpaceSimCentral - Download Space Games and Patches, Space Mods and Space Game Demos',
      'Arcade index' => 'SpaceSimCentral - Come and play in our Arcade',
      'Links' => 'SpaceSimCentral - Space Sim Links, Space MMO Links, Space Gaming Links, Space Sim Mod Links and More'
);


In the 'Find' portion I put what was showing up as the title right now and what I wanted it to be. Am I doing this right?
darkone
 
Posts: 21
Joined: Thu Jul 12, 2007 3:23 pm

Re: Premod 3.05 and Titles

Postby dcz » Wed Jun 17, 2009 9:32 am

No, the phpbb_seo::url_replace array is meant to be used for title injection in urls, not page titles.
For page titles, the easiest would be to mod the files themselves, in case the default titles does not please you.

The forum index.php is using the configured phpBB sitename in acp, so you can change it in acp, or you can use whatever you want :
Code: Select all
page_header($config['sitename']);

could be replaced with :
Code: Select all
page_header("The title I want");


The code change for the portal.php file, as well as for any other php file, should be very similar, look for :
Code: Select all
page_header(


But do not hard code a page title for viewtopic and viewforum, since they are dynamic (the script are used for more than one page).

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Re: Premod 3.05 and Titles

Postby darkone » Thu Jun 18, 2009 12:18 pm

Thank you dcz.

That helped greatly.
darkone
 
Posts: 21
Joined: Thu Jul 12, 2007 3:23 pm


Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Google [Bot] and 8 guests