| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
zinnerz PR0

Joined: 08 Jun 2006 Posts: 75
|
Posted: Wed Jan 31, 2007 8:54 pm Post subject: Topic nav not rewritten |
|
|
Hi Dcz,
I found that topic navigation is not rewritten:
 |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Jan 31, 2007 9:26 pm Post subject: Re: Topic nav not rewritten |
|
|
This is on purpose.
Because it would mean two sql query per topic page to rewrite them properly, as you need to find out both next and previous topic info, which is why phpBB does not directly link to the next and previous topics.
So there is no real need to set up a new rewritten url type for links you should end up http 301 redirecting with the zero dupe, as they are originally a great source of duplicates.
So leaving these urls untouched is saving resources and the default robots.txt is disallowing them so ...
You could as here only show them to logged users if you prefer, but SEO wise, it's in all cases a link to disallow.
++ |
_________________ 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: Wed Jan 31, 2007 10:07 pm Post subject: Re: Topic nav not rewritten |
|
|
Nice idea
Thanks Dcz for the info.. |
|
|
| Back to top |
|
 |
zinnerz PR0

Joined: 08 Jun 2006 Posts: 75
|
Posted: Wed Jan 31, 2007 10:24 pm Post subject: Re: Topic nav not rewritten |
|
|
| Btw what is the code to mark a link in purpose to show for members only? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Jan 31, 2007 10:47 pm Post subject: Re: Topic nav not rewritten |
|
|
You can do the following :
| Code: | #
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");
//
// Mozilla navigation bar
//
$nav_links['prev'] = array(
'url' => $view_prev_topic_url,
'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
'url' => $view_next_topic_url,
'title' => $lang['View_next_topic']
);
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ($userdata['session_logged_in']) {
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");
//
// Mozilla navigation bar
//
$nav_links['prev'] = array(
'url' => $view_prev_topic_url,
'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
'url' => $view_next_topic_url,
'title' => $lang['View_next_topic']
);
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM |
Will get rid of the same links in Mozilla navigation bar as well for guest
 |
_________________ 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 |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |