View Full Version : Spell Search
Shike019
Jul 12th, '06, 12:41 PM
OK, I'm posting here as I figure that this is the place to get the most use out of it. I have created a MySQL Database and PHP program to search spells (http://shike.frih.net/hero/fantasy/spells.php). I currently only have one spell, but will be adding to it. Also on my website there is a submission form if anyone wants to contribute.
My website is http://shike.frih.net There is a link to the spell search in the update "blog". Also, you can navigate to it via the menu's (my website has browser support information for the menus.
So please, if anyone wants to contribute, click the "Submission Form" (http://shike.frih.net/submit.html) link on my website.
Curufea
Jul 12th, '06, 05:00 PM
Are you able to convert the webpage collections that others have created? Such as the Treasure Trove and Grimoire?
http://hiddenway.tripod.com/hero/
http://www.geocities.com/markdoc.geo/Gaming_stuff/Grimoire/the_ultimate_grimoire.htm
Shike019
Jul 12th, '06, 05:53 PM
I was actually planning on asking that very question, especiall of Killer Shrike and Fitz. Of course all spells would have their creator's (or adapter's) name(s).
If anyone wants to get a feel for the search interface. Use the D&D version *ducks head* as it has more spells (inputing the SRD). This way you can get a feel for the capabilities of the search.
BTW: I'm still figuring out how to do multiple pages of results, so I currently have the limit set at 2000 ;)
Curufea
Jul 12th, '06, 06:08 PM
I'm not very familiar with SQL, unfortunately - tending always to use other's code for databases rather than writing my own (such as for the open lending database (http://www.curufea.dreamhosters.com/phptest/opendb/login.php) for my DVDs and things). So I don't know how to return results from 2000 - end or whatever in a PHP page.
On the other hand, the database I just mentioned does do multiple pages, so I'll have a look at that :)
http://opendb.iamvegan.net/
Shike019
Jul 12th, '06, 07:12 PM
Curufea
Problem. PHP is a server side scripting language. Which means, the actual script doesn't get outputted to the browser (like javascript) Just the finished product.
Curufea
Jul 12th, '06, 07:22 PM
Yep. But it's installed on my site and I have the source code. Likewise as it's open source - it's available from that second link I posted (if you wished to have a look yourself).
I just had a look and I need to upgrade my version anyway, so will be patching it.
Shike019
Jul 12th, '06, 07:42 PM
The main reason I have a problem with it is, I have the ability to have a qute complicated search and don't know how to build the url for the next and previous pages.
Curufea
Jul 12th, '06, 08:30 PM
Make it a form post to the page (ie to itself).
Create a "list" page for the spells that defines which ones to show with variables (and also prints out the list), then have a prior and next link that submits a form to that page which changes the variables incrementally.
OpenDB does this in a simpler manner by calling javascript functions with links (ie <a href="javascript: procedure(variables)">link name</a>) and the form is actually submitted in the javascript procedure.
Shike019
Jul 12th, '06, 10:18 PM
I'll play around with it. But as of now, I'll keep it with all results on one page.
As a side note. If you want to experiment with search terms, use the [url=http://shike.frih.net/dnd/spells.php"]D&D Spell Search[url] (which has 52 spells in it).
I'll start working on Hero Spells shortly.
Curufea
Jul 13th, '06, 12:24 AM
Nice! Reminds me of our Advanced Search at work (http://librariesaustralia.nla.gov.au)
(unfortunately only the basic is available to non-subscribers)
We've yet to get boolean working within a single line correctly :(
Shike019
Jul 15th, '06, 09:52 AM
Currfea, I actually based it off of the Voyager Online Catalog combined witht he Proquest Database Advanced Search. I will, I think, get some more spells in of my own. If you click on my name under "source" you will be sent to my comments form. If you have ideas about improving either the Spell output format, or the content of my spell ideas please go ahead and fill out the form. If you want a spell added, go to my homepage, (http://shike.frih.net/) and click on the submission form, read the instructions for submissions and fill out the form.
Shike019
Jul 18th, '06, 07:10 AM
Good news. Killer Shrike has granted me permission to add the spells from his lists to my database.
Killer Shrike
Jul 18th, '06, 12:42 PM
"Caveat Lector", as the saying goes.
vBulletin® v3.8.0 Beta 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.