phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Watched Topics List URL rewrite

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
::  
Author Message
mikey67



Joined: 26 Oct 2006
Posts: 6

Watched Topics List URL rewritePosted: Tue Nov 14, 2006 3:10 am    Post subject: Watched Topics List URL rewrite

Is the Watched Topics List possible to be rewrite using seo advanced

http://www.phpbb.com/phpBB/viewtopic.php?t=100096
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15129

Watched Topics List URL rewritePosted: Tue Nov 14, 2006 9:44 am    Post subject: Re: Watched Topics List URL rewrite

Here you go :

Open :

Code:
watched_topics.php


Find :

Code:
       for ( $i = 0; $i < count($watch_rows); $i++ )
        {


After add :

Code:
      // www.phpBB-SEO.com SEO TOOLKIT BEGIN
      $seo_forum_name = $watch_rows[$i]]['forum_name'];
      $seo_topic_name = $watch_rows[$i]['topic_title'];
      // www.phpBB-SEO.com SEO TOOLKIT END


You may as well want to activate the phpBB censoring on the mod, in case some topic titles went censored on the forum.

To do this, in the same file find :

Code:
if ($watch_count > 0)
{     


After add :
Code:
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   //
   // Define censored word matches
   //
   $orig_word = array();
   $replacement_word = array();
   obtain_word_list($orig_word, $replacement_word);
   // www.phpBB-SEO.com SEO TOOLKIT END


Find :
Code:
   for ( $i = 0; $i < count($watch_rows); $i++ )
   {
      // www.phpBB-SEO.com SEO TOOLKIT BEGIN


After add :
Code:
      $watch_rows[$i]['topic_title'] = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $watch_rows[$i]['topic_title']) : $watch_rows[$i]['topic_title'];


Eg before the $seo_forum_name and $seo_topic_name statements.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: