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)

Devil Woman 10-20-2006 05:15 PM

Yes I have done the editing that paul M posted up and rebuilt bitfields still no joy

Thanks for the replies, any other suggestions?

Edit: Just tried it again and its staying very weird, got a mind of its own lol, thanks all

wilburshere 10-21-2006 03:15 AM

well ive finally got the bugger running on me test forum

now ive gotta get the thing running on the live sites

at least now though i know it does work with vbBux

Coleccromos 10-24-2006 11:22 PM

He forgives that she sent you a private one to solve this doubt.
I have just installed the vbookie and it doesn't admit me the permits in the group of administration users. as I can solve it?

nighteyes 10-25-2006 07:47 AM

Quote:

Originally Posted by beano33
Were you, or anyone, able to resolve this issue? I'm having the same problem. Only page 1 in vbookie event categories displays information.

Same here. Page 2 and beyond doesn't work when navigating vBookie pages. Anyone have a fix for this? It's definitely a bug that affects those of us who post loads of events. :)

Coleccromos 10-25-2006 09:26 AM

Quote:

Originally Posted by Coleccromos
He forgives that she sent you a private one to solve this doubt.
I have just installed the vbookie and it doesn't admit me the permits in the group of administration users. as I can solve it?

I already found the solution to my problem it is this

I had same problem.
You need rebuild bitfields. To do that run from your admincp panel this link:
http://yoursite/yourforumfolder/admi...buildbitfields

kylek 10-27-2006 10:58 PM

Quote:

Originally Posted by Railen
Open vbookie.php.

Find:
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");
        }
    } 

Replace with:
PHP Code:

    foreach ($vbulletin->GPC['option'] AS $option_id => $stake)
    {
        if (
$stake 0)
        {
            if (
$stake 100){
                eval(
standard_error(fetch_error('vbookie_exceeded_max_bet')));
            }
            
$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");
        }
    } 

Open your vBulletin database and look at the phrase table.
Find the largest phraseid, then create a new row with a phraseID that's one larger than the largest one so far. The other values are as follows:
languageid : -1
varname : vbookie_exceeded_max_bet
text : You have exceeded the maximum amount of $100 per bet.
phrasetypeid : 1000
product : bookiehack

Obviously, change the $100 max to whatever you want your max to be.


Okay trying this as posted but when someone makes a bet larger than $100 we get this showing:

Could not find phrase 'vbookie_exceeded_max_bet'.

DS MrSinister 10-28-2006 01:58 AM

add this phrase

phrasetypeid : Error Messages
product : vbookie
varname : vbookie_exceeded_max_bet
text : You have exceeded the maximum amount of $100 per bet.

kylek 10-28-2006 02:55 AM

Thanks DS MrSinister, thats what we needed. Much appreciated.

GSPFAN 10-29-2006 04:32 PM

Is there a Install tutorial for dummy's? :classic:

I want to add vbookie to my forums but have no idea how to do this. :ermm:

oz_moses 10-30-2006 01:18 AM

Quote:

Originally Posted by GSPFAN
Is there a Install tutorial for dummy's? :classic:

I want to add vbookie to my forums but have no idea how to do this. :ermm:

there's a readme.txt in the download file


All times are GMT. The time now is 10:48 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.02171 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
  • (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
  • (6)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