vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   BETA: vBookie (https://vborg.vbsupport.ru/showthread.php?t=65709)

tjdrico 05-30-2004 10:00 PM

BETA: vBookie
 
vBookie

Beta release

What is vBookie?

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

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 uCash instead. That means that all bets are paid for and settled using uCash, making betting even more attractive than just for fun on forums with uShop 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. For example, you might wish to link vBookie with Petz, so that Petz players can gamble their points. It would be possible to reduce the amount of points awarded for posting etc. and make betting the best way to make money, which might go some way to tackling the 'forum spamming' that seems to be part and parcel of a Petz installation. If integration with any particular store hack or other system seems popular, I will build it in to vBookie, so please let me know if there are any requests.

For a more detailed explanation, the beta manual is online here.

Why is this a Beta?

I have tested vBookie on my own PC and on my main forum, and it works OK in both situations. However, there are quite a lot of changes, and there is also an installer that only I have run, so I would like to get some other people to check it out before I claim it's a release version.

Expansion

vBookie requires manual intervention for the settlement of bets as a human being has to select which outcomes are winning ones, and also to specify the available outcomes in the first place. However, if you have a PHP-based web site that has ladders or leagues/matches with a scoring system, it should be a fairly straight forward job to hack vBookie so it can be plumbed into that other system. No doubt some people will come up with other ideas, too. You could take an automated stock ticker and bet on the final value of Microsoft after each day, or something. =)

Feedback & Bugs

I welcome feedback, particularly the positive sort. ;) If you find any bugs please do let me know. If they are esoteric, please try to give instructions for how to reproduce them.

Image attachment uploads don't seem to be working at the moment (I've tried GIF and PNG) so view the manual for screenshots.

Enhancements Not Yet Released

From 0.7 Beta 1
  • Added switch to specify whether punters may bet on more than one outcome
  • Added "decimal odds" display as well as the UK style fractional display
  • Added graphical display of the relative popularity of each outcome on a bet (like poll results)

TODO

This is the current list of things I plan on adding to vBookie imminently:
  • add option to award a gratuity to all users when a new bet is placed
    (so everyone always has *something* to play with, even if it's only a
    small amount). Alternatively, only make awards to people on zero.
  • Add 'accumulator' bets
  • Add "each way" betting
  • Build in a switch to use Petz points instead of vCash
  • Improve user feedback on bet status and why they can't bet.

Please email me any requests or add them to this thread.

Updates

Changes in 0.6 Beta 2

Daylight savings time is taken into account when editing events. That is to say, it's assumed that the person editing is entering the time they want in their local time, whether or not daylight savings is in effect or not.

To upgrade from 0.6 Beta 1 to 0.6 Beta 2 simply overwrite the vbookie.php file.

sabret00the 05-31-2004 09:58 PM

omfg, how long have i been waiting for this, thank you so muc this will be installed and tested asap :D

sabret00the 05-31-2004 09:59 PM

ps could this at all be set up to have a certain userid put in charge of moderating this.

just read it seems that anyone can make a vBookie event, i really need to install it to check it over properly.

tilight 05-31-2004 10:30 PM

Very nice, Ive been waiting for this!

pjdaley 06-01-2004 01:37 AM

this is just amazing.... :devious:

alkatraz 06-01-2004 03:16 AM

fantastic idea thank you!

Mike11212 06-01-2004 05:21 AM

be cool if you could set it to work with paypal

aloha 06-01-2004 05:41 AM

That's a pretty cool idea TJ... :nervous:

tjdrico 06-01-2004 05:51 AM

Quote:

Originally Posted by sabret00the
ps could this at all be set up to have a certain userid put in charge of moderating this.

just read it seems that anyone can make a vBookie event, i really need to install it to check it over properly.

Only people in usergroups with permission can create them (or should be able to). So give permission to the Administrators group only. If you're not the only administrator, then set up a new group called Bookmakers, and give that group permission, then add it as a secondary group for yourself and you should be the only person able to set them up or bet using them.

At the moment, it's all open to anyone to try on my Respawned forum (registered users), so you could take a look on there if you like:

http://www.respawned.co.uk/forums/forumdisplay.php?f=7

PixelFx 06-01-2004 05:57 AM

very cool, looks like it would be good for sports forums or other :)

tjdrico 06-01-2004 06:52 AM

Quote:

Originally Posted by Mike11212
be cool if you could set it to work with paypal

I'm not sure about this, from an implementation point of view and from a legal perspective.

It's not possible to directly take money from someone's Paypal account, and donating money requires a confirmation, but I think the way round this would be for the forum in question to have something tacked onto the side using the Subscriptions system or something, but hacked up so that payments went to pay for vCash. There'd also need to be a system to pay people using Paypal again using their vCash total. When dealing with real money everything would have to be bulletproof to prevent fraud and theft, and I think it would be quite an effort to write something that I would be confident of.

Also, boards using it might need some sort of gambling/betting license, and I also don't know if I could be held liable in any way for providing a tool that uses real money.

All of which is a long way of saying I'm sure it's possible, but I have no plans to do it myself. =)

gmarik 06-01-2004 07:58 AM

Can't get the point of this, hard nut!

tjdrico 06-01-2004 08:11 AM

Quote:

Originally Posted by gmarik
Can't get the point of this, hard nut!

What don't you understand? I suppose, if you can't understand what it's for, you don't want it anyway. =)

Pady 06-01-2004 09:58 AM

looks like a very impressive hack you have created, will watch this one with interest for when it goes final - thanks for sharing

Mike11212 06-01-2004 10:04 AM

Quote:

Originally Posted by gmarik
Can't get the point of this, hard nut!

its basically gambling.

sabret00the 06-01-2004 02:23 PM

how much additional server load does this cause?

tjdrico 06-01-2004 02:34 PM

Quote:

Originally Posted by sabret00the
how much additional server load does this cause?

I have absolutely no idea whatsoever, nor do I really know how to go about working that out. =) I don't expect there's a huge price to pay as there aren't any really nasty queries involved. There are no indexes on any of the tables though, apart from their primary keys, so there's some scope for tweaking some of the joins that are present when someone views the Stats page. Some of the row fetches might take a while on the viewitem page because it will display all bets by default - could be a lot of you had hundreds or thousands of users that like to gamble. I've only tested it with a small forum (200 members or so), and it hasn't had any really big Events to chew on yet.

I don't expect it adds any more load than adding a poll to a thread, but as I said before I really can't qualify this nor quantify the impact.

There is a setting to turn it all off though, so if you found it seemed to be a problem then it's easy to "remove" without editing any files.

bradsears 06-01-2004 02:51 PM

I'm certain it is against paypal's terms of service to use them for gambling. For that you have to go to a dedicated (expensive) service like neteller.com. There is too much risk of chargeback from gambling transactions.

tjdrico 06-02-2004 08:23 AM

I just updated the first post with the following information:

TODO

This is the current list of things I plan on adding to vBookie imminently:
  • Add switch to specify whether punters may bet on more than one outcome
  • Add "decimal odds" display as well as the UK style fractional display
  • Add graphical display of the relative popularity of each outcome on a bet (like poll results)
  • Add 'accumulator' bets
  • Add "each way" betting
  • Build in a switch to use Petz points instead of vCash
  • Improve user feedback on bet status and why they can't bet.

Please email me any requests or add them to this thread.


Note to INSTALLERS

If you have installed vBookie, I am interested in hearing how it went and how it's still going, since this is a beta after all. Was the installation script OK? Were the code changes accurate? Is it working on your forum OK?

Please let me know, so I can prepare for a general full release, thanks.

sabret00the 06-03-2004 10:43 AM

installed it, installation was easy thank you, my only thing is that the templates could be worked on a bit.

tjdrico 06-03-2004 10:55 AM

Quote:

Originally Posted by sabret00the
installed it, installation was easy thank you, my only thing is that the templates could be worked on a bit.

Cheers.

Worked on in what sense? Some of the text isn't phrased, but they work OK. I think the presentation of a couple of things, like bet preview and View Event could be prettier, but is there anything specific?

sabret00the 06-03-2004 11:18 AM

Quote:

Originally Posted by tjdrico
Cheers.

Worked on in what sense? Some of the text isn't phrased, but they work OK. I think the presentation of a couple of things, like bet preview and View Event could be prettier, but is there anything specific?

yep by working on i just mean made prettier, thiers a few things which seem (sorry can't think of a better word) illogical to me in thier presentation, but saying that i should stop being lazy and get it work the way i think would look best instead of just bombaring you with complaints, so i apologise, it's a great hack

tjdrico 06-03-2004 11:58 AM

I've got an update to put up which makes things a little better I think. It shows odds as decimals as well as fractions (outside of the UK I think decimals are more common), and also shows the popularity of each outcome using poll-style bars. There's a new option when creating a bet so that you can make it so people can only bet on a single outcome, rather than spread betting. That's in what I'm calling 0.7 Beta 1 which is only installed on my own forum at the moment, but since no one seems to be reporting any problems, I think I'm going to aim for a release version over the weekend.

In other words, if you want to hack the presentation, I'd hold off for a few days (assuming you'll upgrade to the release version).

Beermonster 06-03-2004 03:32 PM

This is a great hack especially with Euro 2004 coming up :)

Would it be possible to add the ability to have doubles, trebles, round robins etc, OK may be I'm going a bit to far :D

[high]* Beermonster clicks install[/high]

sabret00the 06-03-2004 04:34 PM

i'm unable to find an error yet, but my bet wraps up at midnight should nothing go wrong with that, i'll be sure to take a look at making the templates a little nice.

sabret00the 06-03-2004 04:41 PM

what would be good would be the ability to set an option so people can only participate if they've posted in the thread.

Fugler 06-03-2004 04:44 PM

Would it be a good idea to somehow integrate it with the arcade too so that people can take bets on who wins challanges and so on?

Beermonster 06-03-2004 05:17 PM

There's just so many options for this hack :)

tjdrico 06-03-2004 05:45 PM

Enhancements Not Yet Released

Completed as of 0.7 Beta 1
  • Added switch to specify whether punters may bet on more than one outcome
  • Added "decimal odds" display as well as the UK style fractional display
  • Added graphical display of the relative popularity of each outcome on a bet (like poll results)

TODO

This is the current list of things I plan on adding to vBookie imminently:
  • add option to award a gratuity to all users when a new bet is placed
    (so everyone always has *something* to play with, even if it's only a
    small amount). Alternatively, only make awards to people on zero.
  • Add 'accumulator' bets
  • Add "each way" betting
  • Build in a switch to use Petz points instead of vCash
  • Improve user feedback on bet status and why they can't bet.

Please email me any requests or add them to this thread.

sabret00the 06-03-2004 06:28 PM

sounds great, hopefully the upgrade won't be too hard

tjdrico 06-03-2004 07:26 PM

The upgrade to 7 is simple - I've written an upgrade script for the phrases and templates, and the one database modification. The rest is just a case of dropping in a new vbookie.php, functions_vbookie.php and some changes to the vBookie section of showthread.php. If you backed up showthread.php before you hacked it for vBookie, it'd be even easier (just paste in the whole section again).

Beermonster 06-04-2004 05:51 AM

Thanks for the update, looking forward to it :)

tjdrico 06-04-2004 09:10 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=65844" target="_blank">I've just posted a release in the Full Releases forum</a>. The zip file has upgrade instructions.

Xenon 06-04-2004 10:35 PM

Just an info, you should be able to close your beta threads yourself, when you have released a full version.

that way, it wouldn't appear twice in your profile :)


All times are GMT. The time now is 04: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.01371 seconds
  • Memory Usage 1,822KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete