News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[4275]Search not showing up 2nd page

Started by flapjack, March 15, 2010, 08:02:00 PM

Previous topic - Next topic

AncientDragonfly

Quote from: Arantor on March 29, 2010, 06:29:54 PM
You're just special.

I know that, but thanks anyway.    ;D

Quote
It doesn't work when I try that.

That's what I'm getting with Core.  My other post was my result with Curve.

Arantor

Holder of controversial views, all of which my own.


AncientDragonfly

Quote from: Arantor on March 29, 2010, 06:37:27 PM
I tried it with Core!

So sorry!  Maybe it is an intermittent thing?

(Darn you, Arantor, you're turning me into a forum spammer now too!  lol.)

butchs

Hey didn't I complain about the search the other week and was told it was working fine?  My feeling is hurt.   :P

Quote from: AncientDragonfly on March 29, 2010, 06:39:58 PM
Quote from: Arantor on March 29, 2010, 06:37:27 PM
I tried it with Core!

So sorry!  Maybe it is an intermittent thing?

(Darn you, Arantor, you're turning me into a forum spammer now too!  lol.)

Do not make me put yall on the spam list.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

cutelover007


http://gupshupclub.cz.cc" title="GUPSHUP CLUB" target="_blank">






www.gupshupclub.cz.cc

Brettflan

There is a related problem with searching for posts by members with a space in their name, as reported here:
http://www.simplemachines.org/community/index.php?topic=375016.msg2573774#msg2573774


A workaround fix for both problems is to replace this line in /Sources/Search.php:
$temp_params = explode('|"|', strtr((!empty($temp_params2) ? $temp_params2 : $temp_params), array(' ' => '+')));
with this:
$temp_params = explode('|"|', (!empty($temp_params2) ? $temp_params2 : $temp_params));

However, I expect there was some reason that character replacement (' ' => '+') was added in the first place, so there could well be repercussions to my workaround. Use it at your own risk, though it seems to work fine for me.

cutelover007

wow.,,,you are too genius ...hmmmm and there are also many genius in this website....i am happy to be a member of smf....


http://gupshupclub.cz.cc" title="GUPSHUP CLUB" target="_blank">






www.gupshupclub.cz.cc

AncientDragonfly

Quote from: Brettflan on April 08, 2010, 09:46:33 PM
There is a related problem with searching for posts by members with a space in their name, as reported here:
http://www.simplemachines.org/community/index.php?topic=375016.msg2573774#msg2573774


A workaround fix for both problems is to replace this line in /Sources/Search.php:
$temp_params = explode('|"|', strtr((!empty($temp_params2) ? $temp_params2 : $temp_params), array(' ' => '+')));
with this:
$temp_params = explode('|"|', (!empty($temp_params2) ? $temp_params2 : $temp_params));

However, I expect there was some reason that character replacement (' ' => '+') was added in the first place, so there could well be repercussions to my workaround. Use it at your own risk, though it seems to work fine for me.

Thank you very much, Brettflan!

Norv

To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

gevv

ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

gevv

Hello

Show new posts on this solution. It could not be part affect?

sample;


or;

ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

qwerty2013

#31
It doesn't work for me!!! :(

Still has one page of search result

Can you help me?

Brettflan

#32
Quote from: qwerty2013 on October 01, 2010, 06:36:11 AM
It doesn't work for me!!! :(

Still has one page of search result

Can you help me?

By "one page of search result", do you mean you're only getting one page worth of results shown, or that the links to further pages (2, 3, etc.) don't work correctly? If the latter, did you try my workaround above?


gevv: sorry, I missed your post before now. You're asking if that workaround in Search.php could cause incorrect number of posts showing up using the "unread posts" feature? I don't see how it could based on the nature of the change and the specific location (only in the Search function code); anything's possible, though.

qwerty2013

QuoteBy "one page of search result", do you mean you're only getting one page worth of results shown, or that the links to further pages (2, 3, etc.) don't work correctly? If the latter, did you try my workaround above?

Yes! I'm getting one page worth of results shown... And the links not shown up to further pages (2, 3, etc.)...I dont see them. :-\

Also I did your workaround above!
==========================
I use SMF 2.0 RC3

Please see my screenshot:

Brettflan

Quote from: qwerty2013 on October 02, 2010, 06:02:08 AM
Yes! I'm getting one page worth of results shown... And the links not shown up to further pages (2, 3, etc.)...I dont see them. :-\

In that case, you're encountering an entirely different problem if it indeed is a problem. The problem addressed in this topic is to do with the additional page links (2, 3, etc.) being shown but not working due to a problem with space characters (" ") in the search terms being wrongly encoded.

Advertisement: