The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vBookie - vBulletin Betting Hack Details »» | |||||||||||||||||||||||||
vBookie
Introduction vBookie is a 'bookmakers' or betting extension to vBulletin. It enables authorised members to post Events and Outcomes that forum members can bet on. Each Outcome has its own set of odds, and odds can be modified through the life of an Event (bets that are placed are stored with the prevailing odds, so even if the odds change, your users are paid at the correct rate). Once the results are known, Events can be settled and forums members awarded their winnings. vBookie uses its own vCash by default, but this has no more use than as 'bragging rights'. However, vBookie also comes with a built-in switch to allow it to use either uCash or Petz money instead. That means that all bets are paid for and settled using uCash or Petz money, making betting even more attractive than just for fun on forums with uShop/Petz installed. Although vBookie does not have any built-in facility to integrate with any other store hacks, it's a very simple job to hack vBookie itself to integrate it with any store/points system you care to use. Features
Please click if you install this hack, thanks. Please also let me know - send me an email or a PM. If you'd let me know the forum URL too that'd be cool! vBookie is free, and will remain free. Updates 1.0.0 -> 1.0.1 - adds the ability to delete Events. See this post for upgrade instructions if you already have 1.0.0 1.0.1 -> 1.0.2 Corrected a minor bug with the charity mode when using uCash. See this post for manual upgrade instructions from 1.0.1. 1.0.2 -> 1.0.3 Corrected a minor bug with the richest people display when using uCash. Just overwrite includes/functions_vbookie.php with the one from the new Zip file. 1.0.3 -> 1.0.4 Corrected some date display problems when using "Detailed" dates. For manual update instructions, see this post. Corrected Petz bug whereby all winnings were paid to the bet's owner rather than individual winners. To upgrade from 1.03 or earlier, see this post or overwrite includes/functions.vbookie.php with the 1.0.4 version. Problems? -> Petz - If you are using Petz there is a bug in all versions up to and inclusing 1.0.3. Your players won't get paid their winning, and all payouts will end up in the account of the person that posted the Event. To correct this, please see this post. This fix will be incororated into 1.0.4 onwards. -> If you can't post Events, or can't bet on them make sure you have set your user permissions -> If you have an SQL error Invalid SQL: UPDATE SET =25 WHERE <25 make sure you are using version 1.0.3 or later. -> If you have any other general problems, please check the installation/hack instructions and make sure you have carried out all the steps and also check that you made the changes correctly Anything else, ask in this thread. Other Stuff -> If you are using Detailed Date & Time display and have a problem with Event dates appearing as '1 Minute Ago', see this post. -> If you want to use poster 'Reputation' as the currency for vBookie, see this post. About Odds Odds of "5/1" are "amount won per amount placed". This means that I would win 5 for every 1 placed. Of course, if I win, I get my stake back as well. Odds of "1/5" means that I win 1 for every 5 placed. I'd have to place 25 to win just 5. Decimal Odds Decimal odds are just another way of displaying the same information. 2.0 is the same as 2/1. 0.2 is the same as 1/5. vBookie only lets you specify odds in terms of x/y, but if you think in terms of decimal you can still work out what odds to provide. Simply think of your decimal odds as "2.0 / 1.0" or "0.5 / 1.0" and then multiply each side through by 10 or 100 until there are only zeros to the right of the decimal point, then just take the whole number part. 2.0 / 1.0 has no decimals, so this is the same as 2/1 0.5 / 1.0 has a 0.5, so multiply both parts by 10 to get 5.0 / 10.0. Then you can specify your odds as 5 / 10. You might also realise that this is the same as 1/2. The technique is a simple way to work out any odds you may need to specify. Odds of 0.65 -> 0.65 / 1.0 -> 65.0 / 100.0 or 65/100. Then you can divide through by 5 to get to 13 / 20, although this step isn't necessary. _______________________________________ Show Your Support
|
Comments |
#372
|
|||
|
|||
Quote:
1] An option to bet against a spread, or to bet over/under the score 2] On the richest members page, round all $ values to two decimal places. |
#373
|
|||
|
|||
Quote:
OK I just had this happen on my first ever test of this after installing it on my board. A few questions.. 1) Can anyone settle the bets?? I see no setting asking who can settle the bets.. I'm assuming that anyone on the board can settle the bet and that somebody on my board settled the bet and settled it wrong? 2) Is there anyway to find out who settled the bet? |
#374
|
|||
|
|||
Ok I found out it was a mod that settled.. must be default that mods can settle bets.. ?
How can I make it so that only the admin can settle bets? |
#375
|
|||
|
|||
I'm getting this error after having completed all the file edits:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in d:\server\easyphp\www\vbulletin\includes\functions .php on line 1887 Fatal error: Call to undefined function: is_browser() in d:\server\easyphp\www\vbulletin\global.php on line 59 I can't for the life of me find where the error i tho as those errors have nothing to do with any of the dits I'd done. I've gone thru all the edits to make sure I didn't drop a ")" or ";" whilst copying over the code and everything looks fine. I'm really stumped. Anyone any ideas? The Wolverine |
#376
|
|||
|
|||
I've narrowed it down to this in the instructions:
Code:
OPEN includes/functions.php FIND PHP Code: // get CSS width for outerdivwidth from outertablewidth BEFORE, ADD PHP Code: // +++ vBookie // declares the vbookie image directory $stylevar['imgdir_vbookie'] = "images/vbookie"; // --- vBookie SAVE & CLOSE Still can't figure out why that statement is causing so much havoc though. Any ideas? The Wolverine |
#377
|
|||
|
|||
Can someone tell me where in the files for this hack is the following condition variable set?
Code:
<if condition="$showsettlebutton"> |
#378
|
||||
|
||||
Here's a suggestion:
Make it possible to 'add a vBookie event to this thread', as we can currently do with polls, after a thread has been created. |
#379
|
|||
|
|||
I've sorted my issue out now and it works like a charm I have one question though. I want to make use of vCash to hand out cash so I thought I'd program a lil addon in the admin cp. All I'm going to want the addon to do is submit a form with userid and payment and basically add that to what the user currently has in the db. The querying is simple enough, I'm just not sure about creating the form in keeping with the way the form is created for the main vBookie options in the admin cp. So what I mean is I'm unsure as to how the functions print_cp_header, print_form_header, print_table_header etc. work. Anyhow able to explain briefly how the submission of the form works and how the form is constructed with those functions in vbookie_admin.php?
Thanks The Wolverine |
#380
|
|||
|
|||
Obviously support for this hack is gone..
I worked out my problem to there is a line in vbookie.php that gives moderators permission to settle bets.. I just deleted that line. |
#381
|
||||
|
||||
Quote:
I was hoping to modify the vbookie thus: Give each user 100 cyber sheckles to bet on EACH event, and keep a running total of their wins/losses. It would allow me to run a footy prediction competition. Anyone able to help on how to achieve this? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|