News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Display search keyword in URL

Started by MESWEB, July 06, 2014, 05:13:09 AM

Previous topic - Next topic

MESWEB

on my forum

i tried to search this word >>>> Help <<<

search url comes up as

http://www.sitename.com/index.php?action=search2

i would like it to appear as

http://www.sitename.com/index.php?action=search2;search=Help

kat


MESWEB


Why? Coz I want to know what users searching on my forum. How I to know what users typing in "search field"?

kat

How will changing the URL do that, out of curiosity?

That aside, the SMF search function's not terribly good. A lot of people use Google's Site Search, instead.

MESWEB

That is needed an option because sometimes the user is looking at my side and not on google. On simplemachines.org website, there is an option where
Quote?action=search2;search=any+words
. So question is - How to do it on my website? If this is secret don't tell me and keep to Yourself. Thanks.

Illori

that is due to a mod here with the search on each page. the default search does not have this feature and in the past this has been a cause for attacks on the server.

mashby

Illori, do you know which mod it is?
Always be a little kinder than necessary.
- James M. Barrie

MESWEB

Quote from: Illori on July 06, 2014, 12:11:16 PM
the default search does not have this feature and in the past this has been a cause for attacks on the server.

So why simplemachines.org using
Quote?action=search2;search=
if this " has been a cause for attacks on the server"? I don't understand Your answer. It's no logic, if really this have been the cause of the attacks then simplemachines.org did not use this option to. But simple is using this.

Illori

Quote from: mashby on July 06, 2014, 12:47:11 PM
Illori, do you know which mod it is?

the version we use is not available to the public.

Adrek

MESWEB, you know that this will not log any keywords that your users are searching on your forum?
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

MESWEB

Quote from: Illori on July 06, 2014, 12:56:10 PM
Quote from: mashby on July 06, 2014, 12:47:11 PM
Illori, do you know which mod it is?

the version we use is not available to the public.

I know it. :) Just Secret and no one can using this parameters.

Quote from: phantomm on July 06, 2014, 12:58:05 PM
MESWEB, you know that this will not log any keywords that your users are searching on your forum?

Yes I know it but I have other option to see this :)
Any way MyBB have mod to save searched words in database.

MESWEB

Quote from: mashby on July 06, 2014, 12:47:11 PM
Illori, do you know which mod it is?

Search Focus Dropdown mod which changes things.

Illori

that is not the exact same mod we use here.

MESWEB

I found a clue. If You try this:
Quoteyoursite.com/index.php?action=search2;search=(something)

Replace (something) any words
It's works!

MESWEB


Illori


Kindred

If you tracked this crap in the database, your database would quickly exceed any limits that your host allows.   Seriously, that is a pointless thing to track, IMO... And really a waste if space to track in your database.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mashby

I agree with that...no need to store that crap in the database. So, why does SMF here have that in the URL string? I can see it being useful in something like Google Analytics where you can setup looking for search="CRAP". :)
Always be a little kinder than necessary.
- James M. Barrie

Arantor

SMF has it here in the URL due to the way the mod passes things to the search handler.

Passing everything via the URL itself is actually a terribly bad idea if, say, people want to search individual boards (or use the advanced search for all boards) because then you'd have the URL full of brd[]=1;brd[]=2;brd[]=3;brd[]=4 etc entries and that's why it's compressed into the URL the way it is because on some sites the list would be too long for IE to handle (as IE only used to allow 2083 characters for a URL)

Seeing what people are searching for on the site search tends to be less-than-helpful, especially when you consider that one person is likely to perform several searches if their first one doesn't yield anything useful, so you're not just cross-referencing what people are searching but also who and when, which suddenly changes the game on all kinds of levels (not least privacy-reaching ones)

MESWEB

Quote from: ‽ on July 07, 2014, 04:45:35 PM
Seeing what people are searching for on the site search tends to be less-than-helpful, especially when you consider that one person is likely to perform several searches if their first one doesn't yield anything useful, so you're not just cross-referencing what people are searching but also who and when, which suddenly changes the game on all kinds of levels (not least privacy-reaching ones)

So why official SMF site watching what people are searching? It is not fair. If I can not use "search =" why you can? This is probably incompatible with the privacy policy.

Advertisement: