![]() |
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=250 |
Psybernaut:i tried to settle a test bet,the payout was supposed to be more than what the bookie's vcash have in hand.the result is the bookie have a huge enormous value of vcash instead.any ideas?
|
Quote:
psybernaut:if i'm using vcash,would i still need to carry those other hacks below as well? |
Quote:
|
Quote:
geo1 - sorry about that problem, vcash is an unsigned int so it wraps to a large number instead of going negative. Here's a fix that will set the bookies cash to 0 instead of going negative. NOTE: a bookie can exploit this by putting all their cash in the bank (for vbbux/ebux/ucash) before settling bets, so it's not perfect! This applies to all cash systems, just replace the entire vbookie_take_bookie_cash() function. In includes/functions_vbookie.php, find: Code:
// psybernaut mod Code:
// psybernaut mod Code:
// take the bookies money Quote:
I'll update my original post to include these changes, so only make this change if you already made the mod previously and need to fix the 'paying out more that you have' issue. EDIT: Updated the vbbux hook to deduct money from the bookie's bank account if they don't have enough cash on hand. |
The question is... If I want to use the bookie option so they can go broke... will this mod work with vcash? I do not have any other cash methods installed..
Thanks in advance, Psybernaut! Catsgot9 |
Quote:
|
does this work with 3.54?
|
Quote:
|
Thanks psybernaut!i'll correct that once i've reach home...:)
|
Quote:
Quote:
|
thanks to psybernaut,i've vbookie events paying out from the vbookies themselves.works great!thanks alot!
|
I just installed this hack and can't get it to except my attempts to change the usergroups permissions. I click on a usergroup and set everything to yes and then save it. It says it saves but then I check to see if its set to yes and they arn't. Has anyone else had this proble? or am I doing something wrong?
|
> Has anyone else had this proble?
Everyone has because the install code is "broken". Just import the XML again and select override |
Quote:
|
Should have been deleted too, though as it has not been deleted ... not possible.
|
On the main vbookie page, the dropdown to show different events:
Currently showing * Events. Switch to * Events If you choose "settled", it brings my forum down. mysql gets a too many connections error. I do have a lot of settled events, but I can't understand why one query would bring it down. Either way, just thought I'd report it. I took the option off of my forums for the meantime. I'm using the latest version of vbookie. |
Edit vbookie.php and replace
PHP Code:
PHP Code:
UPDATE vbookie_items, thread SET vbookie_items.threadid=thread.threadid WHERE thread.vbookie_item_id=vbookie_items.item_id; [/sql] Execute these queries and check if it does help. |
I'm currently testing this mod. I think you've done an awesome job, Andreas. :) Is it possible to add (either in XML or SQL Query) variance in the amount of cash (default 500) by Usergroup upon registration and current registries? This is what I'm thinking:
In XML: Code:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD vbookie_cash BIGINT UNSIGNED DEFAULT '500' AFTER pmunread WHERE usergroupid='x'"); Code:
$db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=500" WHERE usergroupid='x'); ------------------------ EDITED: I modified the code bit and this part worked in SQL Query. :) Well, sort of. It only changes curent registered members upon usergroupid definition. New registries still inherit default vcash settings: Code:
UPDATE user SET vbookie_cash='500' WHERE usergroupid='x'; Code:
ALTER TABLE vbtest_user ADD vbookie_cash BIGINT UNSIGNED DEFAULT '5000' WHERE usergroupid='z' AFTER pmunread; ------------------------ Edited Again: I could set SQL Query for userids such as: Code:
UPDATE vbtest_user SET vbookie_cash='5000' WHERE userid='z'; |
Love this mod, adds such value to my board.
Wondering if might be able to get a bit of help. A member created an event in vBookie, then my some mistake, they deleted the thread before they had closed the event. The event is now still listed in vBookie, and can't be closed or deleted. Any help appreciated. |
^yah i have the same problem :(
|
Having some trouble. When updating Usergroup settings, it is not saving the vBookie settings. As in, when I select "yes" can post events, it does not change to this, and stays on "no" when the page reloads.
|
As posted half a ton of times already
Import the XML again or rebuild bitfields. |
deleted
|
Hey Andreas, how hard would it be to fix this permissions problem? I haven't looked at the code yet, but if you like I'd be happy look into it and send you an update.
|
For some reason...whenever I edit the admin permissions to be able to add vBookie stuff...I save and then when I look at it again...its back to no...
...anyone one else have that prob? |
Good grief !
:confused: |
<a href="https://vborg.vbsupport.ru/showpost.php?p=932906&postcount=743" target="_blank">https://vborg.vbsupport.ru/showp...&postcount=743</a>
|
edit, I found
Code:
UPDATE user SET vbookie_cash = ('500') But after 2 billion vcash, it counts not correctly. How can I put back by sql query all user again to 500 vcash? Thus I start again from the beginning. Greets |
All installed and uploaded as instructed however when in my Usergroup manager it will not allow me to change the options to Yes for posting events, and allowing to edit,etc it says updating but then sticks with them disabled.
Any ideas why or possible fix? |
Quote:
|
Have uploaded the plugin again and still no effect, how do i rebuild bit fields?
|
FFS! Anyone else sick and tired of the same question being asked by people either too lazy or too stupid to read the bloody thread? :angry:
|
Well sorry for asking for help thought this was meant to be a helpful community.
|
Quote:
|
Problem solved thanks to all those who helped. And will read more next time.
|
Minor fix.. when showing bet statistics (vbookie.php?do=stats), private bets don't show up correctly. ie. You see "$vbphrase[anon] won 1850 on ..." instead of "anon won 1850 on ...".
The fix is pretty simple. In vbookie.php, find: Code:
$user = '<i>$vbphrase[anon]</i>'; Code:
$user = $vbphrase['anon']; |
Quote:
I know we created the problem ourselves, but will take all the help I can get.... |
I'm having problems integrating vBookie with eBux. I have either 1.0.6 or 1.0.7, can't remember which, but it lets me select ebux as an option. The problem is, it uses the wrong database field for the bank. It uses ebank, where the field in the user table is vbbank. How can I fix this?
|
ok I know this used to work fine with ebux, but it seems as though every since I upgraded ebux to the latest vbplaza I'm having issues now. I just wondering if there is something I have to update to reflect the changes or perhaps I have another problem.
|
All times are GMT. The time now is 06:32 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:
|