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  
 
   
Search Bug in 3.0.1 toolkit

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
::  
Author Message
pacorl



Joined: 01 May 2008
Posts: 2

Search Bug in 3.0.1 toolkitPosted: Thu May 01, 2008 5:47 pm    Post subject: Search Bug in 3.0.1 toolkit

I'm using phpBB3-SEO-Premod_V_3-0-1.zip , and I've notice an strange error in searches (pagination).

If I search for example "wing tsun kuen", the second page, the third, etc, looks like this:

-http://myforum.com/foros/search.php?st=0&sk=t&sd=d&keywords=wing+tsun+kuen&start=15

But if the search is a word that finish in "A" key, for example "mercedes mila", the first page appears OK, but the pagination is wrong, because look like this:

-http://myforum.com/foros/search.php?st=0&sk=t&sd=d&keywords=mercedes+mil&start=15

This is, the last "A" dissappear, and search is wrong (not coincidences).

If I search "taekwondoka", the "A" dissappear:

-http://myforum.com/foros/search.php?st=0&sk=t&sd=d&keywords=taekwondok&start=15

Shocked Shocked Shocked Shocked Shocked Shocked Shocked

A solution, please!

ps. If I replace search.php with de phpbb original one, it search works ok.
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3103

Search Bug in 3.0.1 toolkitPosted: Fri May 02, 2008 1:49 pm    Post subject: Re: Search Bug in 3.0.1 toolkit

Now this is an interesting bug Shocked

I could reproduce it and found the reason.

The guilty line is :
Code:
   $u_search = trim($u_search, '&');


For some obscure reasons, trim() does delete the ending 'a' where we ask it do delete '&'. The fix is simple, replace the above line with :

Code:
   $u_search = preg_replace('`(^&|&$)`i', '', $u_search);


http://phpbb3.phpbb-seo.net/search.php?st=0&sk=t&sd=d&keywords=maya

Thanks for reporting, will be added to next update Wink

_________________
Back to top
pacorl



Joined: 01 May 2008
Posts: 2

Search Bug in 3.0.1 toolkitPosted: Fri May 02, 2008 7:36 pm    Post subject: Re: Search Bug in 3.0.1 toolkit

Works! , thank you Very Happy Very Happy Very Happy

ps. For people that read this post, the file to modify is search.php Wink
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
Page 1 of 1

Navigation Similar Topics

Jump to: