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)

Steve The Plank 03-05-2006 10:49 AM

Quote:

Originally Posted by Zowners
i have a small problem :(. I just installed it, BUT when i got to USERGROUP --> USERGROUP MANAGER, and i try to change the vBookie permissions, it always resets itself to everything "no." so even if i check something as yes, when i click "ok" and then return again to that page, it will still be no

ANYONE KNOW WHATS HAPPENING?

That happened to me until I uploaded the XML stuff again.

Can someone help with my problem, two posts up?

Oddjob 03-05-2006 03:20 PM

Quote:

Originally Posted by Oddjob
I have a problem.

My bookie is not allowing people to bet, one a staff member and the other a regular member with no permissions and no other usergroup.

I made a test account and it allowed me to bet.

I dont know whats wrong, all of my settings appear correct.


still looking for help on this........

bamaster 03-05-2006 05:35 PM

For some reason... and I'm sorry for asking a simple question... but I am unable to locate where to PAY OUT the event.

Please advise.

ON EDIT:
Nevermind. I had the "Accept Bets Until" time set in the future. Once I changed it to a time in the past, it shows up.

:goober:

Hornstar 03-05-2006 05:43 PM

Do most people allow members to post events or would you keep that more for the staff to do?

And what are the most common things to bet on apart from sport?

Gunshot 03-05-2006 08:30 PM

Quote:

Originally Posted by sickstrings
I think I got it, but try at your own risk.

Part 1
AdminCP --> Languages & Phrases --> Phrase Manager --> Add New Phrase

Product: vBookie
Varname: vbookie_max_bet_exceeded
Text: Whoops! Looks like you bet more than 100 bucks. Try again but make sure you bet no more than 100 bucks.

Part 2
In vbookie.php

Find this
PHP Code:

    if ($total_stake vbookie_get_user_cash())
    {
        eval(
standard_error(fetch_error('vbookie_not_enough_cash')));
    } 

After the above, add the following
PHP Code:

    if ($total_stake 100)
    {
        eval(
standard_error(fetch_error('vbookie_max_bet_exceeded')));
    } 

Save vbookie.php

That should do it!


this works really well

just make sure you add it to "Front-end error messages"

VBUsers 03-06-2006 12:19 AM

i have a vbookie event that is no longer going but shows open

Wild Card
Thread | Info FOOTBALL OPEN 01-01-2006 01-07-2006 01-07-2006

i cant click the thread or info. how do i delete it?

Oddjob 03-06-2006 02:33 AM

still seeking help.........

NoRespect 03-06-2006 07:39 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 :)

That doesn't work right. Because if someone bets 10000 it changes their bet to 5000, and takes the rest of their money. :(

Oddjob 03-06-2006 03:15 PM

Quote:

Originally Posted by Oddjob
I have a problem.

My bookie is not allowing people to bet, one a staff member and the other a regular member with no permissions and no other usergroup.

I made a test account and it allowed me to bet.

I dont know whats wrong, all of my settings appear correct.


need some help dealing with this.....

DS MrSinister 03-06-2006 03:42 PM

Ok oddjob i just figure it out..

what you need to do is goto

Admincp --> Forums & Moderators --> Forum Permissions --> check each forum & usergroup which you aloud to hve betting in..


All times are GMT. The time now is 04:08 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.03131 seconds
  • Memory Usage 1,763KB
  • 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
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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