Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBookie - vBulletin Betting Hack Details »
vBookie - vBulletin Betting Hack
Mod Version: 1.00, by tjdrico (Member) tjdrico is offline
Developer Last Online: Apr 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.0 Rating: (5 votes - 4.80 average) Installs: 359
Released: 04 Jun 2004 Last Update: Never Downloads: 389
Not Supported  

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
  • master switch to turn vBookie off
  • option to use uCash
  • option to use Petz money
  • settings to restrict the creation of Events to specific user groups
  • settings to restrict which user groups can bet on Events
  • settings to restrict which user groups can edit or settle other people's Events
  • per-Event, specify whether punters may bet on more than one outcome
  • optional 'charity mode' so that the poorest members of the forum always have something to play with
  • supplied with a module for vBadvanced

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.


_______________________________________

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	post-event.gif
Views:	3485
Size:	100.7 KB
ID:	18957   Click image for larger version

Name:	open-event-display.gif
Views:	2913
Size:	61.9 KB
ID:	18958   Click image for larger version

Name:	settle-event-display.gif
Views:	2022
Size:	45.5 KB
ID:	18959   Click image for larger version

Name:	event-thread.gif
Views:	1347
Size:	6.6 KB
ID:	18960  

Click image for larger version

Name:	yes-post.gif
Views:	1762
Size:	5.6 KB
ID:	18961   Click image for larger version

Name:	main-page-main.gif
Views:	2240
Size:	37.3 KB
ID:	18962  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
vBookie for vBulletin 3.5 Andreas vBulletin 3.5 Add-ons 2436 06 Oct 2013 15:37

  #31  
Old 06 Jun 2004, 19:03
djohn djohn is offline
 
Join Date: Feb 2004
Awesome. Before i install this, does it have any group and forum specific permissions, so that only specified groups can bet or post vBookie events in specified forums?
Reply With Quote
  #32  
Old 06 Jun 2004, 19:19
tjdrico's Avatar
tjdrico tjdrico is offline
 
Join Date: Apr 2004
Originally Posted by djohn
Awesome. Before i install this, does it have any group and forum specific permissions, so that only specified groups can bet or post vBookie events in specified forums?
Yes. You can use the standard permissions system to grant/revoke rights to:

- add/edit an event
- edit someone else's events
- bet on events

These can be applied to user groups, or turned on/off on specific forums.

On my forums I have Registered Users allowed to bet, Bookies allowed to add/edit anyone's, and Restricted Bookies allowed to add/edit their own.
__________________
Old communities never die, they just respawn!
vBookie - a bookmaking extension for vB 3.0.0
User-optional Replacements-based Censorship for vB 3.0.0
Hide Threads Posted By Ignored Users for vB 3.0.0
Reply With Quote
  #33  
Old 06 Jun 2004, 19:33
tjdrico's Avatar
tjdrico tjdrico is offline
 
Join Date: Apr 2004
Just updated for 1.0.2 which is a minor fix. I tidied up some stuff and deleted something I shouldn't have. Just upload the includes/functions_vbookie.php file, or do the following change:

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change to:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This would only have affected you if you had the "charity mode" on, and had any users with less than 25 money.
__________________
Old communities never die, they just respawn!
vBookie - a bookmaking extension for vB 3.0.0
User-optional Replacements-based Censorship for vB 3.0.0
Hide Threads Posted By Ignored Users for vB 3.0.0
Reply With Quote
  #34  
Old 06 Jun 2004, 21:25
Wolffman Wolffman is offline
 
Join Date: Apr 2004
When I tried to edit the permissions this came up:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #35  
Old 06 Jun 2004, 21:45
tjdrico's Avatar
tjdrico tjdrico is offline
 
Join Date: Apr 2004
Originally Posted by Wolffman
When I tried to edit the permissions this came up:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
According to my local mySQL, those columns shouldn't be in usergroup anyway:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It looks like you didn't follow the installation instructions correctly. Those three columns (canpostvbookieevent, caneditothersvbookieevents, canbet) should have gone directly below "'canseedelnotice' => 262144," in init.php which would make them part of the 'forumpermissions' group.

I recommend that you go through the installation instructions again, double-checking them against what you've actually done.
__________________
Old communities never die, they just respawn!
vBookie - a bookmaking extension for vB 3.0.0
User-optional Replacements-based Censorship for vB 3.0.0
Hide Threads Posted By Ignored Users for vB 3.0.0
Reply With Quote
  #36  
Old 06 Jun 2004, 21:57
Wolffman Wolffman is offline
 
Join Date: Apr 2004
That was my fault. All I did was forget to add a phrase.

Thanks anyway.
Reply With Quote
  #37  
Old 06 Jun 2004, 22:02
tjdrico's Avatar
tjdrico tjdrico is offline
 
Join Date: Apr 2004
Originally Posted by Wolffman
That was my fault. All I did was forget to add a phrase.

Thanks anyway.
Cool! =) Odd error to happen as a result of a missing phrase though.
__________________
Old communities never die, they just respawn!
vBookie - a bookmaking extension for vB 3.0.0
User-optional Replacements-based Censorship for vB 3.0.0
Hide Threads Posted By Ignored Users for vB 3.0.0
Reply With Quote
  #38  
Old 06 Jun 2004, 22:07
lordnex lordnex is offline
 
Join Date: Apr 2004
Real name: Andrew
Good hack, thanks for posting it! It does take a bit of careful editing as it does go into a few hacks and someone not very observant might overwrite those hacks.

Good job though!
Reply With Quote
  #39  
Old 06 Jun 2004, 22:13
tjdrico's Avatar
tjdrico tjdrico is offline
 
Join Date: Apr 2004
Originally Posted by lordnex
Good hack, thanks for posting it! It does take a bit of careful editing as it does go into a few hacks and someone not very observant might overwrite those hacks.
I agree. Unfortunately it's impossible to write instructions that cover every available hack, so it's only really possible to write them assuming an 'as new' unhacked installation. If something like v3Arcade has already been added, or uCash perhaps, or Petz, or... or... or... then the instructions might clash; particularly when it comes to bitfield permissions where the next available number in an original installation might be 16, but that might already have been used by another hack. The savvy hacker would know to use 32 instead, but not everyone has such knowledge.

I've tried to stress in the installation instructions the importance of prior backups, but that's advice not everyone will heed. Sensible people would read through all the instructions first, and compare them to their own files before starting, but this is the real world and people aren't that cautious. =)

I think I might update the installation instructions to stress these points though.

Additional:

OK, updated installation instructions:



I think that's about all I can reasonably do. =)
__________________
Old communities never die, they just respawn!
vBookie - a bookmaking extension for vB 3.0.0
User-optional Replacements-based Censorship for vB 3.0.0
Hide Threads Posted By Ignored Users for vB 3.0.0

Last edited by tjdrico; 06 Jun 2004 at 22:24.
Reply With Quote
  #40  
Old 06 Jun 2004, 22:49
GamerzWorld's Avatar
GamerzWorld GamerzWorld is offline
 
Join Date: Aug 2003
what do you get to start with? Also can you loose all your cash?
Reply With Quote
  #41  
Old 07 Jun 2004, 00:08
tjdrico's Avatar
tjdrico tjdrico is offline
 
Join Date: Apr 2004
Originally Posted by GamerzWorld
what do you get to start with? Also can you loose all your cash?
If you're using uCash or Petz, people start off with whatever they have. If using vCash, it starts at 500. Yes, people can lose all their "money", but there's a "charity" setting that gives 25 to anyone poorer than that whenever a new bet event is added, so people always have something to play with so they can build up a new pot.
__________________
Old communities never die, they just respawn!
vBookie - a bookmaking extension for vB 3.0.0
User-optional Replacements-based Censorship for vB 3.0.0
Hide Threads Posted By Ignored Users for vB 3.0.0
Reply With Quote
  #42  
Old 07 Jun 2004, 03:21
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Real name: Lucius Hunk
Originally Posted by xQuEeNzNaZcHox
OK, I fixed problem B, but problem A is bad.

Screenshot is attached
try this:
- check the links to the JS files.
- view the source to see if there is something like this:
<a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_forumid')"><img id="collapseimg_forumbit_72" src="/buttons/collapse_tcat.gif" alt="" border="0" /></a> , check to see if it got something wrong with those tags.
hope this help
Reply With Quote
  #43  
Old 07 Jun 2004, 04:28
rinkrat's Avatar
rinkrat rinkrat is offline
 
Join Date: Jan 2002
Can this be modded to use VB reputation points as the currency? That would be perfect for my board.
Reply With Quote
  #44  
Old 07 Jun 2004, 08:27
tjdrico's Avatar
tjdrico tjdrico is offline
 
Join Date: Apr 2004
Originally Posted by rinkrat
Can this be modded to use VB reputation points as the currency? That would be perfect for my board.
Yes, that's quite possible.

All you'd need to do is hack the functions_vbookie.php file, changing the 8 instances of 'vbookie_cash' to 'reputation'. That should be all you need to do. You might want to alter some of the phrases as well, as they mention 'cash' such as "You do not have enough cash to cover your bets" (vbookie_not_enough_cash) or "You have 300 cash" (vbookie_may_bet), etc.

Also, in the vBookie general settings, turn off the display of vCash in the postbit, as it'd be pointless to display. Since you're dealing with Reputation, you'd also want to turn off the "charity" mode I expect, as that would re-set anyone lower than 25 to a 25 Reputation each time a new Event is added.
__________________
Old communities never die, they just respawn!
vBookie - a bookmaking extension for vB 3.0.0
User-optional Replacements-based Censorship for vB 3.0.0
Hide Threads Posted By Ignored Users for vB 3.0.0
Reply With Quote
  #45  
Old 07 Jun 2004, 19:18
Ronso Rage Ronso Rage is offline
 
Join Date: Nov 2003
Ok I have a small proble in the changes to the includes/init.php file you say to carry out these changes

OPEN includes/init.php

FIND
PHP Code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH
PHP Code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Well I have the arcade installed and have 'arcadesettings' in that area to replace as well, and leaving it there gives me a parse error, i have tried moving it around and still get the error

Any ideas ?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:45.

Layout Options | Width: Wide Color: