| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
Posted: Fri May 26, 2006 11:40 am Post subject: [Add On] Last msg mxBB module mod Rewrite |
|
|
hello,
So this was found in the french board, it will allow the last message mxBB module to output mod rewritten URL.
For the phpBB SEO Advanced mod rewrite just apply all of the following code, for the mixed, just aply the code concerning $seo_forum_name and to not copy the line (or the part of the line) with $seo_topic_name, for Simple mod rewrite, well it's already working so ... :
Open:
| Code: |
modules/mx_last_msg/mx_last_msg.php |
Find:
| Code: | for($row_count = 0; $row_count < count($postrow); $row_count++)
{
$row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];
$message = $postrow[$row_count]['topic_title']; |
After add :
| Code: | // phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $postrow[$row_count]['forum_name'];
$seo_topic_name = $message;
// phpBB-SEO.com SEO TOOLKIT END
|
Find:
| Code: | | $url = append_sid( PHPBB_URL . 'viewtopic.php?t='.$postrow[$row_count]['topic_id'].'#'.$postrow[$row_count]['topic_last_post_id']); |
Replace with :
| Code: | | $url = append_sid( PHPBB_URL . 'viewtopic.php?t='.$postrow[$row_count]['topic_id']); |
Find:
| Code: | | $template->pparse("body_last_msg"); |
Before add :
| Code: | // phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $seo_topic_name = FALSE;
// phpBB-SEO.com SEO TOOLKIT END |
And then, if you don't want the link to the last post to be rewritten, in order not to outpu any duplicate, please do the following also in the same file:
Find:
| Code: | | $url = append_sid( PHPBB_URL . 'viewtopic.php?t='.$postrow[$row_count]['topic_id'].'#'.$postrow[$row_count]['topic_last_post_id']); |
After add :
| Code: | // phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_topic_name = FALSE;
// phpBB-SEO.com SEO TOOLKIT END |
Enjoy  |
_________________ 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 |
|
 |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Fri May 26, 2006 12:13 pm Post subject: Re: [Add On] Last msg mxBB module mod Rewrite |
|
|
Thank you very much for this... I didn't expect a fix for this so soon. seems like my site is now all SEO friendly... the phpbb links anyway. this is great.  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
Posted: Fri May 26, 2006 12:17 pm Post subject: Re: [Add On] Last msg mxBB module mod Rewrite |
|
|
| Peter77 wrote: | Thank you very much for this... I didn't expect a fix for this so soon. seems like my site is now all SEO friendly... the phpbb links anyway. this is great.  |
hehe, you are welcome
Actually, this is liek the first proof we will take advantage of the two languages set up here at phpBB SEO, this was asked by a French member willing to work a bit on it, so that I was able to have him test several solutions before we found out the final fix.
No big deal then to "backport" it for the English speaking community
++ |
_________________ 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 |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Fri May 26, 2006 12:39 pm Post subject: Re: [Add On] Last msg mxBB module mod Rewrite |
|
|
| dcz wrote: | | Peter77 wrote: | Thank you very much for this... I didn't expect a fix for this so soon. seems like my site is now all SEO friendly... the phpbb links anyway. this is great.  |
hehe, you are welcome
Actually, this is liek the first proof we will take advantage of the two languages set up here at phpBB SEO, this was asked by a French member willing to work a bit on it, so that I was able to have him test several solutions before we found out the final fix.
No big deal then to "backport" it for the English speaking community
++ |
Wow, well thanks to this member also... it is very much appreicated.
 |
|
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Tue Jan 30, 2007 5:39 am Post subject: Re: [Add On] Last msg mxBB module mod Rewrite |
|
|
| Hi there. an update to this patch? |
_________________ Juarol.com
| Frekuenciadigital.com | |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |