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  
 
   
Latest active topics on index MOD with Advanced Mod Rewrite

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
::  
Author Message
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 113

Latest active topics on index MOD with Advanced Mod RewritePosted: 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. Smile


Last edited by arch stanton on Mon Nov 27, 2006 10:34 pm; edited 1 time in total
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Latest active topics on index MOD with Advanced Mod RewritePosted: Mon Nov 27, 2006 6:39 pm    Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite

Lol, I did not remind I already did it.

I really need to clean up the forums and start releasing.
Almost the end of this IRL demanding autumn:D

_________________
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
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Latest active topics on index MOD with Advanced Mod RewritePosted: 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 Very Happy

So for the latest active topic on index mod :

Open :

Code:
index.php


find :

Code:
   $mar_title = $row[$i]["topic_title"];


after add :
Code:
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   $seo_topic_name = $row[$i]["topic_title"];
   // www.phpBB-SEO.com SEO TOOLKIT END


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 :

Code:
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_topic_name = FALSE;
// www.phpBB-SEO.com SEO TOOLKIT END


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


Last edited by dcz on Tue Nov 28, 2006 10:45 pm; edited 1 time in total
Back to top
Visit poster's website
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 113

Latest active topics on index MOD with Advanced Mod RewritePosted: 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
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Latest active topics on index MOD with Advanced Mod RewritePosted: Tue Nov 28, 2006 10:46 pm    Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite

Sorry wrong copy paste :

It's :

Code:
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   $seo_topic_name = $row[$i]["topic_title"];
   // www.phpBB-SEO.com SEO TOOLKIT END


instead of :

Code:
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   $seo_topic_name = $topic_title";
   // www.phpBB-SEO.com SEO TOOLKIT END


Post edited.

++

_________________
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
zinnerz
PR0
PR0


Joined: 08 Jun 2006
Posts: 75

Latest active topics on index MOD with Advanced Mod RewritePosted: 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 Wink
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Latest active topics on index MOD with Advanced Mod RewritePosted: 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
Visit poster's website
zinnerz
PR0
PR0


Joined: 08 Jun 2006
Posts: 75

Latest active topics on index MOD with Advanced Mod RewritePosted: 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
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Latest active topics on index MOD with Advanced Mod RewritePosted: Fri Feb 02, 2007 6:09 pm    Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite

Are you using this one ?

_________________
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
zinnerz
PR0
PR0


Joined: 08 Jun 2006
Posts: 75

Latest active topics on index MOD with Advanced Mod RewritePosted: 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 Smile
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Latest active topics on index MOD with Advanced Mod RewritePosted: Fri Feb 02, 2007 8:48 pm    Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite

By patch, I meant the code I suggested Wink

Anyway, please double check, because this exact same code work here.

++

_________________
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
zinnerz
PR0
PR0


Joined: 08 Jun 2006
Posts: 75

Latest active topics on index MOD with Advanced Mod RewritePosted: 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 Embarassed

Maybe this because I've seen many code today so I'm kinda not concentrated, really sorry Dcz. Thanks again.. Wink
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Latest active topics on index MOD with Advanced Mod RewritePosted: Fri Feb 02, 2007 10:19 pm    Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite

np 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
funwadi
PR0
PR0


Joined: 06 May 2007
Posts: 53
Location: UAE

Latest active topics on index MOD with Advanced Mod RewritePosted: Wed May 09, 2007 10:47 am    Post subject: Re: Latest active topics on index MOD with Advanced Mod Rewrite

dcz wrote:
Are you using this one ?


It's working perfectly for me. Thanks dcz. You are great Smile
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: