The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vote modifikation
i'd like to check if someone is allowed to vote or not and to write the votenumber into a db
my code looks at moment so: PHP Code:
|
#2
|
|||
|
|||
SELECT answers FROM
have to be: SELECT count(answers) AS counted FROM and then... if ($entry['counted'] < $vbu |
#3
|
|||
|
|||
why?
it should be just one line per poll so theres no count needed if someone votes the answernumber should be set to answernumber +1 |
#4
|
|||
|
|||
i am not that much good in php... but just seeing through the code its like
if(condition) { } else { } else { } when does the 2nd else is called... sorry if its a poor question... |
#5
|
|||
|
|||
oh there coulde be something
thx i'll look at home no the if else else is ok PHP Code:
all the code is shit |
#6
|
|||
|
|||
man you need to use $vbulletin->db->blah instead of $db->blah
Try changing those to what I gave and see if it works. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|