Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBookie for vBulletin 3.5 Details »»
vBookie for vBulletin 3.5
Version: 1.0.7, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 08-11-2005 Last Update: 02-17-2006 Installs: 633
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

vBookie

Introduction

This is a Port of the original vBookie Hack created by tdjrico; full credits to him for the idea and the kind permission to port his work

A t t e n t i o n
This Hack is unsopported and incompatible with vBulletin 3.6+
You are hereby advised to not use it.
Please do not ask me about support and/or updates - there will be none.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #632  
Old 02-23-2006, 07:59 AM
VerkroostJ VerkroostJ is offline
 
Join Date: Dec 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for mod; it's very nice.

However, there is a fundamental problem with the odds. When you enter the normal odds format, e.g. 2/1 the odds are also displayed in decimal format, e.g. 2.0.

The problem is that the coversion is not correct. 2/1 is 3.0 in decimal odds, not 2.0 as it currently displays. The conversion formula is divide and add one.

Decimal odds reflect your total payback based on a bet of 1 unit, so if you were to bet £1 at decimal odds of 3.0, if your bet won you would receive £3 back; effectively £2 in winnings and your £1 stake.

Normal odds don't take into account the stake returned, so 2/1 means for every 1 unit bet you will receive 2 units in winnings. However, you will also receive your stake back. Thus, if you were to bet £1 at odds of 2/1, if you bet won you would receive £2 in winnings and your £1 stake; £3 total
Reply With Quote
  #633  
Old 02-23-2006, 12:30 PM
RGSMDNR RGSMDNR is offline
 
Join Date: Jun 2005
Location: Calgary, Alberta
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cdorka
i had the same prob
i didnt see an email about this problem and fix with version 107

1.0.6 was new version
1.0.7 released shortly after

redownload the files and upload them. you should be good to go.
i have tried that.. didnt work.
Reply With Quote
  #634  
Old 02-23-2006, 10:16 PM
virtualraceday virtualraceday is offline
 
Join Date: Dec 2005
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by VerkroostJ
Thanks for mod; it's very nice.

However, there is a fundamental problem with the odds. When you enter the normal odds format, e.g. 2/1 the odds are also displayed in decimal format, e.g. 2.0.

The problem is that the coversion is not correct. 2/1 is 3.0 in decimal odds, not 2.0 as it currently displays. The conversion formula is divide and add one.

Decimal odds reflect your total payback based on a bet of 1 unit, so if you were to bet ?1 at decimal odds of 3.0, if your bet won you would receive ?3 back; effectively ?2 in winnings and your ?1 stake.

Normal odds don't take into account the stake returned, so 2/1 means for every 1 unit bet you will receive 2 units in winnings. However, you will also receive your stake back. Thus, if you were to bet ?1 at odds of 2/1, if you bet won you would receive ?2 in winnings and your ?1 stake; ?3 total
This is correct.........I hope it will be an easy fix the payout amounts don't change, the display of the decimal odds just needs to have a "+ 1". Maybe someone who's handy in php can find where this bit of code is and show us how to do it.

An unrelated question, if I want to use vCash, where can I manually add funds to users accounts? Let's say I am running a weekly comp, and I want to reset everyone to 1000 each week for example....
Reply With Quote
  #635  
Old 02-23-2006, 10:28 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2/1 is 2.0.
For every 1 $ placed you win 2 $ + you get your stake back, so that's 3 $ in total.
Reply With Quote
  #636  
Old 02-23-2006, 11:01 PM
virtualraceday virtualraceday is offline
 
Join Date: Dec 2005
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
2/1 is 2.0.
For every 1 $ placed you win 2 $ + you get your stake back, so that's 3 $ in total.
Hey Andreas,

In sports betting, all decimal pricing includes the "initial stake".

With fraction odds, you get to see "2 parts" in the X/Y format:

5/1
X = 5 = profit
Y = 1 = Initial stake
Total = 6

Because in decimal pricing, there is only "1 part", it includes both X + Y so that the user knows if they bet 1 unit, they will get back X + Y total

I hope this makes sense, I've been gambling too long so this part I am definitely sure of

I just want to say thanks so much for this! I'm busy setting up a forum with it in use

p.s. I just found the Wiki entry for it, I hope it helps to confirm:

http://en.wikipedia.org/wiki/Fixed-odds_gambling
Reply With Quote
  #637  
Old 02-23-2006, 11:24 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, i'ts just a matter of how to skin the cat
Doesn't affect payouts so it isn't a big deal, is it?

[high]* Andreas doesn't have any clue of betting nor did I ever use this Hack, so sorry for my lack of knowlegde.[/high]
Reply With Quote
  #638  
Old 02-24-2006, 12:01 AM
virtualraceday virtualraceday is offline
 
Join Date: Dec 2005
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
Well, i'ts just a matter of how to skin the cat
Doesn't affect payouts so it isn't a big deal, is it?

[high]* Andreas doesn't have any clue of betting nor did I ever use this Hack, so sorry for my lack of knowlegde.[/high]
Hey it's a good thing you don't bet...it's no good losing money. Which is why this mod is great because it's all virtual

Do you know where I can change the code to add the 1? My forum is going to be for gamblers and they are definitely going to complain lol...
Reply With Quote
  #639  
Old 02-24-2006, 12:11 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

** No guarantees **

In Plugin vBookie: Show Events in Showthread
PHP Code:
$decimal_odds = (float)$outcomes[$i]['odds_against']/(float)$outcomes[$i]['odds_for']; 
PHP Code:
$outcome['odds_decimal'] = sprintf("%0.2f", ((float)$outcome['odds_against']/(float)$outcome['odds_for'])); 

In vbookie.php (each bit might appear multiple times)
PHP Code:
$decimal_odds = (float)$outcomes[$i]['odds_against']/(float)$outcomes[$i]['odds_for']; 
PHP Code:
$bet['odds_decimal'] = sprintf("%0.2f", ((float)$bet['bet_odds_against']/(float)$bet['bet_odds_for'])); 
PHP Code:
$outcomes[$i]['odds_decimal'] = sprintf("%0.2f", ((float)$outcomes[$i]['odds_against']/(float)$outcomes[$i]['odds_for'])); 
Add 1 to all those bits.
Reply With Quote
  #640  
Old 02-24-2006, 01:54 AM
virtualraceday virtualraceday is offline
 
Join Date: Dec 2005
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
** No guarantees **

In Plugin vBookie: Show Events in Showthread
PHP Code:
$decimal_odds = (float)$outcomes[$i]['odds_against']/(float)$outcomes[$i]['odds_for']; 
PHP Code:
$outcome['odds_decimal'] = sprintf("%0.2f", ((float)$outcome['odds_against']/(float)$outcome['odds_for'])); 

In vbookie.php (each bit might appear multiple times)
PHP Code:
$decimal_odds = (float)$outcomes[$i]['odds_against']/(float)$outcomes[$i]['odds_for']; 
PHP Code:
$bet['odds_decimal'] = sprintf("%0.2f", ((float)$bet['bet_odds_against']/(float)$bet['bet_odds_for'])); 
PHP Code:
$outcomes[$i]['odds_decimal'] = sprintf("%0.2f", ((float)$outcomes[$i]['odds_against']/(float)$outcomes[$i]['odds_for'])); 
Add 1 to all those bits.

It worked!!!

Thanks so much for your time..... I really appreciate it!
Reply With Quote
  #641  
Old 02-24-2006, 05:11 AM
dxguru dxguru is offline
 
Join Date: May 2005
Location: England
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dxguru
A quick question ...
If I upgrade from 1.0.5 build 6 to 1.0.7, will there be any effect of my current unsettled events?

Would an alternative be to wait for all events to be settled and then upgrade?
Anybody, please?

Don't worry ... upgraded anyway.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07345 seconds
  • Memory Usage 2,348KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete