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 |
#22
|
|||
|
|||
Ahhh I did not think of that....YES...that is it.
|
#23
|
|||
|
|||
Doron - so you don't get confused by my last post....the fix did not work.
|
#24
|
|||
|
|||
Freddie - I don't want the moderators to know about the control panel and other such things...but I do agree with your statement.
|
#25
|
|||
|
|||
The problem is that you need to put quotes around your form variables.
ie username="$username" instead of username=$username Can I mod the "Bugs in Hacks" forum also? |
#26
|
|||
|
|||
Damn doron you made it difficult, you need to put more of it into templates. Jim you need to edit the code that sets the $formend variable in pollmodule.php and put quotes around the line that sets the $username
This line: Code:
$formend= "<INPUT TYPE=hidden NAME=action VALUE=pollvote><INPUT TYPE=hidden NAME=username VALUE=$bbusername><INPUT TYPE=hidden NAME=password VALUE=$bbpassword><INPUT TYPE=submit NAME=submitaction VALUE=Vote!> <A HREF=poll.php?action=showresults&pollid=$pollid><normalfont>View Results</normalfont></A></FORM>"; Code:
$formend= "<INPUT TYPE=\"hidden\" NAME=\"action\" VALUE=\"pollvote\"><INPUT TYPE=\"hidden\" NAME=\"username\" VALUE=\"$bbusername\"><INPUT TYPE=\"hidden\" NAME=\"password\" VALUE=\"$bbpassword\"><INPUT TYPE=\"submit\" NAME=\"submitaction\" VALUE=\"Vote!\"> <A HREF=\"poll.php?action=showresults&pollid=$pollid\"><normalfont>View Results</normalfont></A></FORM>"; [Edited by freddie on 11-03-2000 at 07:53 PM] |
#27
|
|||
|
|||
you mean the pollmodule.php....new zip is up with the fix.
it's complex cause I do it dynamically, not via templates. It's a waste of mysql for one line only. now this should be settled, I aplogise for the inconvinience. but that is what users are for, to be misused for finding bugs |
#28
|
|||
|
|||
Doron yes but I do some dynamic things in my hacks also and you can use templates, albeit alot of them. Just look how many I use in my hacks.
|
#29
|
|||
|
|||
Something's wrong...
When i click on 'view results' i get this: There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser. An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists. We apologise for any inconvenience. And guess what you get on 'polltest forum'. http://www.naboonline.com/polltest Here's address line http://www.naboonline.com/polltest/p...pollid=$pollid There should be number instead of $pollid, right? [Edited by PeF on 11-03-2000 at 09:02 PM] |
#30
|
|||
|
|||
Same problem here ... the "view results" link does not work.
http://209.15.159.99/showthread.php?threadid=60884 Go there and try for yourself. |
#31
|
|||
|
|||
The $pollid is being escaped somehow so it isn't being parsed. I will let Doron tell you how to fix it when he comes online..
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|