vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [RELEASE] Poll Hack v1.0.1 (https://vborg.vbsupport.ru/showthread.php?t=4386)

11-05-2000 09:22 AM

this happens during voting...I'll look at this, seems that people are able to vote though on your forums

11-05-2000 03:54 PM

Yeah it is really weird....I just got like 15 more emails like that this morning.

I went through and tested all of the poll functions as an administrator and as a regular users...I'm not sure were the error is coming into play.

Maybe it is from:
- A moderator trying to edit the poll
- A guest trying a poll function

I'll try and do some more testing.

11-05-2000 04:42 PM

Quote:

Originally posted by VirtueTech
Yeah it is really weird....I just got like 15 more emails like that this morning.

I went through and tested all of the poll functions as an administrator and as a regular users...I'm not sure were the error is coming into play.

Maybe it is from:
- A moderator trying to edit the poll
- A guest trying a poll function

I'll try and do some more testing.

Perhaps you can ask your users if they saw it and what triggered it. My only guess is, as your forum is pretty big, that people are playing with the poll by trying to vote directly. If this continues, I can patch up poll.php to throw an html error and thus avoid the db errors.

11-05-2000 07:48 PM

James-
Did you edit the two new templates that were created to have $pollid and $optionChoice in BOTH of them? (I think those are the variable names)

Doron-
In the updatepoll file you forgot to escape the $'s.

11-06-2000 12:02 AM

so, is it working yet?

11-06-2000 12:03 PM

all bugs should be ironed out now, waiting on VirtueTech to see about that error he keeps getting, even though it could be a template issue...

I see you installed it on your forums, are you getting any sort of db errors?

11-06-2000 05:31 PM

hello !

I got the same DB-Error as VirtuTech.

My users do not see the poll-hack, cause the button is not implemented - but even then i got some error messages from time to time.

So i do not think it is a problem when users play with the poll itself.

bye tom

11-06-2000 05:47 PM

Quote:

Originally posted by doron
all bugs should be ironed out now, waiting on VirtueTech to see about that error he keeps getting, even though it could be a template issue...

I see you installed it on your forums, are you getting any sort of db errors?

Database error in vBulletin: Invalid SQL: SELECT threadid FROM post WHERE
pollid=
mysql error: You have an error in your SQL syntax near '' at line 1
mysql error number: 1064
Date: Monday 06th of November 2000 09:38:52 AM
Script:
Referer: http://atforumz.com/poll.php


That's the one I get, but the polls seem to work anyway. I didn't bother to check last night (I have a special addy for DB errors), but it's the only one I get.

are you missing a $pollid at the end of that statement? I'm at work and don'e have ready access to the code...

11-06-2000 05:53 PM

Look at the 2 new templates that were created - they're probably missing the variables $pollid and $optionChoice (the variables have the same names as the <input type="hidden"..> they're in)

11-06-2000 08:10 PM

error_pollvotenologin

Code:

You must be logged in to vote on a poll

<p>To log in, fill in the form below:

<p>
<form action="poll.php" method=post>
Username: <INPUT TYPE="TEXT" NAME="username" SIZE=7 MAXLENGTH=25>
Password: <INPUT TYPE="PASSWORD" NAME="password" SIZE=7 MAXLENGTH=13>
<input type="hidden" name="action" value="pollvote">
<input type="hidden" name="optionNumber" value="$optionNumber">
<input type="hidden" name="pollid" value="$pollid">
<input type="submit" value="Login!"></form>

<p><smallfont>The administrator has required you to <a href="member.php?action=signup">register</a> before you can vote on polls. <a href="member.php?action=lostpw">Forgotten your password?</a></smallfont>


error_pollvoteinvaliduser:

Code:

Your username and password do not correspond.

<p>To vote in, fill out the correct informaion below:

<p>
<form action="poll.php" method=post>
Username: <INPUT TYPE="TEXT" NAME="username" SIZE=7 MAXLENGTH=25>
Password: <INPUT TYPE="PASSWORD" NAME="password" SIZE=7 MAXLENGTH=13>
<input type="hidden" name="action" value="pollvote">
<input type="hidden" name="optionNumber" value="$optionNumber">
<input type="hidden" name="pollid" value="$pollid">
<input type="submit" value="Login!"></form>

<p><smallfont>The administrator has required you to <a href="member.php?action=signup">register</a> before you can vote on polls. <a href="member.php?action=lostpw">Forgotten your password?</a></smallfont>


I really have no idea how the $pollid and $optionNumber are not there - could you all check if it exists in your templates?

thanks!


All times are GMT. The time now is 08:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01017 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete