![]() |
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
|
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:
|
so its not a onclick function? an can i create custom pages in admin cp i want options for this hack when im done :)
|
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. |
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..
|
I believe you would add it to the hook titled "poll_update_process".
|
All times are GMT. The time now is 08:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|