This is a simple proof of concept at the moment and not a working site. First up we have the page edit code produced from my "Nodeedit" function.

Such that, taken from a specifically designed populated array I can use the command:
NodeEdit ("0.0",$testarray1);
Currently produces this result:

Node location: 0
You are Neo. Morpheus has just offered you a choice. Do you:
Node location: 0.0








AS you can tell by clicking the buttons this is simply a mockup of the editing page and you can't actually change anything yet. When Set up with Ajax code and fully working it will be possible to go up a node by clicking on "BACK", down a node by clicking one of the options beneath and to add branches with a further button which hasn't been added yet. Doing so will enable any user to populate the arrays (which currently have just been hard coded by me).

Of course you can only see part of the story here but I think this is best for editing that's all you need to see. The story branches that have got you to the branch you're currently editing and the options which come afterwards.

So the other main part of this is the SpoilerWrite command. So the command: Spoilerwrite(Null,"",$testarray1); Produces this (up to the line):

You are Neo. Morpheus has just offered you a choice. Do you: [spoiler="Take the red pill"] You stay in Wonderland, and discover how deep the rabbit hole goes. You wake up on the "Nebuchaknezzer". Morpheus offers you some food do you: [spoiler="Eat"] You eat the goop and are promptly Sick [/spoiler] [spoiler="Sleep"] You drift off into a world of dreams [/spoiler] [/spoiler] [spoiler="Take the blue pill"] The Story ends, you wake up in your bed and believe whatever you want to believe. [/spoiler]
>

Also to be added are options to load and save whole stories and, later, the ability to add whole populated subbranches which have been saved earlier. This will be useful for placing the same or similar story parts on different branches or making a former short story part of a larger whole.

The most important thing to be added is actually the button to produce the finished PhpBBcode to be placed in any given forum that supports normal PhpBBcode including spoiler tags.