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)

trackpads 11-25-2004 06:54 PM

Quote:

Originally Posted by tjdrico
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.

THANKS!!! A++

trackpads 11-25-2004 07:02 PM

Quote:

Originally Posted by Regs
Excellent!

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

Cheers,

~Regs.

Nope, it automatically reduces it to 100, nice!

Regs 11-25-2004 09:38 PM

I'll make the change then... thanks!

Cheers,

~Regs.

pds 11-26-2004 06:28 PM

**Clicked** install. I am going top give this a careful install, as I have V3Arcade and Ucash already installed. Seem like a fantastic hack. Thanks for all your time.

mcyates 11-27-2004 10:20 AM

Quote:

Originally Posted by pds
**Clicked** install. I am going top give this a careful install, as I have V3Arcade and Ucash already installed. Seem like a fantastic hack. Thanks for all your time.

Is it possible to do the following,

I have a forum dedicated to vbookie and when you look at the forum and see all the posts with the vbookie sign in it, it doesn't tell you if the betting is closed or if it is still open (still taking bets). Is there a way to change the vbookie blue dollar sign to green when thy are still taking bets and to red when the betting is closed.

This will instantly let the members know if betting it closed or open.

Thanks in advance

pds 11-28-2004 04:05 AM

Install went smooth, appreciate the hack!

I went through the phrases, and changed all "vbookie" phrases to "sportsbook" for our site. When you post an event, the thread still indicates "vbookie" inthe second column of the thread post. Where is that located in the coding, i would like to be consistent with my verbiage.

Thanks!

patriotcow 12-03-2004 04:06 PM

Does this work with 3.03? :squareeyed:

mcyates 12-03-2004 04:32 PM

yes it does look:

http://www.myfootballforum.com/vbookie.php?

patriotcow 12-03-2004 07:18 PM

Ok thanks :nervous:

bi11i 12-03-2004 07:18 PM

works great with 3.0.3.
Quote:

Originally Posted by patriotcow
Does this work with 3.03? :squareeyed:



All times are GMT. The time now is 01:01 AM.

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.01758 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
  • (4)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