If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: Anonymous
Forum Index » Profile for Anonymous » Messages posted by Anonymous
Author Message
SWEET!

BOUT TIME SOMEONE DID THIS

SINCE THEY DIDNT
Anon: That means feck all to the newbie!!!
I have read through this forum, and the anount of people having problems without real answers to this subject is unreal.

I had many problems installing this, and the lame install text did not help me one bit! It took me about 2 weeks to get this script to work nearly properly.

This works with unix server with htaccess (may work without).

Ok, here how to get this script to work.

1, Create a folder/Dir on your server called 'poll'
2, Unzip the PHPpoll archive and copy all the contents of this to the 'poll' folder on the server. Remember any file that is not a image file should be uploaded as ascii and the images as binary.

So the dirtree should look like this on the server..

Poll
...../admin
...../image
...../etc..

Do not changed any of the folder names or this could stop the script from running.

3, Set up the permissions.
Give all *.php files a permission of 755 though

4, edit the include/config.inc.php with a text editor (notepad and nothing else) and change the first two lines to this....

$pollvars['base_url'] = "/poll";
$pollvars['base_gif'] = "/poll/image";

nb: if you are using the mysql version, remember to edit your database details!!! or you will get an error. If you do not have a database then use the text version of PHPPoll.

Save the file and copy it back to the same place on the server, with a 666 file permission.

5, On the server where your docs and html files are stored (normally the httpdocs or similar, look for .htaccess (that's if you server has this) and edit it adding these lines at the top....

Options Indexes FollowSymLinks Includes
AddType application/x-httpd-cgi .cgi
AddType text/x-server-parsed-html .html
AddType text/x-server-parsed-html .htm

(This lets you use the normal *.html extenstion)

and save and copy this back in the same place.

NB: If you do not have .htaccess, then make sure the webpage that has the <include file> (below) has an shtml file extenstion.

6, Go to http://www.yourdomain.com/poll/admin/ and when the script runs enter the default username and password. If you have any errors, check the paths are correct as in step 4 and all permissions are set as in the install.txt.

7, Once the sript as run, delete all existing polls (as you probably wont be using them) and then go to 'create a new poll' on the menu. Now create your new poll and save it.

8, leave the general settings alone for now and only edit them after the last step has been taken.

9, Your new poll should have a Poll ID of one.!!!

10, Launch your web disigner program (example: Frontpage or dreamweaver).

12, next, you need to enter the include file line that will call the poll to your webpage.

In front page, go to insert, advanced and then HTML and in the new box insert this line......

<!--#include virtual="/poll/poll_ssi.php?poll_id=1" -->

Or just enter the above into the html its self

DO NOT JUST PUT THIS STRAIGHT ONTO THE DESIGN PAGE (normal view in frontpage) IT HAS TO BE IN THE HTML CODE OR IT WONT WORK!

Now, close the box, save the page and copy this page over to the server.

In your browser, point to the the html file (ie index.html) that has the poll on it and it should be there, if there are any errors check through each stage for any error and correct them.

A small note on the poll not correctly counting the votes, ie, when you vote it is showing up as no vote. The vote is being registered! This problem seems to be down to a 'cookie' problem and if you delete all the cookies in IE or netscape and refresh the page, you will then see that text 'you have already voted' when you try to vote again.

Also, I have noted that sometimes the PHPpoll does not give the 'poll/polldata/1, 1.ip and session.php the correct file permissions. Set 1 and 1.ip to 666 and session.php to 777 and hopefully that may sort out a few problems.

Hope this helps
make sure you save the page as .php

and make sure you put just the FIRST PART of the code before the html, and the lower half after the html code!

good luck
i get this error after submitting

---------------------------
Warning: Cannot add header information - headers already sent by (output started at /mnt2/users/shap/shap/html/testingphp.php:2) in /mnt2/users/shap/shap/html/poll/phppoll/textfile/poll_cookie.php on line 22
---------------------------

any ideas?
Happen to me too, anyone have any idea of what could be wrong?
when i submit an answer to my poll, i get this on the top of my page..
--------------------------------

Warning: Cannot add header information - headers already sent by (output started at /mnt2/users/shap/shap/html/testingphp.php:2) in /mnt2/users/shap/shap/html/poll/phppoll/textfile/poll_cookie.php on line 22

--------------------------------

anyone know what this means?
http://www.brianne.net/guestbook/
default user and pass.

MySQL version 3.23.49
PHP Version 4.1.2

TIA
When I try to submit a new post it just throws me back to the add entry page.
How can i do so my visitors only can vote ONE time and not every day?

/Jonny
The person that was working on my site isn't available anymore. I need someone to finish a site that is 90% complete. I will work out satisfactory financial compenastion. One caveat. You have to know this application very well and must be able to start imm.
Thanks
PC pco1@hotmail.com
Zapy (Guest) wrote:
Hmmm someone that can answer? iwe got 110 wievs on this question so i think its many ppl that want a answer.


Nope sorry. People are viewing this just to see what kind of an idiot would make a thread with a title like that. Shithead.
Max wrote:
and sorry if i can be of any help to you on ya problem but im kinda newbie on this.



ooops correction:

and sorry if i can't be of any help to you on ya problem but im kinda newbie on this.
Hmmm someone that can answer? iwe got 110 wievs on this question so i think its many ppl that want a answer.
Sherry,if you dont mind me asking what is the server that you are running,IIS,Apche?
and also have you used the exemple for the shtml without any modifications?
the reason im asking is cause i cant make my shtml poll to work after i vote its gives me an erro saying poll id does not exist so maybe you could help me out here.

im running a win2k with apache serve, in case you need that inf.
if you or anyone can answer me i really appreciated.
and sorry if i can be of any help to you on ya problem but im kinda newbie on this.
 
Forum Index » Profile for Anonymous » Messages posted by Anonymous
Go to:   
Based on the open source JForum