Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
28/12/2004 16:59:52
|
ordinary1
Beginner
Joined: 13/12/2004 03:23:40
Messages: 10
Offline
|
I have worked on my code, and it is mostly working. However, I have another problem: No one can vote. Everything appears to work great; it's just that when you try to vote, it never shows up in the results. Here's the code I have:
For index.php, I now include mainleftwindow.php in the left table cell and mainrightwindow.php in the right table cell. I also include the PHP file for a cookie at the beginning of index.php...the cookie works great; in fact, when someone votes, the result of their vote is not stored, but the cookie is properly stored on their computer preventing them from trying again (without removing the cookie, of course). However, I am using IP checking also, but I assume that is neither here, nor there.
Here is mainleftwindow.php:
mlw_archiveslist.php merely contains an informational message.
mlw_pollslist.php contains a table containing a list of links to polls, their results, and their comments. Here is how the links are coded:
Here is mainrightwindow.php:
mrw_archives.php merely contains an informational message.
mrw_polls.php contains the code to display the polls, and their results. Here is how it is coded:
After the last echo before the }, there is an if-else structure employing JavaScript to display information based on $poll_id, but I don't believe this has anything to do with the problem.
Thanks for any advice, helpful comments, etc.!
ordinar1
|
|
28/12/2004 18:00:46
|
ordinary1
Beginner
Joined: 13/12/2004 03:23:40
Messages: 10
Offline
|
I figured it out! This problem was actually very simple. I should have investigated it just a little more before making my last post. Here's what I did:
In the administration panel for Advanced Poll, I went to the Templates. In the template for Poll View, I added some code to the "form" tag in "display_head".
It was originally like this:
I added some code:
Thanks!
ordinary1
|
|
|
|
|
|
Based on the open source JForum
|