| :: |
| Author |
Message |
arch stanton PR1

Joined: 04 Oct 2006 Posts: 113
|
Posted: Mon Nov 27, 2006 5:17 pm Post subject: Latest active topics on index MOD with Advanced Mod Rewrite |
|
|
I have SEO advanced mod rewrite up and running on my live board, but the latest active topics on index mod needs some minor code changes (it's the box with the scrolling topic titles near the top of the page).
At the moment it's displaying URLs as viewtopic.php?t=xxx instead of topic-title-vtxxx.html
Could dcz or someone else kindly tell me the code changes I will need?
Thanks.  |
Last edited by arch stanton on Mon Nov 27, 2006 10:34 pm; edited 1 time in total |
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Mon Nov 27, 2006 10:32 pm Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite |
|
|
After some confusion, here we are
So for the latest active topic on index mod :
Open :
find :
| Code: | | $mar_title = $row[$i]["topic_title"]; |
after add :
Find :
| Code: | $template->assign_block_vars('marqueerow', array(
'FOLD_URL' => $pic,
'TOPIC_TITLE' => $row[$i]["topic_title"],
'TOPIC_URL' => append_sid($phpbb_root_path . 'viewtopic.'.$phpEx.'?'.POST_TOPIC_URL.'='.$row[$i]["topic_id"]),
'USERNAME' => $row[$i]["username"],
'USER_PROF' => append_sid($phpbb_root_path . 'profile.'.$phpEx.'?mode=viewprofile$amp;u='.$row[$i]["user_id"]),
'POST_DATE' => create_date($board_config['default_dateformat'], $row[$i]["post_time"], $board_config['board_timezone']))
);
} |
After add :
++ |
_________________ 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
Last edited by dcz on Tue Nov 28, 2006 10:45 pm; edited 1 time in total |
|
| Back to top |
|
 |
arch stanton PR1

Joined: 04 Oct 2006 Posts: 113
|
Posted: Tue Nov 28, 2006 9:35 pm Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite |
|
|
| Made the changes, but it's still giving the links as viewtopic.php?t=xxx |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
zinnerz PR0

Joined: 08 Jun 2006 Posts: 75
|
Posted: Thu Feb 01, 2007 6:59 pm Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite |
|
|
Hi Dcz,
Please update to v0.2.0, thanks  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Thu Feb 01, 2007 11:28 pm Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite |
|
|
Before the official patch here is what to do :
| Code: |
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
$mar_title = $row[$i]["topic_title"];
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( !isset($phpbb_seo->seo_url['topic'][$row[$i]['topic_id']]) ) {
$phpbb_seo->seo_url['topic'][$row[$i]['topic_id']] = $phpbb_seo->format_url($mar_title);
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM |
You should get rid of previous modding for the 0.0.2 mod rewrites.
++ |
_________________ 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 |
|
 |
zinnerz PR0

Joined: 08 Jun 2006 Posts: 75
|
Posted: Fri Feb 02, 2007 6:06 pm Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite |
|
|
I've tested it and the url become: topic-tx.html
It seems not for Advanced Mod Rewrite.. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
zinnerz PR0

Joined: 08 Jun 2006 Posts: 75
|
Posted: Fri Feb 02, 2007 7:14 pm Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite |
|
|
Yes it is, I didnt notice your words before: "Before the official patch here is what to do"
I'm using 1.1.9 (Updated 06/12/05) now, sorry not to mention it before  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
zinnerz PR0

Joined: 08 Jun 2006 Posts: 75
|
Posted: Fri Feb 02, 2007 9:22 pm Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite |
|
|
OMG, I miss this part
#
#-----[ AFTER, ADD ]------------------------------------------
#
I was replaced $mar_title = $row[$i]["topic_title"]; with your code, hehehe
Maybe this because I've seen many code today so I'm kinda not concentrated, really sorry Dcz. Thanks again..  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
funwadi PR0

Joined: 06 May 2007 Posts: 53 Location: UAE
|
Posted: Wed May 09, 2007 10:47 am Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite |
|
|
It's working perfectly for me. Thanks dcz. You are great  |
|
|
| Back to top |
|
 |
|
|