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!

11-06-2000 08:12 PM

Perhaps you didn't escape the variables and so they were evaluated (which would make them blank)

11-06-2000 09:22 PM

You have to escape the $'s in the installation files. Otherwise, they'll try to be evaluated - which doesn't work.

11-06-2000 10:31 PM

Yeah or what I said before that.

11-07-2000 06:56 AM

the wierd thing is, it worked for me on my test boards...

/me dies in shame

11-07-2000 07:24 AM

Yes that was the problem. Thanks all. :)

11-12-2000 08:05 PM

Does this mean you'll release a updated zip file with all of the fixes? :)

I had some problems with 1.01 but decided to just drop the db's and kill the modifications and install it on a test board instead of a main production one :)

11-13-2000 09:56 AM

<a href="http://www.naboonline.com/pollhack/pollv101.zip" target="_blank">http://www.naboonline.com/pollhack/pollv101.zip</a>

that has the newest fixes

11-13-2000 10:01 AM

Are there any changes in the code or i can simply reupload .php files?

11-13-2000 10:01 AM

Hello Doron,

have you made any other changes in that new zip other than the bugs/fixes we discussed above?

11-13-2000 01:45 PM

Thanks Doron :cool:

I'll give them a whirl

11-14-2000 07:35 PM

Quote:

Originally posted by PeF
Are there any changes in the code or i can simply reupload .php files?
from what version? if you installed the 1.0.1 version went it first went up, you are best off reinstalling it


Virtuetech: that is an old zip of all the fixes for the bugs you guys found.

11-16-2000 02:34 PM

Hmm,
I've tried to install the poll, but I get an error-message:
Fatal error: Call to undefined function: checkipban() in /home/theotc/public_html/board/admin/poll.php on line 11

So the problem is with the IP-check.
Can anyone help me?

Thx a l0T

11-16-2000 09:01 PM

what version of the vB are you using?

11-17-2000 05:44 AM

The latest one.
It's 1.1.4

11-17-2000 07:13 PM

what system are you on? this is wierd, the function is used by other files in the vB too.

11-19-2000 04:18 PM

Hmm,

It's Linux I think.

11-20-2000 06:46 AM

hmm, where is the location of your vB?

11-24-2000 06:40 PM

All is ok in the poll and my test-board.
So but the poll looks bad.

http://213.61.114.140/~theotc/board/...php?threadid=6

This the link to my board and teh poll.
I mean the question looks bad, cause its not big enough.

*sorry for bad 'n poor english

Thx

11-24-2000 07:04 PM

i'm not even seeing a poll - check your templates (pollview).

12-01-2000 11:13 AM

I have added this hack for 1.1.4 on my test board... but it did not add any of the templates when I ran the makepolltables.php file.

Any ideas?

12-02-2000 10:36 PM

Doron, can you help me? I got this error when I ran the updatepoll.php - the weird thing is that my directory is not /usr/local/apache/sites...

But my board is still functional so I don't know what this is about!

<!-- Database error in vBulletin: Invalid SQL: ALTER TABLE thread ADD poll SMALLINT (1) DEFAULT '0' not null
mysql error: Duplicate column name 'poll'
mysql error number: 1060
Date: Saturday 02nd of December 2000 08:33:54 PM
Script: /updatepoll.php
Referer:
-->

Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/sites/***.com/htdocs/updatepoll.php:7) in /usr/local/apache/sites/***.com/htdocs/global.php on line 754

Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/sites/***.com/htdocs/updatepoll.php:7) in /usr/local/apache/sites/***.com/htdocs/global.php on line 757
Editing thread table ...

[Edited by Me2Be on 12-02-2000 at 07:44 PM]

12-02-2000 11:27 PM

Me2b, I had a kind of similar problem than the one you mention in you last 2 quotes.

Check my recent thread:
http://www.vbulletin.com/forum/showt...?threadid=5041

I'm sure you have the same blank lines problem.

Benj

[Edited by Benj on 12-02-2000 at 08:37 PM]

12-03-2000 02:27 AM

Benj, I just tried checking for blank spaces and couldn't find anything. The weird thing is that the board is working fine - It just gives me the error when I run the updatepoll.php file

12-03-2000 09:04 PM

ALTER TABLE thread ADD poll SMALLINT (1) DEFAULT '0' not null

look for that and comment it ouy with a //, you seem to already have the poll column in thread. As for the other error, that other thread seems to cover it.

you probably got the 2nd error once, retried the updatescript, but it succedded the first time to create that column. What sort of system are you on?

12-04-2000 07:08 AM

Quote:

Originally posted by ukliam
I have added this hack for 1.1.4 on my test board... but it did not add any of the templates when I ran the makepolltables.php file.

Any ideas?

Right... could I have a copy of the templates or an edited makepolltables.php file that just does the templates and does not add any tables...

thanks

12-04-2000 10:51 AM

Quote:

Originally posted by ukliam
Quote:

Originally posted by ukliam
I have added this hack for 1.1.4 on my test board... but it did not add any of the templates when I ran the makepolltables.php file.

Any ideas?

Right... could I have a copy of the templates or an edited makepolltables.php file that just does the templates and does not add any tables...

thanks

just comment out (by putting a // infront of the line) the lines where the tables are created ie ALTER etc. The onlyones you need are the INSERT lines.

12-04-2000 11:27 AM

Cheers... it was a problem with my header as well.
But it all works fine now.

12-04-2000 02:06 PM

doron, commenting out that line worked perfectly! I still got that header error even after making sure there was no white space, but nevertheless, it still worked!

Thanks doron!

12-05-2000 07:04 AM

hmm, the header issue is wierd, I'll try to reproduce. Are you all running php4?

12-05-2000 02:06 PM

php4 for me! But like I said, it did work though!


All times are GMT. The time now is 08:45 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.01191 seconds
  • Memory Usage 1,814KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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