"Current Comic", "Archive", "Site Map", "Links" and Cast Page are pretty self explanatory. "Blog" leads here, "Forum" will lead to the Shastrix forum for Khatru. "My Other Work" is a collection of other things besides Khatru that I've written. There's a link to this blog, a collection of the best stuff posted to my old LiveJournal, links to professional journalism stuff and links to some of the stories I've written.
The
Note: the reason this weeks update isn't a comic is because of a lingering sickness as well as a heavy case of marching band. So, next week's comic is at the pre-scanning stage (meaning I haven't gotten around to scanning it) and the week after that is already 5/6 of the way drawn. I need to start scripting out the next storyline, too.

Hi.
ReplyDeleteThoughts from the designer of Shastrix on your things to figure out.
1)How to link pages together. The way that Shastrix currently works is that there is only one comic page. Not just for Khatru, but in fact for all the comics that are using the most recent version of the code. The page looks at the url, sees 'khatru' in it and knows which comic to load from the database. It then looks at the query string at the end of the url to find out which comic to load from the database (er ?comic=36). The database ties together a comic id number, the filename of the image, and various other bits and bobs such as date, time, title etc.
The other way that this could be done is to write a script that creates a permenant HTML page for each comic - ultimately doing exactly what you would do manually, but automated. This might be something I explore on Shastrix in the future, as it reduces the load on the server as there aren't database queries flying around every time someone accesses a page.
2) how to make upload/posting. I've given some hints above. It's a php script that takes the image you supply, renames it and dumps it in a folder on the server. It then takes all the detail you submit (date, title etc) and the new filename and inserts it into the database. The code in the comics page then controls which comics are displayed.
3) Link uploading to adding to the archive. Yes, once you've got a database with every comic in, the archive page can just pull every entry (except those dated in the future) and display a full list. Or a calendar view, although that takes longer to code.
I've also made some comments on Shastrix.