Manual install problem on heavily modified PHPBB

phpBB2 SEO Mixed mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting categories and forums titles in their URLs, but keeping a static rewriting for topics.

Moderator: Moderators

Manual install problem on heavily modified PHPBB

Postby twalker » Thu Nov 06, 2008 3:08 pm

For the most part the problem I have is self-inflicted, but hopefully I'm not completely out of luck. I run a heavily modified older version of PHPBB, but it's not the standard mods that make upgrading difficult. I've added my own security throughout the code, as well as countless tweaks and custom functionality to almost every script and template.

The only problem installing the Mixed mod rewrite that I've run into so far is with the index.php. Where is says to find the following code, my version doesn't have it:

Code: Select all
index.php

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

      if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
      {

#
#-----[ AFTER, ADD ]------------------------------------------
#
         // www.phpBB-SEO.com SEO TOOLKIT BEGIN
         if ( !isset($phpbb_seo->seo_url['cat'][$cat_id]) ) {
            $phpbb_seo->seo_url['cat'][$cat_id] = $phpbb_seo->format_url($category_rows[$i]['cat_title'], $phpbb_seo->seo_static['cat']);
         }
         // www.phpBB-SEO.com SEO TOOLKIT END


Is there any way to work around this? Any help would sure be appreciated.

Tim
twalker
 
Posts: 2
Joined: Thu Nov 06, 2008 9:00 am

Advertisement

Postby dcz » Sun Nov 09, 2008 10:04 am

This code is required for categories rewriting and page titles.

So it's not the most useful one, but still. Please post here a zip to your index.php file and I'll tell you more about a possible solution in your case ;)

++
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: Manual install problem on heavily modified PHPBB

Postby twalker » Mon Nov 10, 2008 11:20 pm

Hi dcz,

Thank you for taking a look at this. Here's a link to the index.php file:

Zip archive: index.php.zip

If there's anything else you need just let me know.

twalker
Image
twalker
 
Posts: 2
Joined: Thu Nov 06, 2008 9:00 am

Postby SeO » Tue Nov 11, 2008 8:30 am

It seems that you could be a little more up to date for that file, until you update you can add the code you mentioned after :

Code: Select all
      if ( $display_forums )
      {


instead, should work ;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm


Return to phpBB2 Mixed mod rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest