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.

Arantor

SMF official site isn't watching it. It's a by-product of how the search dropdown works, not an intentional thing.

Here's a hint of why this doesn't work, do a search on something common. Now go to page 2 and look at the URL you get. Something along the lines of index.php?action=search2;params=eJwtzDEOgCAMheG7uLg6eR0CpQYNUFNQY9LD2xq2_33D8_H2FTDKLItMEthqtWyJHgdUzowdFY2ucCB0RzW_Q4i7FmPG_2eQizsrR2xggp4h6W5l-wClfCxC;start=20

It just doesn't work. And that's from this site.

Kindred

we are not "watching"

It is simply a side effect of something we did to enhance search on this site...
Сл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."

MESWEB

Quote from: ‽ on July 12, 2014, 03:30:36 PM
SMF official site isn't watching it. It's a by-product of how the search dropdown works, not an intentional thing.

Here's a hint of why this doesn't work, do a search on something common. Now go to page 2 and look at the URL you get. Something along the lines of index.php?action=search2;params=eJwtzDEOgCAMheG7uLg6eR0CpQYNUFNQY9LD2xq2_33D8_H2FTDKLItMEthqtWyJHgdUzowdFY2ucCB0RzW_Q4i7FmPG_2eQizsrR2xggp4h6W5l-wClfCxC;start=20

It just doesn't work. And that's from this site.

I don't want see values from second searching page. I WANT SEE WORDS TYPING TO SEARCHING FIELD - just only this, no more. You are don't understand something or You are not smart?

Quote from: Kindred on July 12, 2014, 03:33:19 PM
we are not "watching"

Yeah sure  :laugh:
PIWIK + "search="(value) = IP + time + URL search with words. Don't tell me is this not true.

Arantor

It's not true. SMF doesn't use Piwik analysis here. In any case, the whole nature of the way search works means trying to analyse it is not useful as we tried to tell you.

MESWEB

PIWIK is not only one Analytics app there is more and more like Google Analytics, WebAlizer, Serwer Logs and other. If something is not useful then it is not used. So if the parameter "search=" is not useful then why is on official site SMF? Just turn off - because this is Interference with the right policies.

Quote from: ‽ on July 12, 2014, 03:53:53 PM
It's not true. SMF doesn't use Piwik analysis here.

Do You have any evidence to not "using" PIWIK or any Analytics? So I do not believe your words

Adrek

Kurde, nie rozumiesz tego, że to jest efekt uboczny modyfikacji działających na tej stronie? Są to modyfikacje napisane specjalnie dla forum simplemachines.org i nie mogą być publicznie dostępne. Nie szukaj dziury w całym...
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Arantor

QuoteSo if the parameter "search=" is not useful then why is on official site SMF? Just turn off - because this is Interference with the right policies.

Because as we have told you, it is simply a by product of the way the mod works. It is not nearly the big deal you make it out to be, especially since the search information if it isn't in the URL is sent in other ways that any analytics could pick up if they wanted to.

QuoteDo You have any evidence to not "using" PIWIK or any Analytics? So I do not believe your words

Aside from no references in the source to Piwik's tracker, the fact that I'm ex-dev team of SMF and know better than most people about what's going on in the source...? I don't especially appreciate being called a liar by someone who has no understanding of the subject at hand.

Of course I could get any of the project managers here to tell you the same thing and you wouldn't believe them either.

MESWEB

Quote from: phantomm on July 12, 2014, 04:09:12 PM
Kurde, nie rozumiesz tego, że to jest efekt uboczny modyfikacji działających na tej stronie? Są to modyfikacje napisane specjalnie dla forum simplemachines.org i nie mogą być publicznie dostępne. Nie szukaj dziury w całym...

I understand perfectly. I'm not looking for holes throughout. I just want to know why I'm spied and why I can't myself to spying? A side effect of the mod is the explanation of a child with school! It's like the question of a policeman - why do you use weapons? I answer: Because it is a side effect of a large amount of money.  :laugh: :laugh: :laugh:. @ phantomm - better if You use English.

Arantor

You're not being spied upon, simple as that!

MESWEB

Quote from: ‽ on July 12, 2014, 04:24:34 PM
You're not being spied upon, simple as that!

As I said before, I do not believe your words.
This site is don't using https:// and this connection is not encrypted. NSA is watching me :)

Arantor

And you really think cloaking your search terms is going to make a difference? Hint: it's still passed through the form normally when you submit. It must still be going to the server.

SMF isn't spying on you, which is what I've been saying all along.

But if you don't believe me, who will you believe? Answer: no-one. Because no matter what evidence you're provided with, you're never going to believe it.

If you're bothered by being spied upon, why are you even here hassling people with your ill-informed opinions?

Adrek

Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Kindred

 Arantor has already explained the details and I, as project manager for the software and Vice President of the corporation have made a statement confirming that.   That is the truth. Plain and simple.


you can believe whatever you want...  But your believe does not make anything actually true... If just means that you are believing in something untrue.
Сл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."

kat

If you use the internet, you're being watched, whatever your government tells you.

SMF isn't watching you, at all, because, to put it in simple terms, we don't care! :)

Think about it... Why the Hell would we WANT to watch you?

MESWEB

Quote from: K@ on July 12, 2014, 05:11:18 PM
Think about it... Why the Hell would we WANT to watch you?

Better if You ask me - Why the Hell would we don't publish mod which one creating searching words URL?

Quote from: phantomm on July 12, 2014, 04:42:51 PM

Arantor

Despite the fact that the mod is useless to most people because it explicitly ties into site architecture that most users don't have... that's why it isn't published.

I think it's hilarious that we've gone from you wanting to do this, to you complaining that we're doing this as though it's a bad thing. It's not a good thing or a bad thing, it's just a thing.

I suggest the moderators lock this thread, it's not going anywhere good.

Kindred

Agreed.  Asked, answered and beat into the ground...
Сл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."

Advertisement: