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 
Advanced Poll 2.03 -voting redirects without session id-  XML
Forum Index » Support Forum
Author Message
Anonymous



I am displaying several polls using the same url. The session id changes which poll is viewed. Everything seems to work fine except when you vote it directs you to the page without the session id.

This is a page to show you what I mean.
http://www.4seer.net/site.php?c=2

After you vote it takes you to this page without "?c=2"
http://www.4seer.net/site.php

Does anyone know how to solve this?

I would also like to know how to allow you to vote over and over by bypassing the ip check or the cookie. This is just to make the whole testing process easier. I have tried to delete the cookie and the field with the ip in the DB but nothing works...
Anonymous



I can help you with your question but what doc did you read to get the polls posted in your web pages?
Anonymous



DB, I use php/mysql. Thanks
Anonymous



I am assuming you are asking if I used the db or textfile version.
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Duilen wrote:I am assuming you are asking if I used the db or textfile version.


he's asking a question, that's different.

there's already a few topics on this already on the first and second pages of this forum, something like form action or redirect in the search might help.

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Anonymous



I have almost figured it out. I need to edit this line in class_poll.php to forward to the right page.



The only problem is I can't figure out how to transfer my session variable to class_poll.php. I have tried to change this line in booth.php but I can't seem to make it work.



I have tried...



and



I get URL file-access disabled by the server. So I logged into my cpanel to see if I could enable it but I only have the ability to enable allow_url_fopen. (already enabled)

Any ideas?
Anonymous



I figured it out...

If anyone is having the same problem you will need to edit 2 files. I'm not sure if this is the best way or not but it works.

booth.php
Add the following line of code.


I added it here.



class_poll.php
Add the following lines of code.


here...


Now you will need to edit this line of code to something similar.


Note: I took this code straight from my site. You will need to modify yours accordingly. If the site you are displaying polls on is...
http://site.com/index.php?menu=1
You would need to replace all the c's with menu's.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum