PDA

View Full Version : Portal Software - vBulletin Election Booth


vBsquad
10-13-2007, 10:00 PM
Credit for the original hack goes to trafix (https://vborg.vbsupport.ru/member.php?u=26435).

The original hack can be located here:
https://vborg.vbsupport.ru/showthread.php?t=74183

Since the original coder could not be located I updated this hack to work with vb 3.6.8 and added several enhancements along the way.

What it does?
This hack basically allows you to hold elections on you board. You can open as many elections as you wish each with their own set of parameters. Some of the more important features are listed below.


End Date
Number of candidates
Usergroups who can vote
Number of candidates users can vote for
Usergroups who can view leaderboard
Usergroups who can see who voted


Support
I welcome your suggestions and will do what I can when I can to solve any issues.

Enloy :)
vBsquad | www.URLJet.com

SuperTaz
10-14-2007, 08:46 PM
Nice idea...Installed.

johnrizz
10-14-2007, 08:52 PM
X2! Nice idea... also installed.

FleaBag
10-14-2007, 09:04 PM
Looks neat, if I understand it correctly. :D

Not to say it isn't neat anyway. Even if I don't understand correctly.

Doctor Death
10-14-2007, 09:50 PM
When clicking on the NOMINATE NOW button in POSTBIT, I get...

Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT * FROM vywhbabh_candvoting_pollbooth
WHERE candvoting_pollboothid =;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
Error Number : 1064
Date : Sunday, October 14th 2007 @ 06:49:25 PM
Script : http://www.ddsog.com/forums/candvoting_nominate.php?do=nominate&memberid=127
Referrer : http://www.ddsog.com/forums/showthread.php?p=35186
IP Address : 70.161.45.32
Username : Doctor Death
Classname : vb_database

johnrizz
10-14-2007, 10:23 PM
Yeah, X2 on that! same here......:cool:

Doctor Death
10-14-2007, 10:31 PM
Yeah, X2 on that! same here......:cool:

Standing by for the patch!!

Doctor Death
10-14-2007, 10:39 PM
Also, on the template that shows the results, I am showing in IE that there are errors on the page on lines 945 & 978 for an unterminated string...

Can you check that??

Ski-Whiz
10-14-2007, 11:24 PM
It's awesome to see this revived!!!!!!!!

We all seem to be getting the same error when we click on the Nominate Now link. :D

FreshFroot
10-15-2007, 12:05 AM
really cool idea, good job mate!

Lea Verou
10-15-2007, 02:37 AM
Perhaps this could be used for MOTM and BOTM over here :)

SuperTaz
10-15-2007, 03:56 AM
When clicking on the NOMINATE NOW button in POSTBIT, I get...

I got the same thing. Waiting for the patch now.

Brandon Sheley
10-15-2007, 05:06 AM
nice hack, looks cool :)
I'll have to think of a reason to use it now :D

MDK-Indy
10-15-2007, 10:05 AM
I have a Database Error...

Datenbankfehler in vBulletin 3.6.8:

Invalid SQL:

SELECT *
FROM candvoting_pollbooth
WHERE enddate < 1192445146
AND status = 1;

MySQL-Fehler : Table '_vbulletin.candvoting_pollbooth' doesn't exist
Fehler-Nr. : 1146
Datum : Monday, October 15th 2007 @ 12:45:46 PM
Skript : http://xxx/cron.php?&rand=825430 (http://forum.gwars.de/cron.php?&rand=825430)
Referrer : http://xxx/showthread.php?p=65192 (http://forum.gwars.de/showthread.php?p=65192)
IP-Adresse : xxx.xxx.xxx.xxx
Benutzername : Unregistriert
Klassenname : vB_Database

How i can fix it?

greeting Indy

Kalina
10-15-2007, 01:26 PM
What "varname" and "Log Phrase" do we give the scheduled task?

I also have a Database Error...

Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT * FROM candvoting_pollbooth
WHERE candvoting_pollboothid =;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
Error Number : 1064
Date : Monday, October 15th 2007 @ 09:46:37 AM
Script : http://www.mydomain.com/candvoting_nominate.php?do=nominate&memberid=2339
Referrer : http://www.mydomain.com/showthread.php?p=97608
IP Address : xx.xxx.xx.xx
Username : Kalina
Classname : vb_database

I get this error too when I click "nominate", I also don't understand why "nominate" is visible if there's no active polls.

slyreptile
10-15-2007, 03:21 PM
Tagging this for further consideration! Sounds like a great hack.

CBTS Pennywise1
10-15-2007, 07:13 PM
Same here Database error when I click Nominate now.

vBsquad
10-15-2007, 07:37 PM
Not sure why I'm not getting my email notifications, but I'm working on the db issue now.

Doctor Death
10-15-2007, 09:13 PM
When nominations are filled, you still have to click on name to get to vote?

I have an active poll right now and it is stuck on four votes without a way to move the voting forward.

Think that this hack needs a little unhacking.

Author: Can you give us some assist?

CBTS Pennywise1
10-15-2007, 10:27 PM
Sweet thanks a bunch.

Doctor Death
10-16-2007, 09:13 AM
Not sure why I'm not getting my email notifications, but I'm working on the db issue now.

Send me a PM if you want a logon to my board which has this installed. Might be good for you to see what it is/is not doing in an operational environment.

Among other things, there are HTML/PHP errors in the voting page which have precluded anyone from voting.

I would really like to get this working properly.

r./

Doc

edenx
10-16-2007, 09:18 AM
How about users been able to submit new voting booth's for approval ?

Paul M
10-16-2007, 11:50 AM
Please note that copyright does not expire simply because an author has not visited the site for an extended period of time - and indeed, the original modification has licence details that clearly prohibit it to be copied. I have compared the two, and large portions have been copied across.

Therefore we have no choice but to move this to the Graveyard for now, as you do not appear to have permission to copy the original code.

JFYI, I have tried to contact Trafix to seek his permission for you, but unless it is given, then this will have to remain withdrawn.