08-09-2009, 02:38 AM | #1 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
FiC (FLAG iPhone Companion)
For people who like to read fanfiction on their iPhones and prefer to do so using Stanza instead of Safari...
FLAG iPhone Companion is a collection of PHP scripts that creates XML feeds compatible with Stanza iPhone/iPod Touch for the FanFiction.Net website. The story retrieval system uses FLAG by erayd. The format of the catalog was heavily patterned on the output of Calibre's Stanza server. The ePUB conversion module (FLAG component) also makes use of the html2epub command-line utility in Calibre (0.5 & earlier). Download and installation: There are two files available for download. Please refer to the included readme.txt for further instructions. ffnet.zip (104KB, md5: dd32671fc93349992f8b2cc8c05098a1) - For those who already have Apache and PHP set-up, this is a zip file containing just the PHP scripts themselves.
xampplite-fic.exe (19.7MB, md5: 68bb12b6c98f8c9d16908a587883d882) - A ready-made Apache+PHP environment with the FiC scripts included. The php.ini has already been modified to load cURL and Tidy, and the pcre.backtrack.limit has been increased for compatibility with very long chapters. Apache configuration was also modified to enable mod_deflate. Uses XAMPPLite and can be installed on a flash drive.
Adding the catalog to Stanza:
Notes:
Please post questions, suggestions and bug reports on this thread. Fair warning, I'm just a PHP beginner. Please be gentle. |
08-09-2009, 01:17 PM | #2 |
Groupie
Posts: 184
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
|
Let me be the first to thank you for your efforts once again ilovejedd.
I'll download both versions and test them this week, I already have xampp set up but I'll be reinstalling Windows this week so will be able to test the full version then. Again many thanks for all your hard work and props to Erayd for the original version of FLAG. |
Advert | |
|
08-09-2009, 01:33 PM | #3 |
Enthusiast
Posts: 27
Karma: 32
Join Date: Aug 2009
Device: Kindle 2
|
One word: AMAZING. This set of scripts is everything I was hoping it would be. It works brilliantly. My wife is going to flip out - she reads fanfiction.net practically every night on her iPhone using Safari, but now it'll be like an actual book.
Thank you so much for releasing this ilovejedd! Now we just have to hope that the Stanza people fix the category search feature... then it'll be perfect. |
08-09-2009, 02:27 PM | #4 | |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
@Mnementh I just remembered I used mod_rewrite for the catalog links. If you're installing just the scripts, remember to enable the mod_rewrite module in Apache. Oh, and keep your fflag directory. This release only contains portions of FLAG. It doesn't have the scripts needed for running via command-line. |
|
08-09-2009, 03:44 PM | #5 | |
Groupie
Posts: 184
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
|
Quote:
Just out of interest do you know what's broken/changed in Calibre 0.6 to prevent the scripts from working? I have to admit I haven't kept up with the changelogs as up until recently everything worked, the only reason I've updated is because Calibre can now read prc/pdb files natively. Mnementh Edit: Woohoo just noticed this made the frontpage, way to go ilovejedd, should definitely get more people using it now Last edited by Mnementh; 08-09-2009 at 03:47 PM. |
|
Advert | |
|
08-09-2009, 04:29 PM | #6 | ||
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Also, I believe there were some features added to the conversion routines. Until I've tested the new command line utility to work with the settings used by the modified FLAG scripts, I didn't want to upgrade it to the new version. I've also moved my primary Calibre library to 0.6. The virtual machine running FiC, however, remains at 0.5.14 until I can do some testing. Quote:
Hmm, I really should modify the ready-made environment to be at least a little more secure. |
||
08-10-2009, 03:01 AM | #7 |
Zealot
Posts: 134
Karma: 146
Join Date: Apr 2008
Device: Onyx Boox Poke 2
|
Wow, thanks for this ilovejedd - serious kudos .
|
08-10-2009, 09:26 AM | #8 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
|
08-10-2009, 09:29 AM | #9 |
Zealot
Posts: 134
Karma: 146
Join Date: Apr 2008
Device: Onyx Boox Poke 2
|
|
09-11-2009, 03:49 AM | #10 |
Groupie
Posts: 184
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
|
Hi ilovejedd,
I've just got round to trying out your readymade environment in a VM (finally persuaded work to get a VMWare license for me ) I've not been able to before because of running Calibre 6. I've run into a few problems which I'm hoping you might be able to shed some light on. I've done a completely fresh install using Calibre 5.14 and xampplite-fic.exe. Calibre currently has no books installed and the server is switched off (I have also tried it with the content server running). I've not modified the catalog.xml yet as I wanted to ensure it was working before playing about with that. When I try to open the catalog in stanza 1.9 I just timeout every time (I believe this may be down to me needing to find a way of port forwarding from the Host to the Guest OS in VMWare, I may have made a mistake in using NAT for the VMWare network instead of just using Host based networking). I've also tried connecting to the local server in the VM using Opera and IE8 both instances list the categories in catalog.xml but there are no clickable links, it's literally just a list (ie the title with no story id's to download/convert) . As I don't use RSS/XML feeds I'm not sure if this is normal or if there's a problem? Any assistance you can render will as usual be gratefully received. Mnementh |
09-11-2009, 08:49 AM | #11 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
It only uses Calibre for ePUB conversion. The only requirement is that the Calibre directory has been added to the environment path which should happen after installing Calibre and a restart.
I'm not sure how Opera and IE8 handles RSS/Atom feeds. Perhaps you can try using Firefox 3.5.2? You should be able to navigate the feed using Firefox. If working from within the VM, the url should be: http://localhost/ffnet/ or http://127.0.0.1/ffnet/ No idea how to handle the networking, though. I use "Bridged" mode for mine so the VM gets a separate IP address. I don't think "Host Only" would work. "NAT" would probably do if you can figure out how to do the port forwarding. |
09-11-2009, 08:58 AM | #12 |
Groupie
Posts: 184
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
|
I'll download Firefox and try that (then I will delete it rapidly as I can't stand the program!)
I've borrowed a laptop from work (both mine are currently running linux and I don't really want to mess with them) that needs to be re-imaged so I'm gonna do a fresh install on that to test as well. If all goes well with the laptop and I'm unable to figure out the VM networking I'll bite the bullet and install WinXP on one of my laptops and serve from that. Thanks again for your help and I'll let you know how it all goes. |
09-11-2009, 10:08 AM | #13 | |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
By the way, I've updated ffnet.source.php. I don't have easy access to my webhost FTP (bloody difficult to remember the username), but I do have it on a shared folder on my Dropbox account and that one, I can very easily keep up to date. For those interested, just drop me your Dropbox email/username (via PM or post here) so I can add you to the shared folder. If you don't already have a Dropbox account, it would help me if you use this referral link. https://www.getdropbox.com/referrals/NTE2Mjk1OTE5 |
|
09-11-2009, 10:33 AM | #14 |
Groupie
Posts: 184
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
|
I've used your link to create a dropbox account. What do you get for doing that by the way?
I've never considered using firefox portable I just really don't like firefox so the thought never even crossed my mind but you're right it would be useful for troubleshooting. I'll pm you my dropbox email so you can add me to the shared folder please, that would be really usefull. I've managed to get everything working perfectly on the laptop from work, haven't bothered playing around with the VM yet though I will at some point. I'm especially liking the "other titles by this author" and "download to calibre" links. More karma is definitely on the way for this Edit: Bah still won't let me give you any Karma... /me goes to look for information on why... Last edited by Mnementh; 09-11-2009 at 10:36 AM. |
09-11-2009, 10:50 AM | #15 | |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Glad you like it. I love the author link, too. With Stanza's new "Download All" feature, it makes it easy to get all the works of favorite authors. I can't recall the exact behavior of the "Download to Calibre" link. I'm not sure if it creates a new library or adds the books to your existing library. I rather think it's the former, though. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Rubies and Other Gems - the Novel, Women's fic with time travel twist | joycedb | Self-Promotions by Authors and Publishers | 26 | 01-25-2012 03:24 PM |
'New' Flag | dhcalva | Amazon Kindle | 9 | 09-10-2009 11:05 PM |
Busy (but Geeky) Mom wants freedom from laptop (lots of online fic forum reading) | Siwickimom | Which one should I buy? | 24 | 06-29-2009 02:30 AM |
Why use the companion software? | HarryT | iRex | 19 | 06-09-2009 03:13 PM |
Companion software 2.0 | smp_iliad | iRex | 16 | 02-14-2009 04:15 AM |