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: neicul
Forum Index » Profile for neicul » Messages posted by neicul
Author Message
open the file poll_cookie.php and change the $cookie_expire = to any ammount of hours. Also you need to include this line at the top of your php page before any html:



If you are using the mysql version you can go to your admin and click settings. In the miscellaneous section select IP table.

You also may need to change class_poll.php according to my post here.

I hope this helps and I hope that it answers your question correctly.
if you are refering to your index file, you can rename it to index.php and it will work fine.
just curious, but why do you say the IP check is useless. I use it and it works perfectly for me. Is there a dissadvantage that I am missing?
I made it work. I don't know why this works but it does. I double slashed line 283 of class_poll.php which says:



For some reason this line was responsible for deleting all of the info in the poll_ip database.
I've been trying to use the check ip feature with the mysql version. my problem is that when a new entry is written to the database, the old info is erased. how can i fix this. poll_log works fine, but poll_ip keep resetting.
I would normally search the forum before asking, but I can't think of a search term that would return what I need. I intalled the poll program earlier this week and voted to test it. I've been checking it every day to so how the poll is doing and today it showed the the voting options again instead of the results. Is there a way to make the poll not go back to the voting options? Can it log ip adresses and only show results to those ips? I really don't want repeat voting every few days. Thanks.

edit
btw. i use the mysql version. i've been looking around and turned on log ip and my ip has shown up in the mysql database. hopefully that will work. anyone know for sure though.

edit 2
okay. that worked. I was even able to add all of the ips of previous votes to the mysql db. So for anyone interested, that is what the Log IP option does.
the interferance is that the style sheet is site wide so it even applies to the poll's input tags. that is why the poll looks different on the regular page than it does on the demo page.
not sure if this is what you are refering to, but all attributes of the polls can be changed in the template page in the admin panel. click template, choose the template you want to change, and then you can change everything about how the poll is viewed, how the results are viewed, and how the comments are viewed.
you have an interferance in your styles sheet that is causing your radio buttons and vote button to look different:



I don't know why your vote button does not have text though. that looks like a php error and I can't see your php code from my side.
Here is a general way to take care of unwanted IP's for you whole site. Inlcude this code in the header of your pages:



If you need to block more than one ip, use the same line again, but with elseif.

let me know how this works for you.
WOW, that was so simple. Thanks for the help. You don't know how happy I am to have learned something new.
Does the dbName have to be something spacific or something of my choice. Also, what is the local host. I put in www.starlogic.com because that is where I access my site admin, but it does not work. Does anyone have any idea what I could be doing wrong?
 
Forum Index » Profile for neicul » Messages posted by neicul
Go to:   
Based on the open source JForum