![]() |
Quote:
|
Quote:
|
Ok, I found it. When you donate to a member, and afterward, if you go to their postbit/profile page, and click on where it says Donate, the log will come up. Even if you go to your own postbit/profile page, and click on your "Donate" the log will come up.
|
Quote:
Charge game price in new window: Create a new plugin called ibproarcade_play_game_popup Use Blaine0002 code, just change the amount and your_error message to what you did for the ibproarcade_play_game plugin @ post 392 $amount = '1'; if (($vbulletin->userinfo[$vbulletin->options['icashf']] - $amount) < 0) { eval(standard_error(fetch_error('your_error'))); } $vbulletin->db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['icashf']}={$vbulletin->options['icashf']}-'{$amount}' where userid='{$vbulletin->userinfo['userid']}'"); |
Quote:
|
Hm...yeah, I guess you're right. We don't usually donate cash/points...just gifts. Sorry I couldn't help more.
|
Quote:
The only thing which I see different then is the amount and the error message. Must the amount be different? But where is the difference in code that points to a new window game in stead of the normal game? There should be a lign somewhere that points to the different way of calling the game, isn't there? In any case thanks very much so far for helping me with this! |
Just do the same thing you did to create the first plugin except this plugin use the ibproarcade_play_game_popup hook when adding a new plugin.
The one I made; Product - ibank (dont think it matters but I put them under IBank) Hook location - ibproarcade_play_game_popup title - new window (just my name for it) Code: $amount = '1'; if (($vbulletin->userinfo[$vbulletin->options['icashf']] - $amount) < 0) { eval(standard_error(fetch_error('stars'))); } $vbulletin->db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['icashf']}={$vbulletin->options['icashf']}-'{$amount}' where userid='{$vbulletin->userinfo['userid']}'"); The only thing I changed from the original code from post 392 is your_error to stars as that is the name of the phrase I used to say you do not have enough stars to play a game. If a members clicks on play a game the other one from post 392 charges the game cost, if they click on play game in new window this one charges them the cost of the game. |
Quote:
I've try: Quote:
Quote:
|
Kylek:
Quote:
@Silvervice: I don't think it will help, but did you try 0,25? However I'm afraid it only works with full numbers. |
All times are GMT. The time now is 07:39 AM. |
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:
|