///////////////////////////////////////////////////////////////////////////////////
Wak's Ask&Answer/FAQs Script v1.5
Script by Katie http://luved.org
This script is linkware and can be used or modified as long as all credit is
left attached to this file and a link is placed on your website to
http://www.luved.org
You are forbidden to sell or distribute this script without permission by
it's creator and if a bug is found, report to scripts@luved.org
If you have any problems installing this script, you can seek help on the
forum http://luved.org/forum.php
///////////////////////////////////////////////////////////////////////////////////
Version 1.5
Updates:
28-06-04
-> All bug fixes this time:
-> Fixed it so you can now include ask.php file into your webpage,
even from file in different directories. This makes it easier
for you to incorporate the script into your layout
-> Fixed little bugs such as making the desired entry per page to
show up, if you set 0 or below as entry per page, the default is
used instead
-> Hopefully more easily customizable as I tried to include many
helpful comments in ask.php file
-> Parses URLs within questions and answers
-> Converts new lines into BR tag
05-06-04
-> You can now view the IP address of asked questions
04-05-04
-> Changed the installation process, made it much easier to setup and
upgrade from previous versions.
01-05-04
-> Added a jump to page function for easy browsing
-> Made the template page more user friendly
29-04-04
-> Added the ability to delete mutiple questions at once
///////////////////////////////////////////////////////////////////////////////////
Upgrades:
IMPORTANT: The installation process in this version is different to previous
versions. Please read it carefully.
By installing this script, you will NOT overwrite or lose data from previous
versions, except for the configuration settings. This will be reset.
INTERESTING NOTE: You can restore a file to its original place by deleting
it from your server than running the setup.php file.
///////////////////////////////////////////////////////////////////////////////////
Description:
Ask&Answer/FAQs script allows you to answer visitor questions in an
efficient, fast and convenient way, without the bother of opening text
editors, coding manually and then using FTP to upload to your server. These
hassles are completely unnecessary with the help of this little script.
Features:
-> Do not require a database
-> Userfriendly control panel
-> Completely customizable
-> Email notification
-> Edit/Delete functions
-> Ability to save template answers for speedy future reply
-> Display date/time of asked and answered questions
-> Ability to display in ascending or descending order
-> Jump to page function
-> Display IP address of asked questions (NEW to 1.3)
Files in this zip:
askme.php -> example webpage
ask.php -> Displays asked and answered questions
answer.php -> control panel for answering/editing/deleting/customizing
askform.php -> Ask question form
functions.php -> functions this script uses
style.css -> stylesheet
Installation:
Step 1: Upload all files to its own directory
Step 2: CHMOD this directory to 777
Step 3: Run setup.php in your browser, this script creates files for you and should
announce "Installation Complete!". This file will NOT
overwrite your current questions or templates. Configuration is the only
thing that will be reset.
Copy and paste the absolute path URL to somewhere
where you can get back to it, or simply leave the window open
Step 4: Run askme.php and test that everything works properly.
To answer a question, open answer.php in your browser
The secret key/password is: askme
Click on Configuration and immediately change your password.
Optional Steps:
Include script into your layout:
Now, to include the script to your layout or another webpage:
Place the following code at the very beginning of your page:
This is also where you will need to use your absolute
path
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/a4481091/public_html/askme/readme.txt:101) in /home/a4481091/public_html/askme/readme.txt on line 102
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/a4481091/public_html/askme/readme.txt:101) in /home/a4481091/public_html/askme/readme.txt on line 102
Warning: include_once(/path/to/ask&answer/directory/functions.php) [function.include-once]: failed to open stream: No such file or directory in /home/a4481091/public_html/askme/readme.txt on line 107
Warning: include_once() [function.include]: Failed opening '/path/to/ask&answer/directory/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a4481091/public_html/askme/readme.txt on line 107
Now place this code where you want the script to show up:
Warning: include() [function.include]: Failed opening '/path/to/ask&answer/directory/ask.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a4481091/public_html/askme/readme.txt on line 112
For an example of how your code should look, have a look at
the code within askme.php included with this script
Separating ask form from ask.php:
If you want to place the ask form in a separate file from ask.php, for
example in index.php
First open askform.php and read the instructions inside, bascially you need
to change the url that the form submits to, to your ask&answer_page.php
(eg: askme.php NOT ask.php)
Now place this code anywhere that you want the form to
be displayed. You will need to change the path to the askform.php file:
Warning: include(path/to/askform.php) [function.include]: failed to open stream: No such file or directory in /home/a4481091/public_html/askme/readme.txt on line 129
Warning: include() [function.include]: Failed opening 'path/to/askform.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a4481091/public_html/askme/readme.txt on line 129
If you use the above code, please remember to save that file with a .PHP
extension, If you don't do this, your script will not work.
///////////////////////////////////////////////////////////////////////////////////
// Find a bug? Please email me at scripts@luved.org
///////////////////////////////////////////////////////////////////////////////////