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)

chairman miaow 01-13-2006 10:11 PM

:speechless:

Quote:

you have to rebuild your bitfields.
Code:

http://www.path.to.your.forums/admincp/index.php?do=buildbitfields


Oddjob 01-13-2006 10:21 PM

Quote:

Originally Posted by chairman miaow
:speechless:


yea i found it a few pages back.

sry.

49er 01-14-2006 07:48 PM

When there is more than one page to view of SETTLED Bets I can not get past page one as it won’t let me view the other pages it just returns to the 1st page again, can this be rectified?

trackpads 01-19-2006 08:14 AM

Quote:

Originally Posted by Acido
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 :)


Thank you Tahnk you Thank you!!!!!!!!!

dubsyxxx 01-20-2006 12:54 AM

one of the best hacks ever

blue6995 01-20-2006 12:22 PM

I have installed and everythings appears to be running ok. One thing I have noticed is that 'Open Until' and 'Payouts After' dates are the same, despit having set the date for payouts for about 5 weeks after that date.

Is this an error and if it is, how can I resolve it

Thanks

N-0p3rz 01-20-2006 02:50 PM

I just installed it, the only problem i'm having is whenever i try to change the permissions settings from no to yes, it never saves it. It always stays on no.

Andreas 01-20-2006 02:55 PM

Install it correctly and it will work.

bashy 01-20-2006 04:02 PM

Does he/she not need to rebuild the bitfields?

Quote:

Originally Posted by N-0p3rz
I just installed it, the only problem i'm having is whenever i try to change the permissions settings from no to yes, it never saves it. It always stays on no.


Andreas 01-20-2006 04:26 PM

That is being done at the end of the product import process.


All times are GMT. The time now is 07:38 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.02738 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
  • (1)bbcode_code_printable
  • (2)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
  • (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