OpenSearch Forum Search (Google powered Solution)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

OpenSearch Forum Search (Google powered Solution)

Post by Rescator »

Hey Fred could you add this to the purebasic server? (name it forumsearch.xml )

Code: Select all

<?xml version="1.0"?>
<?xml version="1.0"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>PureBasic Forum (EN)</ShortName>
<Description>Search PureBasic Forum</Description>
<Tags>PureBasic</Tags>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">http://purebasic.com/favicon.ico</Image>
<Url type="application/x-suggestions+json" method="GET" template="http://suggestqueries.google.com/complete/search?q=site:purebasic.fr%2Fenglish%2F {searchTerms}"/>
<Url type="text/html" method="GET" template="http://google.com/search?sitesearch=purebasic.fr%2Fenglish%2F&q={searchTerms}"/>
</OpenSearchDescription>
And then add this to the <head></head> section of the website (and forum) layout?

Code: Select all

<link rel="search" type="application/opensearchdescription+xml" title="PureBasic Forum" href="http://purebasic.com/forumsearch.xml"/>
And then one of these as a link on the website and possibly on top of forum (not sure which is the best way really):

Code: Select all

<a onclick="window.external.AddSearchProvider('http://purebasic.com/forumsearch.xml')" href="javascript:void(0)">Install PureBasic Forum OpenSearch</a>
<a href="#" onclick="window.external.AddSearchProvider('http://purebasic.com/forumsearch.xml')">Install PureBasic Forum OpenSearch</a>
Now we folks only need to choose "PureBasic Forum" as the search in the search box of the browser.
And say you search for info on rc4 this is what the result will look like:
http://www.google.com/search?hl=en&site ... rfai=&src=

The search should be pretty up to date, Google is popping by pretty much daily all the time here o the forum so...

This is a quick nice way to add proper search. The best way would be the custom site search by Google, but that requires a account and more elaborate setup,
so this little trick is way faster to implement with almost the same result, ad in any case better than the forum's built in search.

For those who can't wait to use this the search plugin is also available at https://addons.mozilla.org/en-US/firefox/addon/155820
Firefox, IE7+ and Chrome support this, just click to install it. (opera users, please kick Opera in the rear :P )
It's currently in the sandbox an under review, no idea how long that takes, so until it's fully public you may have to log in at mozilla (at worst you'll have to make an account if you do not have one) it's part of their security standard to make sure nothing nasty is snuck into your browser.
Last edited by Rescator on Tue Apr 27, 2010 10:29 pm, edited 2 times in total.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: OpenSearch Forum Search (Google powered Solution)

Post by rsts »

No offence intended but I'd rather use
searchArgument site:http://www.purebasic.fr/english/
and let Fred develop PB code.

cheers
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Re: OpenSearch Forum Search (Google powered Solution)

Post by Rescator »

Which is exactly the same as that above, only it allows people to "single click" add it to the browser search plugin field.

The code above is copy and paste basically, so what this has to do with Fred developing PureBasic I have no idea.

I can only assume you have no idea what the search field is or how it works or how to add new search "plugins" to them? The above is how!

I provided a Google powered solution above, It's up to Fred if he likes this idea or not and if he does he does not need to edit a single line of code above.
It's only if he needs to change the path or use a different search engine behind that some editing is needed.

Anyway, updated the first post, as now the search plugin is also available at https://addons.mozilla.org/en-US/firefox/addon/155820
Firefox, IE7+ and Chrome support this, just click to install it. (opera users, please kick Opera in the rear :P )
It's currently in the sandbox an under review, no idea how long that takes.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: OpenSearch Forum Search (Google powered Solution)

Post by rsts »

Rescator wrote: The code above is copy and paste basically, so what this has to do with Fred developing PureBasic I have no idea.

I can only assume you have no idea what the search field is or how it works or how to add new search "plugins" to them? The above is how!
If you will look again at your original request, it was directed to Fred. Now do you have any idea who develops PureBasic?

In other words, as I replied, "No offense intended", but I'd rather not have Fred waste his time on matters such as this, and rather do what he does best - develop Purebasic. Sorry if you took offfense. I thought we were allowed to comment on feature requests.

cheers
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Re: OpenSearch Forum Search (Google powered Solution)

Post by Rescator »

rsts wrote:
Rescator wrote: The code above is copy and paste basically, so what this has to do with Fred developing PureBasic I have no idea.

I can only assume you have no idea what the search field is or how it works or how to add new search "plugins" to them? The above is how!
If you will look again at your original request, it was directed to Fred. Now do you have any idea who develops PureBasic?

In other words, as I replied, "No offense intended", but I'd rather not have Fred waste his time on matters such as this, and rather do what he does best - develop Purebasic. Sorry if you took offfense. I thought we were allowed to comment on feature requests.

cheers
It's Fred who mainly develops PureBasic, I thought you knew that?

Besides. I did not scream "NOW" like a darn tween.

And it's not like this would have taken more than what...5 min or less to add.

It's perfectly fine to respond to feature requests.
But "no point" like replies are not constructive. You effectively said that my request was useless and Fred should get his ass back to coding.
I'm not sure if that was your intention, but it easily looks that way.

I was expecting (from Fred or Freak) a response like "Nice Idea, we'll think about it" or "We'll see about it in the future" "Not likely, but we'll see" or simply no response at all which is also perfectly valid.
In fact, more often than not the PureBasic team will respond when they do NOT intend to do certain features to avoid people asking about it again and again.

You on the other hand responded without stating why this feature is a bad idea,
in fact you even seem to indicate you are already doing something similar.
And you are basically teabagging Fred from answering or anyone else that might want to request features since in your mind it is pointless for Fred to do anything else besides develop PureBasic. (the language or the compiler, is the IDE or the libs pointless, is this forum pointless, see where I'm going with this?)

And as to why I addressed Fred? He basically "is" PureBasic and Fantaise, sure Freak does a tremendous amount of work and others help now and again too, now if Freak where to add a feature I'd be fine with that too, the guy's got some mad skills and the brain to match.
I usually try to reference both Fred and Freak, other times I may state The Team, other times just one of them, that does not mean I think any less of Freak, it's just that (and I'm guessing most here think the same) that when we think of PureBasic we automatically associate that with...Fred.

Anyway!
Unless you have some constructive criticism as to why this forum/site feature request in the first post of this thread is a bad idea, or unless you have a better idea...please refrain from deciding what Fred should or should not do.

You where clearly upset about a "feature request, with ready made drop in code" that I in no way screamed had to be added.
If that is how you react to that, I'd hate to see how you react to more extensive things that would literally take both Fred and Freak weeks or even months to add.

Btw! Starting a post with that clearly shows you thought your post could be interpreted as such so why not reformulate at once, No Offense is usually when someone are done writing and realize that "oops, that could be construed as offensive"

No offense intended.
Last edited by Rescator on Thu Apr 29, 2010 12:33 am, edited 2 times in total.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: OpenSearch Forum Search (Google powered Solution)

Post by rsts »

Rescator wrote: "And it's not like this would have taken more than what...5 min or less to add."

Guess you don't know much about the real world - NOTHING takes 5 minutes, if you want to do it correctly.

"You on the other hand responded without stating why this feature is a bad idea,
in fact you even seem to indicate you are already doing something similar."

I pointed out why I thought it was a bad idea, because it can easily be accomplished without ANY intervention by the PureBasic team.

"Anyway!
Unless you have some constructive criticism as to why this forum/site feature request in the first post of this thread is a bad idea, or unless you have a better idea...please refrain from deciding what Fred should or should not do."

Oh, leave that to you? I merely offered an alternative to them wasting valuable development time on unneeded "features".

"No offense intended."
None Taken :D

cheers
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Re: OpenSearch Forum Search (Google powered Solution)

Post by Rescator »

rsts wrote:
Rescator wrote: "And it's not like this would have taken more than what...5 min or less to add."
Guess you don't know much about the real world - NOTHING takes 5 minutes, if you want to do it correctly.
I have great faith in Fred's mastery of The Force.
rsts wrote:
Rescator wrote:"You on the other hand responded without stating why this feature is a bad idea,
in fact you even seem to indicate you are already doing something similar."
I pointed out why I thought it was a bad idea, because it can easily be accomplished without ANY intervention by the PureBasic team.
Yes and No!
If you've noticed the post in the app/announcements section (or the url at the end of the first post here) you'll see I just did that.
But, the autodiscovery of the OpenSource plugin is no longer possible, the autodiscovery "could" link to the AMO hosted url, but someone would have to update the url if ever a new version/update is made.
By implementing it as explained in the first post, a quick edit no such changes would be needed. (as the url would be static)
Not only that, a quick copy and paste would allow a FR and DE variant as well. (I have no plans of doing that as I only use the English forum anyway, although the OpenSearch standard do support multiple urls in the same plugin, just not sure if they are selectable or can be language hinted so easily.)
rsts wrote:
Rescator wrote:"Anyway!
Unless you have some constructive criticism as to why this forum/site feature request in the first post of this thread is a bad idea, or unless you have a better idea...please refrain from deciding what Fred should or should not do."
Oh, leave that to you? I merely offered an alternative to them wasting valuable development time on unneeded "features".
Oh hell no! If I tried to tell Fred what to do (or what is unneeded) he'd beat me to a bloody pulp for sure. He may not look it, but Fred is a mean bastard when he needs to be! *laughs*
rsts wrote:
Rescator wrote:"No offense intended."
None Taken :D
:P
Last edited by Rescator on Thu Apr 29, 2010 12:51 am, edited 2 times in total.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: OpenSearch Forum Search (Google powered Solution)

Post by rsts »

Great.

Still friends? (hugs)

cheers
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Re: OpenSearch Forum Search (Google powered Solution)

Post by Rescator »

Why wouldn't we be? A lil' bitch slapping never hurt anyone. ;P
Post Reply