newposts not working

phpBB2 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting categories, forums and topic titles in their URLs.

Moderator: Moderators

newposts not working

Postby CvH » Thu Feb 01, 2007 9:21 pm

Hi, im new to phpbb-seo but it works great till i found this glitch

my problem is that "search.php?search_id=newposts" shows the last posts

-http://sub.url.com/topic-titel-t1234.html&view=newest

the &view=newest scrolls to the last unread post

but it dont works , if i click on the link i get an 404 :/

any suggestions ? :)
CvH
 
Posts: 5
Joined: Thu Feb 01, 2007 6:59 pm

Advertisement

Postby dcz » Thu Feb 01, 2007 11:17 pm

Are you using 0.2.0 ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby CvH » Fri Feb 02, 2007 12:07 am

"adv_mod_rewriteV0-2-0.zip"

dubble checked the install seems to be ok

btw im using Orion (premodded phpBB)
CvH
 
Posts: 5
Joined: Thu Feb 01, 2007 6:59 pm

Postby dcz » Fri Feb 02, 2007 12:14 am

All right, the search.php file would have been modified then.

So it looks like the &view=newest par was not passed through append_sid in search.php.

Try opening search.php, and look for :

Code: Select all
view=newest


Each time you find a match, post the complete line of code here.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby CvH » Fri Feb 02, 2007 12:22 am

2x
Code: Select all
$newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> ';



Code: Select all
   if(empty($newest_post_img))
        {
        $or_append = '';
        }
        else
        {
        $or_append = '&view=newest';
        }


if u prefer the full source
http://www.mycvh.de/search.zip

tx for help
CvH
 
Posts: 5
Joined: Thu Feb 01, 2007 6:59 pm

Postby dcz » Fri Feb 02, 2007 12:42 am

So this is because of this part :

Code: Select all
        $or_append = '&view=newest';


Param is added out of append_sid().

You should fix this if you find :

Code: Select all
               'U_VIEW_TOPIC' => $topic_url . $or_append)


Replace with :

Code: Select all
               'U_VIEW_TOPIC' => preg_replace("/\.html(&|&amp;)/", ".html?", $topic_url . $or_append))


;)

++
Last edited by dcz on Sat Feb 03, 2007 3:23 pm, edited 1 time in total.
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby CvH » Sat Feb 03, 2007 1:40 pm

seems like an syntax problem

sorry i cant fix it my selfe :cry:

Parse error: syntax error, unexpected T_ECHO in /search.php on line 1480
CvH
 
Posts: 5
Joined: Thu Feb 01, 2007 6:59 pm

Postby dcz » Sat Feb 03, 2007 3:24 pm

Well sorry for this, an echo just got pasted in the line by mistake.

I updated the above post ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby CvH » Sat Feb 03, 2007 5:33 pm

tx work great :)

with this adjustments (+ SimpleSubforum Patch) Orion 2.3.7 seems to work flawless.

Thanks !!
CvH
 
Posts: 5
Joined: Thu Feb 01, 2007 6:59 pm


Return to phpBB2 Advanced mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests