vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBookie for vBulletin 3.5 (https://vborg.vbsupport.ru/showthread.php?t=94128)

jklimczak 12-21-2005 03:11 PM

I found out my vBookie Event Permissions will not stay any help on this my ver is 3.5.2

goblues 12-21-2005 06:47 PM

Quote:

Originally Posted by RetroDreams
Has anyone made a vbAdvanced module for this yet?

Here is a very simple VbA module for 2.0 if noone has made one yet.

xjussix 12-23-2005 06:05 AM

Quote:

Originally Posted by jklimczak
I found out my vBookie Event Permissions will not stay any help on this my ver is 3.5.2

Same here, I'm using 3.5.2 too.

Andreas 12-23-2005 08:09 PM

Install it correctly and the permissions will work.

harry1951 12-25-2005 02:22 PM

Quote:

Originally Posted by jklimczak
I found out my vBookie Event Permissions will not stay any help on this my ver is 3.5.2

I had the same problem. Solution: Go through your forumpermissions, adjust the settings there and save. Did worked for me :squareeyed:

Acido 12-28-2005 10:01 AM

contribution:

for those who wish to limit the maxi bet amount per item:

in vbookie.php search for:

PHP Code:

 foreach ($vbulletin->GPC['option'] AS $option_id => $stake)
{
if (
$stake 0)
{
$db->query_write("INSERT INTO " TABLE_PREFIX "vbookie_bets_placed (option_id, item_id, userid, bet_amount_placed, bet_odds_against, bet_odds_for, bet_private) VALUES ($option_id$item_id, " $vbulletin->userinfo['userid'] . ", $stake, " $odds_against["$option_id"] . ", " $odds_for["$option_id"] . ", '$private')");
$db->query_write("UPDATE " TABLE_PREFIX "vbookie_item_options SET option_n_bets_placed=option_n_bets_placed+1, option_amount_staked=option_amount_staked+$stake WHERE option_id=$option_id");
}


And change it for this code:

PHP Code:

 foreach ($vbulletin->GPC['option'] AS $option_id => $stake)
{
if (
$stake 0)
{
if (
$stake 10000)
{
$stake 10000;
}
$db->query_write("INSERT INTO " TABLE_PREFIX "vbookie_bets_placed (option_id, item_id, userid, bet_amount_placed, bet_odds_against, bet_odds_for, bet_private) VALUES ($option_id$item_id, " $vbulletin->userinfo['userid'] . ", $stake, " $odds_against["$option_id"] . ", " $odds_for["$option_id"] . ", '$private')");
$db->query_write("UPDATE " TABLE_PREFIX "vbookie_item_options SET option_n_bets_placed=option_n_bets_placed+1, option_amount_staked=option_amount_staked+$stake WHERE option_id=$option_id");
}


Where you can change 10000 for desired value for max bet amount :)

chairman miaow 12-28-2005 11:39 AM

Nice one - cheers Acido !

Trevor Hannant 12-29-2005 08:17 PM

Has anyone looked at a reputation system hack/mod to go alongside this? People who get over a certain vCash amount could be upgraded to another group?

We're planning on having a few 'betting managers' who can start vBookie threads while certain usergroups will be able to actually bet. Should they excel themselves on their bets then I'd like them to automatically be upgraded to the manager group.

subnet_rx 12-30-2005 03:37 AM

Does anyone know how to reverse bets once settled? My "bookies" sometimes check the wrong outcome and all I have are a lot of mad members.

Lionsault 12-30-2005 03:46 AM

Question: When I go to set Usergroup settings, I switch certain things to yes, however when I reenter the usergroup editor, it automatically has reset back to no. Because of this no one can make threads, etc. How can I fix this?


All times are GMT. The time now is 05:03 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.02334 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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