vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBookie for vBulletin 3.5 (https://vborg.vbsupport.ru/showthread.php?t=94128)

Andreas 02-20-2006 09:39 AM

Well, if you create a cash-system that uses PayPal - why not.

Webs007 02-20-2006 09:48 AM

Well that's fairly obvious to be honest, but I don't have the skill set, so there's nothing out there at present that you know of I take it?

Webs007

RGSMDNR 02-20-2006 11:46 AM

i need some help!!

im having an issue with vbookie, i made a test bet, had some members bet on it, and when i settled all bets.. I got all the winnings... that shouldnt be.. should it?

trackpads 02-20-2006 03:56 PM

Andreas! Thank you again for the update!

In the next version can you set the Max Bet as a standard option? I would really appreciate it.

Thanks again for all the work!

Stubager 02-20-2006 05:13 PM

Well.. Look at this. I might have at little problem... Can you help me?

$vbphrase[anon] won 769 on Janica Kostelic for Super G

Andreas 02-20-2006 05:15 PM

Imagine it to read Anonymous won 769 on Janica Kostelic for Super G ;)

Will be fixed in the next release, but it's not worth to update now just for a phrase.

Stubager 02-20-2006 05:16 PM

Quote:

Originally Posted by Andreas
Imagine it to read Anonymous won 769 on Janica Kostelic for Super G ;)

Will be fixed in the next release, but it's not worth to update now just for a phrase.

Okay. When is the next release?

Great hack by the way :)

Andreas 02-20-2006 05:21 PM

When new major bugs are discovered.
Otherwise this is the final & last release.

Stubager 02-20-2006 05:25 PM

Can you explain how to remove the bug that I discovered? It is very important for me to get rid of because almost all my users is marked as anonymous. Or can I remove the ability to be anonymous?

Andreas 02-20-2006 05:32 PM

Fix:
vbookie.php
PHP Code:

'<i>$vbphrase[anon]</i>' 

to
PHP Code:

"<i>$vbphrase[anon]</i>" 


Stubager 02-20-2006 05:40 PM

Thanks!

bashy 02-20-2006 07:13 PM

Hi

I am at a loss... I have updated and did the edits that need to be done a little while back so that i can use my ebux for the bookies, i have just tried this and it didnt work...

I aint sure what to do as i am a complete coder illiterate
Please can some one help on this 1?

NoRespect 02-20-2006 07:26 PM

Quote:

Originally Posted by Andreas
Fix:
vbookie.php
PHP Code:

'<i>$vbphrase[anon]</i>' 

to
PHP Code:

"<a>$vbphrase[anon]</i>" 


That added some funky HTML roll-over effects.

I used:

PHP Code:

$user "$vbphrase[anon]</i>"

...to fix it.

Andreas 02-20-2006 07:32 PM

Typo alert ;)
Edited original post

Stubager 02-20-2006 08:27 PM

Hi, it's me again. I just want to know how to reset points back to 500 again.

RGSMDNR 02-20-2006 09:11 PM

Quote:

Originally Posted by RGSMDNR
i need some help!!

im having an issue with vbookie, i made a test bet, had some members bet on it, and when i settled all bets.. I got all the winnings... that shouldnt be.. should it?

this is the 4th time ive posted this, could i get some help please?

NoRespect 02-20-2006 09:13 PM

Quote:

Originally Posted by RGSMDNR
this is the 4th time ive posted this, could i get some help please?

Upgrade to the latest release.

JBMoney 02-20-2006 10:52 PM

So... what specifically do I need to do to upgrade from vBookie v1.0.5 to v1.0.7?

cdorka 02-21-2006 11:47 AM

Quote:

Originally Posted by RGSMDNR
this is the 4th time ive posted this, could i get some help please?


i am having this same problem,

I just upgraded to this new version last week, and over the weekend, the bets I created, all the winnings went directly to me.

anyone have the fix?

VerkroostJ 02-21-2006 12:05 PM

A rather basic question but important nevertheless. Where should the option be to create a new event for users to bet on. I have installed it, changed all the user and forum premissions so admins should be able to post new events, but when logged in I don't see any such option.

cdorka 02-21-2006 12:31 PM

Quote:

Originally Posted by VerkroostJ
A rather basic question but important nevertheless. Where should the option be to create a new event for users to bet on. I have installed it, changed all the user and forum premissions so admins should be able to post new events, but when logged in I don't see any such option.


create newthread page, right below the checkbox to create a poll, there should be a vbookie check box to create a vbookie event.

cdorka 02-21-2006 08:09 PM

Quote:

Originally Posted by RGSMDNR
this is the 4th time ive posted this, could i get some help please?

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.

Kru 02-22-2006 08:08 AM

mmh I have the following problem. I setup my permissions in Usergroups / Usergroup Manager e.g. for admin all to yes then I clicked on save and all vBookie permissions are reset back to no.

Any idea what I am doing wrong?

Andreas 02-22-2006 08:12 AM

You most likely didn't follow the installation instructions correctly

Kru 02-22-2006 08:15 AM

Quote:

Originally Posted by Andreas
You most likely didn't follow the installation instructions correctly

I thought I did but I think I made a little mess coz I had previous files installed after I reupload everything it works fine, now. :)

Andreas 02-22-2006 08:27 AM

I have to apology - you most likely did nothing wrong.

Call admincp/index.php?do=buildbitfields
This will take care of teh problem

VerkroostJ 02-22-2006 09:33 AM

Quote:

Hi, it's me again. I just want to know how to reset points back to 500 again.
Can I please have the answer to this as well. I would like to be able to rest the cash back at the beginning of each month.

Cheers

virtualraceday 02-23-2006 05:50 AM

Quote:

Originally Posted by Andreas
I have to apology - you most likely did nothing wrong.

Call admincp/index.php?do=buildbitfields
This will take care of teh problem

Hi Andreas,

I was just about to post about this problem, thanks so much for the advice......

And thankyou so much for the Mod!!!

dxguru 02-23-2006 07:41 AM

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?

djwins 02-23-2006 07:46 AM

Quote:

Originally Posted by mclark2112
Is there any way to retain my users old vCash from before the 3.5 upgrade? I haven't updated vBookie yet, so I'm sure it is still in the database.

Quote:

Originally Posted by xug
Yeah, any info for people who have this already in their database?

Any upgrade path for people using the pre-3.5vB version?

VerkroostJ 02-23-2006 07:59 AM

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

RGSMDNR 02-23-2006 12:30 PM

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.

virtualraceday 02-23-2006 10:16 PM

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....

Andreas 02-23-2006 10:28 PM

2/1 is 2.0.
For every 1 $ placed you win 2 $ + you get your stake back, so that's 3 $ in total.

virtualraceday 02-23-2006 11:01 PM

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 :D

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

http://en.wikipedia.org/wiki/Fixed-odds_gambling

Andreas 02-23-2006 11:24 PM

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]

virtualraceday 02-24-2006 12:01 AM

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 :rolleyes:

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...

Andreas 02-24-2006 12:11 AM

** 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.

virtualraceday 02-24-2006 01:54 AM

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!

dxguru 02-24-2006 05:11 AM

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.


All times are GMT. The time now is 02:47 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
  • Page Generation 0.03168 seconds
  • Memory Usage 1,860KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (15)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete