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

Joined: 16 Oct 2006 Posts: 809
|
Posted: Wed Feb 20, 2008 5:12 am Post subject: View or Mark Unread Posts MOD -> not found error |
|
|
The View or Mark Unread Posts for PHPBB3 mod appears to be broken by the rewrite, i.e., the URL built is
-http://www.mysite.com/phpBB3/blah-blah-blah-t6190.html&view=unread#unread
Which leads to a 'not found' if the optional steps are followed from the install:
| Quote: | 3. When the user clicks the view unread posts link, the resulting list
of unread posts has the same look and feel as a regular list of search
results, and that means that the orange icon to the left of the topic
title is a link to the first unread post in the topic but the topic name
itself is only a link to the beginning of the topic. If you want the
topic name to be a link to the first unread post (which is the way I prefer),
then make the following additional change in search.php: |
OPEN search.php
FIND
| Code: | | 'U_VIEW_TOPIC' => $view_topic_url, |
REPLACE WITH
| Code: | | 'U_VIEW_TOPIC' => ($search_id == 'unread') ? $view_topic_url . '&view=unread#unread' : $view_topic_url, |
I coded with the "?" instead; I don't think it's an optimal fix (read: it's a hack).
| Code: | | 'U_VIEW_TOPIC' => ($search_id == 'unread') ? $view_topic_url . '?view=unread#unread' : $view_topic_url, |
|
_________________ Dan Kehn |
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
Posted: Thu Feb 21, 2008 10:46 am Post subject: Re: View or Mark Unread Posts MOD -> not found error |
|
|
Final fix would be to first make sure the question mark is not already present in the viewtopic url.
| Code: | | 'U_VIEW_TOPIC' => $view_topic_url . ($search_id == 'unread' ? (strpos($view_topic_url, '?') !== false ? '?' : '&') . 'view=unread#unread' : ''), |
Just in case
++ |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |