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

  #661  
Old 22 Aug 2005, 18:47
nonet nonet is offline
 
Join Date: Jul 2004
Okay gang, I'm stumped. I've read through all 44 pages of this thread and still cannot get past my issue. When I create a new thread the option to post a new event does not appear. I know I can hear it already....double check your template edits. Here is what I've done so far.

1. Triple checked EVERY single file myself. I even hired a coder of SL to double check my work. No issues EVERY file was changed correctly.

2. I reverted all templates just for the heck of it.

3. Ran the installer again except for DB changes.

4. Checked usergroup permissions to be certain Admin can create, edit and bet on events.

5. checked phrases clicked edit on each one and resaved.

At this point I'm open to any ideas.

Last edited by nonet; 22 Aug 2005 at 18:50.
Reply With Quote
  #662  
Old 22 Aug 2005, 19:00
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Check your File- and Template Edits and Permissions

Or drop me a PM with a FTP/ACP Login.
Reply With Quote
  #663  
Old 22 Aug 2005, 21:43
subnet_rx subnet_rx is offline
 
Join Date: Mar 2005
How is everyone handling football or other games that might have sports odds like "Win by 3"?
Reply With Quote
  #664  
Old 22 Aug 2005, 22:54
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Attention

Another SQL Injection Leak

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

Reply With Quote
  #665  
Old 22 Aug 2005, 23:07
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
thanks for the quick update Kirby
Reply With Quote
  #666  
Old 22 Aug 2005, 23:11
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Originally Posted by nonet
Okay gang, I'm stumped. I've read through all 44 pages of this thread and still cannot get past my issue. When I create a new thread the option to post a new event does not appear. I know I can hear it already....double check your template edits. Here is what I've done so far.

1. Triple checked EVERY single file myself. I even hired a coder of SL to double check my work. No issues EVERY file was changed correctly.

2. I reverted all templates just for the heck of it.

3. Ran the installer again except for DB changes.

4. Checked usergroup permissions to be certain Admin can create, edit and bet on events.

5. checked phrases clicked edit on each one and resaved.

At this point I'm open to any ideas.
Try creating a new usergroup "vBookie admins", with obviously permissions to create vbookie events .. add yourself into the 'Additional Usergroups' and then try making a vbookie event.
Reply With Quote
  #667  
Old 22 Aug 2005, 23:49
michaelsilvia michaelsilvia is offline
 
Join Date: Jul 2005
Will this work with 3.0.7.? Thanks!

Mike
Reply With Quote
  #668  
Old 23 Aug 2005, 17:35
subnet_rx subnet_rx is offline
 
Join Date: Mar 2005
Originally Posted by TTG
Try creating a new usergroup "vBookie admins", with obviously permissions to create vbookie events .. add yourself into the 'Additional Usergroups' and then try making a vbookie event.
I'd also look at your forum permissions, that's where I got tripped up. I checked the group permissions ten times, but never set the forum permissions to allow the creation of an event.



I see in the instructions, that it's possible to restrict events to certain groups. Is this on a per event basis? Is it possible to setup leagues for NFL and College seperately with seperate groups and events for each?
Reply With Quote
  #669  
Old 23 Aug 2005, 17:36
subnet_rx subnet_rx is offline
 
Join Date: Mar 2005
Originally Posted by michaelsilvia
Will this work with 3.0.7.? Thanks!

Mike
yes, it will.
Reply With Quote
  #670  
Old 23 Aug 2005, 17:44
Steelersfan Steelersfan is offline
 
Join Date: Aug 2005
Will this work on 3.0.8?

I have tried to run the installer (haven't even got to the edits yet) and it will install the templates and phrases but when it gets to database I get:

Database error in vBulletin 3.0.8:

Invalid SQL:
CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM

mysql error: Invalid default value for 'group_id'

mysql error number: 1067

Any ideas?
Reply With Quote
  #671  
Old 23 Aug 2005, 17:53
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Use

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

Reply With Quote
  #672  
Old 24 Aug 2005, 04:39
Steelersfan Steelersfan is offline
 
Join Date: Aug 2005
Thanks! Now I will go try the rest of the install.
Reply With Quote
  #673  
Old 01 Sep 2005, 15:14
sharonkitty67 sharonkitty67 is offline
 
Join Date: Jul 2005
I need someone to install this for me!! Gahhhhhhhhhhhhh! Im not that great at this sorta thing - I'll pay!
__________________
http://www.fsuniverse.net/forum
Reply With Quote
  #674  
Old 01 Sep 2005, 16:55
MRGTB MRGTB is offline
 
Join Date: Dec 2004
Does this work with vBulletin 3.0.8. I have installed it and took my time with all the file edits. The vBookie page is there and I'm getting no errors. Everything seems to have been installed just fine.

But when I go to post a new thread. The link is not there to post a vBookie bet with the thread.

I have checked usergroup permissions and enabled admin to post bets as well as members. And I have also enabled the betting system using it own betting type. But still no option is there in a new thread to attach a bet.

Can somebody advice and help me please with this.

PS: I also notice that somebody above said he got a MySQL error duting the installtion on 3.0.8. Well the install file went OK for me and I did'nt get any MySQL errors at all. :ermm:

Last edited by MRGTB; 01 Sep 2005 at 16:57.
Reply With Quote
  #675  
Old 01 Sep 2005, 17:25
MRGTB MRGTB is offline
 
Join Date: Dec 2004
My mistake, I didn't know after the vBadvanced bit there were also a couple of template edits also to be done also. It's working fine but I have question.

There is a section in the file edits were you are asked to open the file called init.php

and search for this:


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

and place with this:


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

The problem is in vBulletin 3.0.8 the line you search for called.

'stylecache'

already had a comma after it like this:

'stylecache',

So what do I do with the placement code. Do I add a comma after the last line in the mod instead.

Should it look like this:


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

or this: Seeing as the stylrcache line in vbulletin 3.0.8 already has a comma after it unlike the mod that asks you to search for it mwithout a comma which must have been a 3.0.0 thing that wasnt there in that version.


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


Last edited by MRGTB; 01 Sep 2005 at 17:29.
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:02.

Layout Options | Width: Wide Color: