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 |
|
My poll, comments and comment form are here
http://www.turkku.com/poll/karmeat_kommentit.php
When I send a comment it works fine. But if I immediately -- without moving to any other page -- reload (F5) the same page, it looks like the written comment comes again on page, under the next one. And again and again and...
When reloading, a popup jumps. It tells something like "POSDATA is resend if you press OK". Every visitor is going to do that, surely.
I tried it on your site too and with the same result. Take a look
http://proxy2.de/poll/demo_4.php
What's goin on? How do get rid of that function?
|
|
|
Yup. The first actual line:
That works, surely. Thanx!
But could this also be set under 1 hour? Like 15 min. (0.25)?
It mays sound ridiculous, but it might be useful -- to me, at least.
I have this poll, again
http://www.turkku.com/poll/karmeat.php
Visitors vote there the worst Finnish cover song ever. One voting/one song at the time, next vote after 1 hour. Ok.
Some limitation is required of course, otherwise "smart" kids start to hammer their "enter" giving votes to only one song. Vote is ruined. But at the same time normal people are eager to vote their favorites so they get pissed when they have to wait a whole hour.
Better solutions would perhaps be this: one voting/10 songs at the ime, next voting after 30 min-1 hour. But this script is using radio buttons and I guess it would be pretty hard task to change them to checkboxes -- if possible at all?
That's why I'm thinking to simply change that cookie expire after 10-20 min. It would still prevent total hammering, but people would be happier and would vote more often.
So, could this work:
|
|
|
It's all pretty clear now.
Sorry. I badly misunderstood the whole thing, that is, HOW those demos should be used! Two days hard work almost for nothing, but I'm older and wiser now.
However, poor documentation was quite frustrating. I didn't expect any red carpet, champagne or 100s of PDF pages, but 2-3 lines in Readme file would have done.
One last question remains: How do I set a cookie expire after 1 hour?
No cookie option available in Admin Panel. Obviously some file(s) requires a bit of tweaking here. And, depending on that, should this first code line contain
or just
Thanx for your time and patience!
|
|
|
Yeah. But if I could do that why should I ask stupido questions here?
The problems here is that I'm so newbie with PHP: I don't understand how it works. To me it's a rocket science and unfortunately I don't have time to learn it right now.
Again, my testpoll is here
http://www.turkku.com/poll/karmeat.php
It's simple and so is the code:
- - -
<?php include_once "/www/asiakkaat/turkku/public_html/poll/poll_cookie.php";
?>
[ usual html stuff ]
<?php include_once "/www/asiakkaat/turkku/public_html/poll/booth.php";
echo $php_poll->poll_process(4);
?>
[ missing PHP code should be here? ]
[ usual html stuff ]
- - -
That's all and it works ok — except the comments which is not shown at all. Comment popup form works all right: I can write comments and send it and even read them on the Admin Panel. But they are never shown anywhere on page.
So it's obvious a piece of "showing code" is missing here. I've tried everything, but it don't work. I know it's so simple, just a couple of RIGHT lines of code.
Please, could you amber222 or someone else help stupido newbie and copy those required line here?
|
|
|
I have this (test)poll on my site
http://www.turkku.com/poll/karmeat.php
It seems to work ok, in general. However, I also saw this demo #2 is available http://proxy2.de/poll/demo_2.php
I'd love it. It would be nice cos' on my on-coming poll people would then have a chance to tell why they choosed their song. Why they hate it!
I build another test site and copied the code. It didn't work. It stucked on line
My AP runs in textmode. Is that the cause? Does this nice comment option require real database (MySQL)?
|
|
|
|
|
|
Based on the open source JForum
|