| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
HB phpBB SEO Team

Joined: 16 Oct 2006 Posts: 808
|
Posted: 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 |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
Posted: 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 :
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 :
Now you can paste rewritten urls
++ |
_________________ 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 |
|
 |
HB phpBB SEO Team

Joined: 16 Oct 2006 Posts: 808
|
Posted: 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 |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |