The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
[EDIT] Some users found a badley-coded part of the hack, I am rewriting that part and therefore have deleted the url from this post[/EDIT]
The Poll Hack for the vB, now updated for speed and fuctionality. Demo at http://www.naboonline.com/polltest/ new features from 0.9.2 (previous version) - if a user votes without logging in, is asked to login and the pollvote still counts (2 new templates,error_pollvotenologin, error_pollvoteinvaliduser) - Graphical view of poll results available. Template pollyesvote has a new variable $pollbargraph. If you do not want to have the graphical view, simply remove the variable. - poll icon ist now not needed to be inserted into the vBulletin icon db. - new file pollmodule.php - hacks in files only reference to it, much less code to enter into the new files! - speed enhancements and less mysql calls. Overall features - Let registered users post a new thread that has a poll integrated in it - Let registered users vote on the poll - Multiple votes impossible as userid is stored on vote - Define # of poll options in CP - Limit who can post a poll by usergroups (from the control panel) - Designed to be easily translated. Only some text is hard coded (see localisation section below) - Fully templateable - you can customise the look of the poll - Users who can not post can not vote as well - Make sure person did not vote, press back, and vote again - Admin/Moderator edit of Polls at all times - Edit Poll while no votes (for user who started the poll thread) - vB code parse for options - closing a thread == close a poll - Admin delete - View results without voting - Close a poll (admin/mod/author) - Graphical view of votes (bar graph and/or pie graph) **NEW** Note to upgraders: Due to a change in the how data is stored, the new poll is not backwards compatible. Therefore, you will need to run updatepoll.php The poll hack will be intergrated into vBulletin 2.0, so if you are in no hurry, you should better wait [Edited by doron on 11-04-2000 at 06:00 AM] Show Your Support
|
Comments |
#2
|
|||
|
|||
Hey doron, does this work with 1.1.4?
|
#3
|
|||
|
|||
yes, there is a special 1.1.4 install file (notes114.txt) which details installing it on 1.1.4. the polltest forums run 1.1.4 now.
|
#4
|
|||
|
|||
I'll install it on my test board then! (I love playing with new stuff). Unfortunately since the PM hack isn't compatible with 1.1.4, I can't go live with that version
But I'll let you know if I come across anything!! |
#5
|
|||
|
|||
Hello Doron,
Thank you very much for your efforts. I am getting a couple of errors:
Quote:
|
#6
|
|||
|
|||
double poll: go to your postbit template,
$posticon <smallfont><B>$postitle</b></smallfont> <p><normalfont>$message<BR><BR>$pollbit</normalfont></p> remove $pollbit. as for the 2nd, looking at it |
#7
|
|||
|
|||
In showthread.php my line around 180 looks like this:
Code:
$posts=$DB_site->query("SELECT post.dateline as dateline,post.postid as postid,post.pagetext as pagetext,post.allowsmilie as allowsmilie,post.signature AS showsignature,post.title as title,post.ipaddress as ipaddress,post.iconid as iconid,post.username as fakename,post.userid as userid, user.usergroupid as usergroupid,user.userid as userid,user.email as email,user.username as username,user.usertitle as usertitle,user.signature as signature,user.showemail as showemail,user.homepage as homepage,user.icq as icq,user.aim as aim,user.yahoo as yahoo,user.joindate as joindate,user.posts as posts,user.usertext as usertext,user.iconpath as iconpath,user.city as city,user.state as state,user.country as country,user.receivepm as receivepm FROM post LEFT JOIN user ON (user.userid = post.userid) WHERE post.threadid=$threadid AND visible=1 ORDER BY dateline $postorder LIMIT $limitlower,$perpage"); Code:
$posts=$DB_site->query("SELECT post.pollid as pollid,post.dateline as dateline,post.postid as postid,post.pagetext as pagetext,post.allowsmilie as allowsmilie,post.signature AS showsignature,post.title as title,post.ipaddress as ipaddress,post.iconid as iconid,post.username as fakename,post.userid as userid, user.usergroupid as usergroupid,user.userid as userid,user.email as email,user.username as username,user.usertitle as usertitle,user.signature as signature,user.showemail as showemail,user.homepage as homepage,user.icq as icq,user.aim as aim,user.yahoo as yahoo,user.joindate as joindate,user.posts as posts,user.usertext as usertext,user.iconpath as iconpath,user.city as city,user.state as state,user.country as country,user.receivepm as receivepm FROM post LEFT JOIN user ON (user.userid = post.userid) WHERE post.threadid=$threadid AND visible=1 ORDER BY dateline $postorder LIMIT $limitlower,$perpage"); |
#8
|
|||
|
|||
No because that error is being generated by a query in poll.php
|
#9
|
|||
|
|||
ahh, you have some of the optimisation hacks installed, so yes, that should help.
perhaps you should kill your cookies and see if that helps too. |
#10
|
|||
|
|||
I would say that poll.php isn't getting the threadid passed onto it after the user logs in i.e. <SUBMIT type="hidden" name="threadid" value="$threadid">
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|