View Full Version: Help Me!

YJUTT > Old Topics > Help Me!



Title: Help Me!
Description: Does anyone know PHP?


Jakazul - March 17, 2004 05:17 PM (GMT)
Listen, I'm trying to add an interactive story creator to the site, but it requires PHP. I've got all of the files, etc. uploaded to a MySQL host and everything, but I have no earthly idea what it wants me to do. PLEASE TELL ME SOMEONE OUT THERE'S AN EVEN BIGGER COMP GEEK THAN ME!!! I know it's unlikely, but still worth a shot.
CODE

Extend-A-Story is an interactive, extendable, choose your own adventure story.
It is written in PHP and is designed to work with a MySQL database.


Here are the basic steps needed to get Extend-A-Story working on your site
with just one story:

- Set up a MySQL database to store the Extend-A-Story data.

- In the new database, run the database creation script 'ExtendAStory.sql'.

- Take the contents of the www directory and place them in a directory
  accessible to your web server.

- Modify db.php to contain the relevant login information for the database
  you created.

- Point your browser to <story root>/admin.php and login as the
  administrator:
  - Login Name : admin
  - Password   : change-me

- !!! CHANGE THE PASSWORD OF THE ADMIN ACCOUNT !!!

- Click on the 'Configure Story Settings' link and change the story
  configuration to suit your site:

  - Story Name       : The name of the story.

  - Site Name        : The name of your site.

  - Story Home       : URL for the home page of the story.

  - Site Home        : URL for your site.

  - Read Episode URL : URL leading to the PHP script that displays episodes:
                       'read.php'. This is sent out in emails from
                       Extend-A-Story to authors letting them know when
                       episodes they have written have been extended.

  - Admin Email      : The email address for the administrator of this story.
                       All email sent from Extend-A-Story is sent from this
                       address. Also, this address receives email every time
                       an episode is created. Extend-A-Story will send no
                       email if this is not set.

  - Is Writeable     : When set to 'Yes', the story is open and people can
                       write episodes. When set to 'No', the story is closed
                       and people cannot write episodes. People can still
                       read episodes that have been written.

  - Max Links        : The maximum number of links that can lead off from a
                       particular episode.

  - Max Edit Days    : The maximum number of days that an author will be
                       allowed to edit an episode after they have created it.
                       Moderators are not affected by this.

- Create a home page for the story with links pointing to the various
  features of Extend-A-Story that you want people to have access to. You may
  want to delete the PHP scripts for features that you don't want to use. The
  PHP scripts offering various features are as follows:

  - read.php        : Read the story. Provide a link to this script to start
                      the reader at the very beginning of the story.

  - statistics.php  : Displays a count of the created episodes, empty
                      episodes, and total episodes.

  - search.php      : Allows various ways to search for episodes. If you want
                      to remove this functionality, be sure to delete
                      'results.php' as well.

  - story-tree.php  : Provides a listing of which episodes are available at
                      various levels of depth within the story.

  - admin.php       : Grants access to the administration and moderator
                      functionality.

  - list-locked.php : Displays all episodes that are currently locked for
                      creation.

- Create the first episode. When you first set up the database, no episodes
  exist. Create the first episode to start the story and verify that
  everything is working. If you properly set up your AdminEmail setting, you
  should receive email notifying you of the newly created episode.

- Take the contents of the docs directory and place them in a directory
  accessible to your web server. These HTML pages are the documentation for
  the users of Extend-A-Story. Be sure to link to them from your site.


If you want to set up multiple stories, you follow the same directions as
above, but bear in mind the following:

- Each story will need its own database.

- Each story will need its own separate directory with a copy of the PHP
  scripts.


Just tell me what it means guys. Please just tell me what it means. :o

SapeaShadowMaster - March 17, 2004 05:22 PM (GMT)
I'm not sure but i think it'd help going to a search engine anf looking for a php editer.

Jakazul - March 17, 2004 05:26 PM (GMT)
Well, I've got that. What I really need is just to know how to hook it into the site... CAN NO ONE JUST USE JAVASCRIPT ANYMORE?[xray] :blink: [/xray] ::[help]:: ::[help]::
But thanks.

Poe - March 17, 2004 05:34 PM (GMT)
Email Wil Wheaton. The man's a GOD when it comes to computer stuff.

Jakazul - March 17, 2004 05:38 PM (GMT)
Wil Wheaton? Never heard of'im, but hey, if you say he can help, it's worth a shot. :P

True Believer - March 17, 2004 06:10 PM (GMT)
Isn't Will Wheaton that kid from "Lean on me"?

Robin - March 17, 2004 07:58 PM (GMT)
Yeah. He was also Wesley Crusher on Star Trek: TNG and he does the voice of Aqualad on TEEN TITANS the cartoon. But something tells me he wouldn't exactly be interested in answering computer problems...

True Believer - March 17, 2004 08:03 PM (GMT)
I do remember reading something, somewhere about Will Wheaton & computers. Don't know what, where though.




Hosted for free by InvisionFree