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)

cashpath 11-12-2004 03:41 PM

The author of this hack hasn't been on in over 2 months..

HarryBO 11-12-2004 09:52 PM

That´s a very nice Hack. My Users will love this feature!

Is there a way to put "The newest bets" on the vBindex?

sabret00the 11-17-2004 08:23 PM

is there anyway to make it so that i have to authorise events before their posted?

tjdrico 11-19-2004 08:55 AM

Hi, yes I unticked the "Support" box because most of my time is currently engaged with other projects.

sabret00the, there's no way of doing that at the moment. It would be quite a simple addition, I'm sure. Basically, just an addition to the event status values (SETTLED, CLOSED etc.) of "PENDING", and altering showthread.php to hide events with a status of PENDING unless the person viewing it was the event's Owner or a forum Administrator. It'd also need a simple way of setting the event's status to "OPEN", which could be hacked into the vbookie.php page.

Cheertobi 11-19-2004 10:10 AM

Hi,

I really like to install this great hack, does it works with vB 3.0.3?!

Regards,

Tobias

HarryBO 11-20-2004 02:27 AM

Yes it works! I have vb 3.0.3 too!

cashpath 11-21-2004 09:29 PM

Can a coder tell me what I would need to edit to make it so admin can see private bets?

trackpads 11-22-2004 12:46 AM

Me too vb 3.03

Does anyone know how to limit the max amount bet? I recently had to reset the entire system after a few folks got over a billion. Mostly our fault with the odds but I would like to limit every bet to just 100.

thanks and great hack,

-Jason

tjdrico 11-25-2004 04:02 PM

Quote:

Originally Posted by trackpads
Does anyone know how to limit the max amount bet? I recently had to reset the entire system after a few folks got over a billion. Mostly our fault with the odds but I would like to limit every bet to just 100.

Edit vbookie.php. Find the following section:

PHP Code:

if ($_POST['do'] == 'placebet'

Change this:

PHP Code:

    $n_bets_to_place 0;
    while (list(
$k$v) = each ($option))
    {
        if ((int)
$v 0)
            
$n_bets_to_place++;
    } 

To this:

PHP Code:

    $n_bets_to_place 0;
    while (list(
$k$v) = each ($option))
    {
        if ((int)
$v 0)
            
$n_bets_to_place++;
        if ((int)
$v 100)
            
$option[$k] = 100;
    } 

That should limit the maximum bet for any outcome to 100. Untested.

Regs 11-25-2004 04:55 PM

Excellent!

What would happen though if a user tried to bet more than the maximum? Error screen?

Cheers,

~Regs.


All times are GMT. The time now is 04:39 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.01599 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_php_printable
  • (1)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
  • (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