vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBookie - vBulletin Betting Hack (https://vborg.vbsupport.ru/showthread.php?t=65844)

msimplay 06-14-2004 09:53 AM

absolutely Fantastic hack great work

i would make a suggestion tho adding events to threads that don't already have them
like the add poll button on the forum drop down :)

tjdrico 06-14-2004 10:02 AM

Quote:

Originally Posted by msimplay
absolutely Fantastic hack great work

i would make a suggestion tho adding events to threads that don't already have them
like the add poll button on the forum drop down :)

Yep, fair point. I didn't actually realise one could add a poll to a thread like that until very recently when I stumbled upon it my accident. I have a few things I want to do for an update to vBookie, and I dare say this will be one of them.

msimplay 06-14-2004 10:35 AM

i hope the updates easy to install hehe :p

Alan Ang 06-14-2004 03:39 PM

hi tjdrico,

i think your betting system is great!

i have a some features for the next version that i would like to suggest:

1. admin able to assign credits to individual members. (i.e. members with higher donations to forum can get higher starting vCash, it also allows players who are bankrupt to come back into the game with a new donation.)
2. members are able to set up separate wagers with fellow members, subjected to credit limit bought/assigned by admin. win or loss are deducted from one another.
3. when members bet with one another (i.e. this allows members to side bet with each other, and to deduct directly from current top winners.), a portion of the proceeds goes to the admin.
4. members have varied credit limits when betting, limit to be set by admin.
5. admin able to set a limit to the total bets received.
6. admin to have a panel that lists the full details of all bets as well as summarized reports.
7. admin to be able to stop accepting bets in realtime, in order to adjust odds.
8. admin to be able to set formula for calculation of odds for automatic tabulation.
9. members able to have a results panel to list their current bets, past bets and total profit/loss.

i feel that with these features, it makes for a more realistic betting system and it allows an avenue for forums to start its subscriptions for members. in turn, forums can work with businesses to sponsor prizes for the person who finally makes the most vCash at the end of the events/season.

is this possible? or is it too hard to be realised?

tjdrico 06-14-2004 05:26 PM

Hi Alan, I've read your post and will respond properly later when I've a bit more time. Most, if not all of the things are fairly straight forward. Really it comes down to whether I can be bothered. ;) I'll give a better reply later.

tjdrico 06-14-2004 07:24 PM

Quote:

Originally Posted by Alan Ang
1. admin able to assign credits to individual members. (i.e. members with higher donations to forum can get higher starting vCash, it also allows players who are bankrupt to come back into the game with a new donation.)

I addressed this previously, saying that there are many store/points hacks already available that offer this sort of thing. I don't really have plans to incorporate it into vBookie but you're not the first to ask, and if I get more requests for the same thing I'll probably do it.

However, there is already a mechanism for players to "get back into the game" - there's a "charity mode" whereby anyone on less than 25 credits gets set to 25 when a new event is added.


Quote:

Originally Posted by Alan Ang
2. members are able to set up separate wagers with fellow members, subjected to credit limit bought/assigned by admin. win or loss are deducted from one another.

I like the idea, but it doesn't really fit into the current framework. It'd require some sort of challenge/response mechanism to be built in. That's not particularly difficult, but it's a sizeable addition. Like I say, I do like the idea though, so I'll consider doing it.


Quote:

Originally Posted by Alan Ang
3. when members bet with one another (i.e. this allows members to side bet with each other, and to deduct directly from current top winners.), a portion of the proceeds goes to the admin.

Not entirely sure what you mean here by "deduct directly from the top winners.


Quote:

Originally Posted by Alan Ang
4. members have varied credit limits when betting, limit to be set by admin.

This was actually in my original plan, but I decided not to bother since it's virtual "cash" and there's an unlimited supply as far as settling goes.


Quote:

Originally Posted by Alan Ang
5. admin able to set a limit to the total bets received.

Again, since there's an unlimited settlement pot, there's really no need to limit the number or size of bets that may be placed.


Quote:

Originally Posted by Alan Ang
6. admin to have a panel that lists the full details of all bets as well as summarized reports.

9. members able to have a results panel to list their current bets, past bets and total profit/loss.

Better reporting is certainly something that's relatively simple to add.


Quote:

Originally Posted by Alan Ang
7. admin to be able to stop accepting bets in realtime, in order to adjust odds.

You can close an event at any point to do this, just by changing the appropriate time. Do you mean a one-click button to do the job?


Quote:

Originally Posted by Alan Ang
8. admin to be able to set formula for calculation of odds for automatic tabulation.

I'm not sure what you're getting at here.


Quote:

Originally Posted by Alan Ang
is this possible? or is it too hard to be realised?

None of it is particularly difficult. All I need is the motivation to do it. =) I'll look to release an update with some enhancements in the next week or two.

Fanboys Suck 06-14-2004 07:34 PM

I can't add events but at the top of the vbookie settings I see this error:

Warning: Invalid argument supplied for foreach() in .../includes/functions.php on line 2871

I didn't even edit line 2871. Any ideas?

tjdrico 06-14-2004 07:45 PM

You may not have edited line 2871, but it may still tell you where the problem lies as you'll be able to see what the invalid argument is. Line 2871 of my functions.php is

PHP Code:

if ($forumpwd == md5($password)) 

so obviously I can't compare mine with yours. I'm guessing that yours is one of

PHP Code:

foreach ($parents AS $fid)
foreach (
$_FIELDNAMES AS $field => $bitvalue

They are both in that area, anyway. The latter one might make sense, and could suggest that you didn't make all the vBookie installation changes correctly. First of all, go through all the changes and compare them against the changes you actually made. People usually find that they inadvetently missed an edit.

Rushty 06-15-2004 11:13 AM

Excellent hack, but im having one problem that I can figure.

Im useing the Petz money system, and everyone can place bets o.k. (and its deducted from there money) but when it comes to payout it dosent give anyone there winnings, but does seem to give it to me (defaulting to userid 1 which is my id?) any ideas?

tjdrico 06-15-2004 11:22 AM

Quote:

Originally Posted by Rushty
Excellent hack, but im having one problem that I can figure.

Im useing the Petz money system, and everyone can place bets o.k. (and its deducted from there money) but when it comes to payout it dosent give anyone there winnings, but does seem to give it to me (defaulting to userid 1 which is my id?) any ideas?

Thanks for the bug report. There's an error in includes/functions_vbookie.php, in the function 'vbookie_give_user_cash()'.

You can correct it very simply yourself:

Find:
PHP Code:

$q "UPDATE " TABLE_PREFIX "user SET money=money+$amount WHERE userid=$bbuserinfo[userid]"

Replace that with:

PHP Code:

$q "UPDATE " TABLE_PREFIX "user SET money=money+$amount WHERE userid=$userid"

My apologies for the oversight.


All times are GMT. The time now is 08:13 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.02728 seconds
  • Memory Usage 1,766KB
  • 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
  • (4)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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