I think I'm probably way over my head, but you guys look friendly and I hope you can give me some advice.
I have been attempting to create a fanfiction idea generator, with two characters and an object prompt, specific for the LOST fandom. I played around with javascript for a while and had little luck with that. And most of the help I found through google suggested doing it as php, so that's what I've decided to do.
I downloaded a word-based generator found here (download zip here), read the readme file and the useme file very carefully, etc. Included in the zip was a data file referenced in the php page, which I carefully changed the following ways:
The organization instruction that I used was:
--ORGANIZATION
1,2,4
Your fanfic challenge is to write about , and , with an optional object prompt of ,.
The 20 characters I listed out as 3, so as to be both 1 and 2 and the objects (I think I have over 40) were 4. It looked like this:
--VOCABULARY
Aaron,3
Bernard,3
Boone,3
...
// 4 - Object Prompt
Sunglasses,4
Polar bear,4
Hatch,4
... And so forth
However, I'm having problems. It is only selecting the first and last names on the list (Aaron and Shannon) for the 1, 2, and while it rotates well for the 4 section, I'm getting character names there as well. Example: "Your fanfic challenge is to write about Shannon and Aaron with an optional object prompt of Boone"--not what I'm wanting.
I know the problem is probably something that I haven't fixed in the code itself, but try as I might, I can't figure out where/what I change.Rather than copy the entire code, I've uploaded the code here (rtf file download). ETA: Source code found here.
My webpage to see it in action is here: http://jcd1013.lotrinklings.net/lost.php
I use Mac OS 10.3.9, Dreamweaver MX, and I have PHP 4.4.2. My programming skills at this point are pretty rusty--three years ago I taught myself rudimentary HTML/Java/PHP, but all of that has since been replaced with knowledge on disease processes and how to listen for 4th heart sounds. :D I did try reading FAQs and tutorials on the pages that you suggested, but had difficulty applying it.
Any help that you could provide would be greatly appreciated! If you need additional details, let me know, and I'l try to provide what I can.
Last ETA: Datafile can be found here: http://jcd1013.lotrinklings.net/filedat.dat
I have been attempting to create a fanfiction idea generator, with two characters and an object prompt, specific for the LOST fandom. I played around with javascript for a while and had little luck with that. And most of the help I found through google suggested doing it as php, so that's what I've decided to do.
I downloaded a word-based generator found here (download zip here), read the readme file and the useme file very carefully, etc. Included in the zip was a data file referenced in the php page, which I carefully changed the following ways:
The organization instruction that I used was:
--ORGANIZATION
1,2,4
Your fanfic challenge is to write about , and , with an optional object prompt of ,.
The 20 characters I listed out as 3, so as to be both 1 and 2 and the objects (I think I have over 40) were 4. It looked like this:
--VOCABULARY
Aaron,3
Bernard,3
Boone,3
...
// 4 - Object Prompt
Sunglasses,4
Polar bear,4
Hatch,4
... And so forth
However, I'm having problems. It is only selecting the first and last names on the list (Aaron and Shannon) for the 1, 2, and while it rotates well for the 4 section, I'm getting character names there as well. Example: "Your fanfic challenge is to write about Shannon and Aaron with an optional object prompt of Boone"--not what I'm wanting.
I know the problem is probably something that I haven't fixed in the code itself, but try as I might, I can't figure out where/what I change.
My webpage to see it in action is here: http://jcd1013.lotrinklings.net/lost.php
I use Mac OS 10.3.9, Dreamweaver MX, and I have PHP 4.4.2. My programming skills at this point are pretty rusty--three years ago I taught myself rudimentary HTML/Java/PHP, but all of that has since been replaced with knowledge on disease processes and how to listen for 4th heart sounds. :D I did try reading FAQs and tutorials on the pages that you suggested, but had difficulty applying it.
Any help that you could provide would be greatly appreciated! If you need additional details, let me know, and I'l try to provide what I can.
Last ETA: Datafile can be found here: http://jcd1013.lotrinklings.net/filedat.dat
