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

wilburshere 10-08-2006 07:46 AM

Quote:

Originally Posted by adranix
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

there is no vbookie_install.php

you upload the files do the edits listed

also rebuild bitfield afterward

admincp/index.php?do=buildbitfields

basskiller 10-08-2006 12:09 PM

Quote:

Originally Posted by wilburshere
there is no vbookie_install.php

you upload the files do the edits listed

also rebuild bitfield afterward

admincp/index.php?do=buildbitfields

look under the admincp file of this hack, it's the second PHP file
named: vbookie_install.php

adranix 10-09-2006 12:30 PM

Is it compatable with 3.6.2?

I rebuiled the bitfields but still no luck.

Is there something im meant to change in vbookie_install.php?

Thanks, Adam

adranix 10-09-2006 12:42 PM

Fixed It, I found a version for 3.5 and it works.

Adam

Hollister 10-09-2006 04:16 PM

Quote:

Originally Posted by wilburshere
there is no vbookie_install.php

you upload the files do the edits listed

also rebuild bitfield afterward

admincp/index.php?do=buildbitfields

I uploaded everything and still got the same error.

rollinjunk 10-30-2006 03:54 PM

Quote:

Originally Posted by adranix
Fixed It, I found a version for 3.5 and it works.

Adam



can you tell me where this might be?????

oz_moses 11-07-2006 05:05 AM

The search is a truly groundbreaking feature of vbulletin. I suggest you tell it to search titles only and to look for vbookie.

bahisyeri 12-20-2006 11:06 PM

Hi!
There is a security problem on this add-on..
Some users are cheating, they can change their points..

what can i do for 3.0.6 ?
isn't there any patches or new versions ?

mosh_nz 01-08-2007 10:08 PM

Hi guys,

I am also getting the error:
Fatal error: Call to a member function on a non-object in /home/nzwarriors/public_html/forum/admincp/vbookie_install.php on line 1176

When I try to install vbookie, can someone please help. I have a freshly installed 3.6.4 with no other mods.

Thanks

AdamB 01-13-2007 04:02 AM

Quote:

Originally Posted by mosh_nz (Post 1154047)
Hi guys,

I am also getting the error:
Fatal error: Call to a member function on a non-object in /home/nzwarriors/public_html/forum/admincp/vbookie_install.php on line 1176

When I try to install vbookie, can someone please help. I have a freshly installed 3.6.4 with no other mods.

Thanks

Same problem over here too. Looking for a fix.

Letsbet 03-09-2007 02:41 PM

Can you back each way yet does anyone know?

HEATSEEKERBUNGE 03-13-2007 07:27 PM

I have the issue to where every time i set the user permissions on permission manager it would default all the option to no even when i put all three options to yes so i uninstalled this even though my community wants this.

If anybody can help me post or aim me at jediknightlaser

erl 03-19-2007 11:43 PM

ive installed everything its just that every time i successfully change my user to say yes in the usergroup management it reverts back to NO...
is there a way to change that?

Jurg 04-07-2007 06:19 PM

never mind...

ChuckH 05-10-2007 01:40 PM

Can anyone give me a good example of vbookie_posticon.gif?

Thanks

Panagioths 05-13-2007 06:40 PM

Quote:

Originally Posted by MUDERCOOL (Post 1027394)
hello! great hack, thank you.

how can I adjust the winning amounts as an option wins it should be paying for 1.50 => 1.50, not 2.50
I mean;
for example, if a user puts 100 points and the odd is "1.5" (15/10) and the user gets 100+150 points, 250 points if he wins.
However I want to give him (if he wins) "150", instead of 250

I hope I'm clear enough. How can I adjust this? thank you.

Any luck for this? I have the exact same problem....:confused:

wilburshere 06-05-2007 12:24 PM

Code:

Originally Posted by tjdrico
Assuming you are using "vCash":

SQL Query: (how to run queries)

UPDATE user SET vbookie_cash=500;

DELETE FROM vbookie_news;
DELETE FROM vbookie_bets_placed;
DELETE FROM vbookie_item_options;
DELETE FROM vbookie_items;
DELETE FROM vbookie_groups;


You'll need to add the table prefix if you're using that, of course.


worked thanks

dukegotgame 06-12-2007 01:44 AM

how can i get each user's vcash to be displayed when they post.. like by their username, posts count, title, etc

rcristel 07-24-2007 01:50 AM

I need some help with the following things.When I check to say allow usergroup to post events/bet/edit events when I click Save the things dont save.It says saved succesfully and then it doesnt save.Any suggestions?

Shazz 07-24-2007 02:29 AM

Youll find many bugs and errors on 3.6.x
.

rcristel 07-24-2007 02:40 AM

Ah so I take it im going to have to wait this one out...

Shazz 07-24-2007 02:47 AM

There is a 3.5.x version
https://vborg.vbsupport.ru/showthread.php?t=94128

I don't recommend putting it on 3.6.x

Mafialife Chris 12-03-2007 09:55 PM

I loaded my install page, and clicked "install" and it just blinks and does nothing.

brockied 06-21-2008 06:59 AM

This mod looks good though i can't use it because i use the latest 3.7 could you make this for that?

hunter22375 06-28-2008 03:29 PM

Hello,

I cannot figure out what is going on. I created a new thread and they selected to place a vBookie event within the thread and when I submit it....nothing happens. It just looks like a normal thread and it did not let me create an event. Any ideas?

I am running VB 3.7 and am also using vBCredits.

RobParker 06-29-2008 06:49 PM

Quote:

Originally Posted by brockied (Post 1555204)
This mod looks good though i can't use it because i use the latest 3.7 could you make this for that?

The version for vb3.5xx works fine on the latest version of VB.

I think "officially" it's unsupported but it still works. If I remember rightly, there's a small change you need to make to get it working but that's detailed in the thread.

thecricketzone 07-05-2008 11:19 AM

--ignore====pls delete post

thecricketzone 07-05-2008 11:48 AM

Quote:

Originally Posted by RobParker (Post 1562297)
The version for vb3.5xx works fine on the latest version of VB.

I think "officially" it's unsupported but it still works. If I remember rightly, there's a small change you need to make to get it working but that's detailed in the thread.


Its a pretty big thread! Do you know wherabouts the instructions are? I havent installed this mod yet but would like to know how to get it to work on 3.72

Regs 07-06-2008 11:47 PM

The fix you are looking for was posted in that thread by Paul M - try searching the thread using his name as the search term and see if that leads you to it.

Cheers,

Regs.

D.Baker 07-14-2008 07:04 AM

Hey Guys, I am running vB 3.7 and would love to setup something like this. Does it work with vB 3.7? Or is there a better mod I should be using?

Also, it seems that a lot of people have problems with this mod, is it even worth using? It would be for a pretty successful site, so I can't have it not work properly.


All times are GMT. The time now is 03:43 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.01969 seconds
  • Memory Usage 1,847KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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