Installation Guide
 
Script Name CJ Dynamic Poll v2.0

Files/Directories Required
& Permissions:
poll.php
archive.php
js_header.php
poll_config.php
pollcount.php    CHMOD 777
submit_vote.php
bar.gif
admin/admin_index.php
admin/admin.php
admin/admin_stylesheet.php
admin/login.php
admin/poll_functions.php
admin/misc_functions.php
admin/bottom.jpg
admin/top.jpg
admin/topleft.jpg
admin/login.jpg
admin/welcome.gif
polldata/          CHMOD 777  (FOLDER)
archivedata/     CHMOD 777  (FOLDER)

Installation 1)  Variables to edit in poll_config.php

Change the variable below to your name
$admin_name = "Joe Bloggs";

Change the variable below to your username for the admin control panel
$user = "username";

Change the variable below to the password for the admin control panel
$pass = "password";

Change the variable below to the URL where your poll files are stored
$your_url = "http://www.yoursite.com/dynamicpoll";

Change the variable below to the URL of your poll bar image
$imgurl = "http://www.yoursite.com/dynamicpoll/bar.gif";

Change the variable below to set the height of your poll bar, 5 is the default
$poll_bar_height = "5";

Change the variable below to your stylesheet or leave blank to use the default stylesheet - this is for the archive page.
$stylesheet_url = "http://www.yoursite.com/css/css.css";

Change the variable below (if you want to) to change the message shown when no polls are open
$nopoll = "No Poll Open";

Change the variable below (if you want to) to change the message shown when a visitor has already voted.
$voted_already = "Already Voted";

Change the variable below (if you want to) to change the link text shown that a user clicks on to view the archive.
$view_archive = "View Archive";

Change the variable below (if you want to) to change the text of the vote button
$vote_button_text = "Vote!";

Change the variable below to true if you want the polls to display in random order (note: you must have more than 1 poll open)  Leaving the variable at false will simply display the polls in sequence according to their creation date.
$random_display = false;

Change the variable below to false if you would rather the poll reverted to the initial page after the visitor votes.  If you leave it true, the visitor will be thanked for voting.
$thankyou_message = true;


2)  Upload

Upload all the files required (see above) into a directory preferably called "dynamicpoll" so your link to poll.php would be www.yourdomain.com/dynamicpoll/poll.php


3)  CHMOD

After uploading you need to CHMOD the files to their correct permissions.  To see the permissions, go back to the top of this page and make sure your set the correct permissions using your FTP program.

If you do not how to do this try searching on Google or click on the links below corresponding to your FTP program:

Cute FTP
SmartFTP
WSFTP
 

4)  Including the Script

a) The PHP Include Method (.php, .php3, .php4 pages)

To include the script within a PHP web page use the following code:




b) The SSI Include Method (.shtm, .shtml pages)

The SSI include method is similar to the PHP include method, the difference being the code used:  (note: pick one that works)



Note
: If you are executing this file using SSI, you may need to add the location of your PHP binary to the top of the poll.php (i.e. #!/usr/local/bin/php), and poll.php must be CHMOD'd 755.


5)  Administering Your Poll

To administer your Tag Board all you have to do is go to www.yoursite.com/tagboard/admin.php and log in with the username and password you defined in config.php.  Once in you will see options in a left hand side menu.

Polls

   Manage - here you can view, edit, archive, delete, reset votes and reset the voters (ips) of a poll
   Create - here you can create a new poll - creating a new poll will not delete the current poll as u can have multiple polls at once.

Archives
    Manage - here you can edit and delete archived polls
   Delete - this option will allow you to delete all archived polls at the same time.

Upgrade - how to upgrade to CJ Dynamic Poll V2.0 Pro

About
- about the CJ Dynamic Poll

Support - if your still stuck, this link will take you to the forums

Logout - this will log you out of the admin control panel


Finished That's all!

If you have any problems with the script go to www.cj-design.com/?content=forum and seek advice!

If you spot any bugs, please let me know via the forums (Personal Messaging!)

Donate Show your appreciation for this script by donating : ) www.cj-design.com/?content=donate
You can also link to CJ Website Design using our methods shown here: www.cj-design.com/?content=linktous

© CJ Website Design