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)

adranix 07-18-2006 08:46 PM

I'm having the same problem as haknet when ever I change the permissions so administrators can add new events (Can Post vBookie Events) I click YES for all 3 options and save and it says it was successfully but then I go in it again and they are all on NO.

PLEASE HELP, my email is aranshaw@aol.com

Thanks.

dhh 08-05-2006 10:59 PM

Quote:

Originally Posted by adranix
I'm having the same problem as haknet when ever I change the permissions so administrators can add new events (Can Post vBookie Events) I click YES for all 3 options and save and it says it was successfully but then I go in it again and they are all on NO.

PLEASE HELP, my email is aranshaw@aol.com

Thanks.

I just installed this as well and im having the same problem i set to yes and save when i go bac its default to no again are there other setting that need to be changed

Thanks

webgod 09-07-2006 02:04 PM

I just installed this today and want to set it up for todays NFL game

I'm confused as to how to set it up (the bet)

Here's the info:

Miami Dolphins @ Pittsburgh Steelers - Thursday, September 7, 2006

Competitor: Miami Dolphins
Point Spread : -1½
Total Score: 34½

Competitor: Pittsburgh Steelers
Point Spread : +1½
Total Score: 34½

How do I set up the vBookie Event to bet for this game?

Please help ASAP

Thanks in advance!

webgod 09-07-2006 03:32 PM

OK I figured it out

use 1 to 1 odds and set each outcome as a bet i.e.

Dolphins -1.5
Steelers +1.5
Under 34.5
Over 34.5



here's a hack I did that may interest some.. because there are about 32 bets possible every week in the NFL ~ 16 games, winner & Over/Under bets I wanted to institue a maximum bet per game

I edited vbookie.php

Find the following
PHP Code:

$q "INSERT INTO " TABLE_PREFIX "vbookie_bets_placed (option_id, item_id, userid, bet_amount_placed, bet_odds_against, bet_odds_for, bet_private) VALUES ($k$item_id$bbuserinfo[userid]$v, "

and above it add:

PHP Code:

// MAXIMUM STAKE HACK
            
if ((int)$v 25)
            {
                
$v 25;
            }
            
// END MAXIMUM STAKE HACK 

Find the following
PHP Code:

if ((int)$v 0)
        {
            
standard_error(fetch_phrase('vbookie_negative_amount'PHRASETYPEID_ERROR,  ''truefalse0));
        } 

and bellow it add:

PHP Code:

// MAXIMUM STAKE HACK
            
if ((int)$v 25)
            {
                
$v 25;
            }
            
// END MAXIMUM STAKE HACK
// Now let's check to see if he's already made that bet in the past
            
$alreadybet $DB_site->query_first("SELECT option_id from " TABLE_PREFIX "vbookie_bets_placed where userid=$bbuserinfo[userid] and option_id=$k");
            if (
$alreadybet['option_id'])
            {
                
standard_error(fetch_phrase('vbookie_not_allowed_multiple'PHRASETYPEID_ERROR,  ''truefalse0));
            }
            
//END 

change the 25 to whatever you want your max to be

webgod 09-07-2006 07:38 PM

Another hack for the stats page I just implemented....

Because I only allow a max wager of 25 per outcome, the total vCash movement is small, and there will be a lot of people hovering at or near the initial 500 mark..

so in order to only display people that have placed a wager as the "richest people" on the stats page I made the following change:

functions/functions_vbookie.php

find:
PHP Code:

$q "SELECT username, vbookie_cash AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 5"

and replace it with:


PHP Code:

$q "SELECT Distinct usr.username, usr.vbookie_cash AS cash FROM " TABLE_PREFIX "user as usr        
                LEFT JOIN " 
TABLE_PREFIX "vbookie_bets_placed AS bets ON bets.userid=usr.userid
                Where bets.userid=usr.userid
                ORDER BY cash DESC LIMIT 20"



note you can change LIMIT 20 to the number of people you want to display, I chose 20, but can set it to whatever you want

Foxsake 09-20-2006 07:18 PM

Im using vbookie (vcash) and want to display the top 10 richest, however changing the figure to 10 in functions_vbookie.php does nothing? only the original 5 are seen - can someone guide my on this one?


Cheers ;)

pdcimc1 09-23-2006 03:53 PM

Can anyone tell me how I can either completely disable private bets or how I can just make it so that admin can atleast see them?

I use my vBookie to run contests and for some reason when someone bets as "private" no one can see their bet and the money doesnt get automatically paid out if they win when the bet is settled.

Thank you in advance. I know someone out tehre must have a fix for this.

JamieLee2k 09-30-2006 02:33 PM

Call me thick but I have installed it and the option is in the threads where I have to tick to use but how do I create the bets?

radarhunter 10-05-2006 10:37 AM

does this work on 3.6.2

Or do you have a version for that

adranix 10-07-2006 10:21 AM

I have VB 3.6.2 and uploaded all the file but when I try to install it, it says:

Fatal error: Call to a member function on a non-object in /home/adranix/public_html/forum/admincp/vbookie_install.php on line 1176

I havent got a clue what that means, does anyone know?

Thanks, Adam


All times are GMT. The time now is 05:36 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.01962 seconds
  • Memory Usage 1,762KB
  • 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
  • (6)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