Page 1 of 1

Search Plugins

Posted: Sun Oct 28, 2007 1:20 am
by Sobuno
Just something I stumbled upon and thought "Why not?":

Search Plugins are the little search box in the right corner (in IE and FF) which you can usually use to search Google (Or Live Search). You can now use it to search our Schematics (Only by name though).

Steps to add our Search plugin:

IE:
1) Go to http://www.swgcraft.co.uk/dev/home.php
2) Press the arrow pointing downwards to the right of the search box
3) "Add Search Providers"
4) SWGCraft Schematics should be listed, click it and you are now able to search the schematics

FF:
1) Go to http://www.swgcraft.co.uk/dev/home.php
2) Press the icon to the left of the search box
3) An option for adding 'SWGCraft Schematics' should be available, click it and you are now able to search the schematics

-Sobuno

Posted: Sun Oct 28, 2007 5:11 am
by Jhaerel
Ok, that's downright cool!

I'm using it in Firefox on Ubuntu, and it seems to work flawlessly.

With that in mind, where is the place to mention missing schematics? I just noticed that Battle Droid and Droideka are not in the list :P

Jh

Posted: Sun Oct 28, 2007 9:48 am
by Zimoon
How cool is that? :D

Works flawlessly, FF on Win XP.

/Z

Posted: Sun Oct 28, 2007 10:51 am
by Sobuno
Jhaerel wrote: With that in mind, where is the place to mention missing schematics? I just noticed that Battle Droid and Droideka are not in the list :P
http://www.swgcraft.co.uk/forums/viewtopic.php?t=229

Re: Search Plugins

Posted: Wed May 07, 2008 5:20 pm
by Sobuno
You should now be able to search the resources the same way with another search plugin.

Steps to add a Resource Search plugin for your server:

IE:
1) Go to http://www.swgcraft.co.uk/dev/find_resources.php
2) Select your server from the list and press "Find Resources"
3) Press the arrow pointing downwards to the right of the search box
4) "Add Search Providers"
5) SWGCraft Resources - server_name should be listed, click it and you are now able to search the resources for your server

FF:
1) Go to http://www.swgcraft.co.uk/dev/find_resources.php
2) Select your server from the list and press "Find Resources"
3) Press the icon to the left of the search box
3) An option for adding 'SWGCraft Resources - server_name ' should be available, click it and you are now able to search the resources for your server

-Sobuno

Re: Search Plugins

Posted: Wed May 07, 2008 6:39 pm
by Rommel
I have a couple bookmarklets also...

For searching resources, change the server number to your server
javascript:q = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt(%22Search Term:%22, %22%22); if (q!=null)void(open(%22http://www.swgcraft.co.uk/dev/find_resources.php?class=&server=2&name=%22 + escape(q))); void 0
For searching Schematics
javascript:q = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt(%22Search Term:%22, %22%22); if (q!=null)void(open(%22http://www.swgcraft.co.uk/dev/schematics.php?c=%22 + escape(q))); void 0
To make these create a bookmark and put this code in for the address.
To use these press the bookmark and enter a term OR highlight a term and press the bookmark

Re: Search Plugins

Posted: Wed May 07, 2008 8:20 pm
by Zimoon
WOW, these are really cool, the bookmarklets are super cool.

I have one question though, but that is for the old schematics search:

I now used the word 'battery' and nothing showed up. Droid batteries are indeed named A Droid Battery and the camp batteries something else. Is it possible to use the search as *theword*, or the regular expression would be .*theword.*, you think?

/Zimoon

Re: Search Plugins

Posted: Wed May 07, 2008 8:32 pm
by Sobuno
Zimoon wrote:WOW, these are really cool, the bookmarklets are super cool.

I have one question though, but that is for the old schematics search:

I now used the word 'battery' and nothing showed up. Droid batteries are indeed named A Droid Battery and the camp batteries something else. Is it possible to use the search as *theword*, or the regular expression would be .*theword.*, you think?

/Zimoon
I think you should try it out :P

*Deed*House* :D

Re: Search Plugins

Posted: Wed May 07, 2008 8:44 pm
by Zimoon
Sobuno wrote:
Zimoon wrote:WOW, these are really cool, the bookmarklets are super cool.

I have one question though, but that is for the old schematics search:

I now used the word 'battery' and nothing showed up. Droid batteries are indeed named A Droid Battery and the camp batteries something else. Is it possible to use the search as *theword*, or the regular expression would be .*theword.*, you think?

/Zimoon
I think you should try it out :P

*Deed*House* :D
Aha, I had to add the ** myself, I see, cool.

Typing 'bat' in the resource search rendered 13 hits though (Gorath) ;)

/Z

Re: Search Plugins

Posted: Wed May 07, 2008 9:02 pm
by Sobuno
Zimoon wrote: Typing 'bat' in the resource search rendered 13 hits though (Gorath) ;)

/Z
Yeah, it searches like the normal Find Resources (<input>*). In fact, this is what it does:

Code: Select all

http://www.swgcraft.co.uk/dev/find_resources.php?name={searchTerms}&server=x

Re: Search Plugins

Posted: Tue Sep 22, 2009 10:27 pm
by dharh
Please add it so Class in find_resources.php excepts name when doing a search such that:

http://www.swgcraft.org/dev/find_resour ... 1&planet=0

will find all aluminum type of resources. Otherwise trying to search for aluminum via name nets 0 results.

Re: Search Plugins

Posted: Wed Sep 23, 2009 11:17 am
by Zimoon
dharh wrote:Please add it so Class in find_resources.php excepts name when doing a search such that:

http://www.swgcraft.org/dev/find_resour ... 1&planet=0

will find all aluminum type of resources. Otherwise trying to search for aluminum via name nets 0 results.
I am not a developer here but please elaborate on what the problem is. What do you want to achieve? What is not working?

The link you provided gives long lists of aluminum at Ahazi so I assume you mean something else.

Cheers
/Zimoon

Re: Search Plugins

Posted: Wed Sep 23, 2009 12:55 pm
by dharh
The link I provided does not give Aluminum. Its actually the full list of every resource ever.

I basically want to be able to type in class of what im looking for (mineral, low-grade ore, aluminum, carbonate) instead of the random name given to the resource for that particular shift.

Re: Search Plugins

Posted: Wed Sep 23, 2009 9:46 pm
by Zimoon
/slap self

Of course, I see that now. And I also noticed that this thread is about Search Plugins. A necroed thread but nevertheless.

Sorry for my noise 8)

/Zimoon

Re: Search Plugins

Posted: Sat Jul 28, 2012 11:31 am
by er3njcv9b
I like to say ty to Sobuno anyone that keeping SWGCraft.co.uk/forums going



--------------------------

Sac Longchamp Pas Cher