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

oz_moses 10-31-2006 08:58 PM

Hi there,

Wonderful hack this one, my users are loving it.

I have found a way to add a book to an existing thread by forcing a URL into your Browser.. not sure if someone's done this before or if there are any ill effects of doing this, but I thought I'd share it.

I just looked at the URL you are re-directed to after adding a thread with a vbookie event, simply change the threadid. In my case I change the red bit.

http://www.gothetahs.com/forum/vbookie.php?t=10699&vbookieeventoptions=0&do=newevent

Cheers,
Moses.

Aclikyano 11-02-2006 02:56 AM

I WISH THIS CAN BE RE-WRIT for 3.6.2

because the one we have v 1.0.7 for 3.5.3 either pays out TOO MUCH or skips paying people or doesnt pay ppl at all who won/lost bets!.

I run version vb 3.6.2

appleTrapik 11-03-2006 06:11 AM

Any fix on vbookie event, it will load the topic, but not the page i can put the odds in...
Please help!
Im using 3.6.2
THANKs...

kylek 11-04-2006 12:14 AM

Something wierd happened, vbookie was working fine and now when I make a bet the money is not being taken from the bank (use vbplaza points system) and the bet doesn't show (only if you click on your bets).

Also just after the bet is submitted I am seeing this error:

Warning: Invalid argument supplied for foreach() in /vbookie.php on line 934

Line 934 is - foreach ($vbulletin->GPC['option'] AS $option_id => $stake)

Anyone else get this?

maharajah 11-05-2006 06:12 PM

Seems People on my site are settling bets instead of the thread starter, is this possible ?
If it is, can it be restricted to be settled by the thread starter or Admin only ?

.

j33jared 11-06-2006 01:31 AM

How do you set the odds and things for all the games or events?

oz_moses 11-06-2006 03:15 AM

Quote:

Originally Posted by Aclikyano
I WISH THIS CAN BE RE-WRIT for 3.6.2

because the one we have v 1.0.7 for 3.5.3 either pays out TOO MUCH or skips paying people or doesnt pay ppl at all who won/lost bets!.

I run version vb 3.6.2

I have it working on 3.6.1 with no issues. Can you provide examples of it paying out too much - ie odds for an event, amount staked and amount paid.

Quote:

Originally Posted by appleTrapik
Any fix on vbookie event, it will load the topic, but not the page i can put the odds in...
Please help!
Im using 3.6.2
THANKs...

There are instructions for this, refer to Andreas' first post in this thread under "vBookie & vb 3.6"

Quote:

Originally Posted by maharajah
Seems People on my site are settling bets instead of the thread starter, is this possible ?
If it is, can it be restricted to be settled by the thread starter or Admin only ?

Sounds like an issue with usergroup permissions. Look at the users who can settle bets and check their usergroup permissions for all of their usergroups.

oz_moses 11-06-2006 03:17 AM

Quote:

Originally Posted by j33jared
How do you set the odds and things for all the games or events?

start a new thread and click the option for this to be a vbookie event.
https://vborg.vbsupport.ru/attachmen...9&d=1123815803

you'll then be redirected to this page where you fill in the event details, outcomes and odds for each outcome.
https://vborg.vbsupport.ru/external/2007/02/1.jpg

j33jared 11-06-2006 04:48 AM

when i check that box and hit submit thread, it justs post the thread.

DS MrSinister 11-06-2006 01:34 PM

Quote:

Originally Posted by j33jared
when i check that box and hit submit thread, it justs post the thread.


make sure you do the fix if you are running 3.6. just click the link below

https://vborg.vbsupport.ru/showpost....&postcount=946

Flow Fusion 11-13-2006 06:32 PM

How would and where would I put this code?

oz_moses 11-13-2006 08:03 PM

Quote:

Originally Posted by Flow Fusion (Post 1116500)
How would and where would I put this code?

Installation Instructions are in the readme.txt file included in vBookie.zip

Which step are you having trouble with?

Flow Fusion 11-14-2006 03:15 AM

Quote:

Originally Posted by DS MrSinister (Post 1111791)
make sure you do the fix if you are running 3.6. just click the link below

https://vborg.vbsupport.ru/showpost....&postcount=946


This one. It was working fine for 3.5 but when I tried to upgrade to 3.6 I get errors in the database.

oz_moses 11-14-2006 09:00 PM

which db errors are you getting?

the 3.6 fix doesn't cause/resolve db errors - it's purpose is to redirect you to the vbookie event after creating a thread with the vbookie box ticked.

oz_moses 11-14-2006 09:03 PM

To change the plugin code you need to go to
Admin CP -> Plugins & Products -> Plugin Manager -> vBookie: Redirect to vbookie.php when posting new Event

then replace the plugin code as directed in Paul M's post.

SIN77 11-17-2006 12:59 AM

I tried uploading the product-bookiehack_vbplaza.xml file, but it gave me an error of
Code:
Quote:

XML Error: Internal error at Line 41
Can someone help me out?

j33jared 11-18-2006 02:03 AM

how do post multiple events in one thread?

Rabbitoh Warren 11-18-2006 02:31 AM

Quote:

Originally Posted by j33jared (Post 1119780)
how do post multiple events in one thread?

You don't ? it's not coded to work that way. One event per thread.

oz_moses 11-18-2006 02:56 AM

Quote:

Originally Posted by j33jared (Post 1119780)
how do post multiple events in one thread?

you can have multiple correct outcomes on an event... for example check out This Thread where there 5 of the available 15 bets paid out...

Hollister 11-21-2006 11:05 PM

My usergroup permissions for vbookie keeps going back to no whenever I set it to yes. Anyone know the problem?

PJSkiboy 11-23-2006 06:45 AM

Quote:

Originally Posted by Paul M (Post 1035092)
vBookie & 3.6

The posting of vbookie events in 3.6 is broken because the hook used has moved.

To fix this problem, the following plugin must be edited ;


vBookie: Redirect to vbookie.php when posting new Event

Replace the plugin code with this ;

PHP Code:

if ($newpost['postvbookieevent']) 

    
$vbulletin->url 'vbookie.php?' $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent"
    eval(
print_standard_redirect('redirect_postthanks_moderate'truefalse));


Note: I'm not actually using vbookie atm so I can't comment on any other problems.

Paul, thanks for the help. This fixed my site right up. Appreciated greatly sir.

PJSkiboy 11-23-2006 07:32 AM

I just installed the latest update for this and placing bets is working like a charm, but now when i go to update settings from the admin panel in arcade, i get the following error message.

Code:

mySQL query error: UPDATE games_settings SET arcade_status='0',arcade_language='en',g_display_sort='gtitle',g_display_order='ASC',scores_amount='10',score_type='top',log='0',skin='0',use_cats='0',crown_type='0',notification='none',show_new='1',show_new_frame='86400',show_active='a:7:{s:5:"glist";s:1:"1";s:4:"play";s:1:"1";s:8:"newscore";s:1:"1";s:5:"stats";s:1:"1";s:15:"viewtournaments";s:1:"1";s:11:"playtourney";s:1:"1";s:11:"viewtourney";s:1:"1";}',auto_prune='1',auto_prune_time='1',auto_prune_time2='2592000',games_pr='4',games_pp='40',user_choices='4,8,12,16,20',allow_user_skin='0',def_cat='3',cats_per_tr='30',show_crowns='0',show_t_won='0',score_sep=',',dec_amount='0',league_scores='10,9,8,7,6,5,4,3,2,1,0',use_announce='1',announcement='v2.5.6+
I followed the readme file included in the .zip file to the letter.

Aclikyano 11-24-2006 10:56 PM

So your telling me this is compatible with vB 3.6.4 with Pauls fix?

Mines is so messed up: so many people not being paid / payed too much..
regardless of odds and how less or much they are...

RobParker 11-25-2006 06:12 PM

In 3.6.4 I don't have the following in my postbit_legacy template...

In Templates postbit/postbit_legacy
FIND
$vbphrase[posts]: $post[posts]

da_judge 11-25-2006 08:54 PM

If you wanna reset vbookie the way i done it is very simple

Also how to set START amounts from 500 to what ever

1st open product-bookiehack.xml in notepad or your favorite editor

Search for line that says

HTML Code:

->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD vbookie_cash BIGINT UNSIGNED DEFAULT '500' AFTER pmunread");
and change the 500 to what ever you want....

Next look for....

HTML Code:

$db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=500");
Again change the 500 to the same as other line.... Then save

Next goto Plugins & Products > Manage Products > Vbookie on right on drop down select UNINSTALL

then say yes etc....

Then Select ADD/IMPORT PRODUCT

Select file you just edited...

Job done... all reset to what you changed to.....

Cheers

Judge

www.hackable.cc

GSPFAN 11-28-2006 03:27 AM

does anyone know if vbookie will work in 3.6.2?

Shazz 11-28-2006 11:28 AM

Quote:

Originally Posted by GSPFAN (Post 1126953)
does anyone know if vbookie will work in 3.6.2?

View the top of the thread
And just read

stangger5 11-28-2006 11:40 AM

Quote:

Originally Posted by GSPFAN (Post 1126953)
does anyone know if vbookie will work in 3.6.2?

Yes...

iamme1 11-28-2006 03:07 PM

question: is there any easy way to edit the "vCash" to some other currency? i don't need a whole new currency system, just the name of the currency to display, like "vDollars" or something like that?

Rabbitoh Warren 11-28-2006 03:41 PM

Edit the vbookie_vcash phrase perhaps?


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