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  
 
   
Split posts and merge in one step

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 808

Split posts and merge in one stepPosted: Thu Mar 01, 2007 12:55 pm    Post subject: Split posts and merge in one step

The Split posts and merge in one step mod extends the base split thread dialog to enable you to split and merge topics; the moderator pastes in the target URL. Of course it doesn't correctly interpret the reformatted advanced rewrite URLs. Is a patch available?

FYI, the Simply Merge Threads does the same thing using a new dialog. I prefer the Split posts and merge in one step mod.

_________________
Dan Kehn
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

Split posts and merge in one stepPosted: Fri Mar 02, 2007 9:14 am    Post subject: Re: Split posts and merge in one step

Nice and usefull mod by the way.

Here is a fix to fully comply with the phpBB SEO mod rewrites, all version with the Split posts and merge in one step mod.

Open :


Code:
modcp.php


Find :

Code:
               // is this a url with topic id or post id ?
               else
               {


After add :

Code:
                  // www.phpBB-SEO.com SEO TOOLKIT BEGIN
                  $topic_match = ($phpbb_seo->modrtype > 2) ? $phpbb_seo->seo_delim['topic'] : $phpbb_seo->seo_static['topic'];
                  if ( preg_match("`$topic_match([0-9]+)\\{$phpbb_seo->seo_ext['topic']}`", $destination_topic, $matches) ) {
                     $destination_topic_id = intval($matches[1]);
                  } elseif ( preg_match("`{$phpbb_seo->seo_static['post']}([0-9]+)\\{$phpbb_seo->seo_ext['topic']}`", $destination_topic, $matches) ) {
                     $sql = "SELECT topic_id FROM " . POSTS_TABLE . " WHERE post_id=" . intval($matches[1]);
                     if ( !($result = $db->sql_query($sql)) ) {
                        message_die(GENERAL_ERROR, 'Could not get post information', '', __LINE__, __FILE__, $sql);
                     }
                     if ($row = $db->sql_fetchrow($result)) {
                        $destination_topic_id = $row['topic_id'];
                     }
                  } else {
                  // www.phpBB-SEO.com SEO TOOLKIT END


Find :

Code:

                        $destination_topic_id = $val;
                     }
                  }


After add :


Code:
                  // www.phpBB-SEO.com SEO TOOLKIT BEGIN
                  }
                  // www.phpBB-SEO.com SEO TOOLKIT END


Now you can paste rewritten urls Wink

++

_________________
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
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 808

Split posts and merge in one stepPosted: Fri Mar 02, 2007 12:15 pm    Post subject: Re: Split posts and merge in one step

Works nicely, thanks!

_________________
Dan Kehn
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: