The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
creating a onclick function
lets say i got a battle hack feild... an when the poll gos to five i want it to add a win to that persons win column... im trying to create my own battle hack
|
#2
|
|||
|
|||
I was thinking that you could check if a user has 5 votes and if so update the user table.
When someone clicks "vote" it'll check if any of the battlers have 5 votes. When one of the two does get five votes it will update the user and poll tables. If you want to know about a particular code you can ask. This is untested PHP Code:
|
#3
|
|||
|
|||
so its not a onclick function? an can i create custom pages in admin cp i want options for this hack when im done
|
#4
|
|||
|
|||
You don't need an "onclick" function. The code I wrote will automatically add a win to the winner and a loss to the loser.
I'm assuming you mean "Can I make my own categories in the ACP"? Yes you can. There is an article somewhere around here. |
#5
|
|||
|
|||
ok thanks..... ill try to integrate this to add to a certain profile feild if it doesnt already.. .this needs to go in the poll.php file.. or just the poll template ? i was going to create a record of peoples battle stats in admin cp..
|
#6
|
|||
|
|||
I believe you would add it to the hook titled "poll_update_process".
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|