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)

poprulz 02-21-2008 03:02 PM

Installed vbookie with vb 3.7 beta

The Usergroup permission were reset after rebuilding the bitfields. Edited the newthread template. Did the Paul's plugin edit as well.

Now I could access vbookie.php but where do I create new events, there is no option in newthread either.

Where are the events created with odds? As a new thread or in the vbookie home? Any help?

TTG 02-24-2008 11:18 AM

Quote:

Originally Posted by poprulz (Post 1448152)
Now I could access vbookie.php but where do I create new events, there is no option in newthread either.

Where are the events created with odds? As a new thread or in the vbookie home? Any help?

I found that if I created a new forum specifically for vbookie events, the option to create a new vbookie event appeared as a new thead option .. try that.

JoeBOBBillyTed 02-25-2008 06:31 PM

I cannot seem to post an event at all in the threads. The if statement <if condition="$show['vbookieevent']"> seems to be a possible issue. How do I make sure that it is TRUE so it gives me the checkbox. (If I remove this if statement it shows the checkbox.)

JoeBOBBillyTed 02-25-2008 09:16 PM

Can anyone help me out with the above issue? I have vbookie turned on and I believe it is set up right. If you know of a reason in the setup that would make this wrong please let me know as well.

fta2k 02-25-2008 10:55 PM

I have vbookie up working fine with vbbux and wanted to set a max bet, I searched this
entire thread and found this thread, I have done the editing in the vbookie.php as described
and I dont know where to add the rest at and in which fromat to add it.

It works now but if you go over the limit which is 10,000 then it gives an error

Could not find phrase 'vbookie_exceeded_max_bet'.
I know that because the bottom part isnt added but I would like to know where to put that
and the format to put it in, thank you in advance



Quote:

Originally Posted by Railen (Post 942268)
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.


cnotes88 02-26-2008 11:50 PM

Extremely confused..

I go to Manage Products and I import "product-bookiehack.xml".

Then I go to StyleManager and I edit the templates newthread, postbit/postbit_legacy and nav bar with whats in the readme.

but where do I add this fix now?

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', true, false));
}


I have v.3.6.8 with nothing.

Thanks for any help!!

bobster65 02-27-2008 01:15 AM

Quote:

Originally Posted by cnotes88 (Post 1451754)
Extremely confused..

I go to Manage Products and I import "product-bookiehack.xml".

Then I go to StyleManager and I edit the templates newthread, postbit/postbit_legacy and nav bar with whats in the readme.

but where do I add this fix now?

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', true, false));
}


I have v.3.6.8 with nothing.

Thanks for any help!!

If you search back a few pages (not sure how many).. I posted a step by step. I don't have time to search for it and post it tho (sorry) ..

cnotes88 02-27-2008 01:40 AM

Quote:

Originally Posted by bobster65 (Post 1451790)
If you search back a few pages (not sure how many).. I posted a step by step. I don't have time to search for it and post it tho (sorry) ..

well i found it thanks..

but, still having issues :(

there is no vcash under users name

and there is no option event when creating a new thread to set a bet up
seems like a common problem from reading above

TTG 02-27-2008 02:01 AM

Quote:

Originally Posted by poprulz (Post 1448152)
Installed vbookie with vb 3.7 beta

The Usergroup permission were reset after rebuilding the bitfields. Edited the newthread template. Did the Paul's plugin edit as well.

Now I could access vbookie.php but where do I create new events, there is no option in newthread either.

Where are the events created with odds? As a new thread or in the vbookie home? Any help?

If you've done the template edits, there should be an option to create a vbookie event showing below the option to post a poll when you make a new thread .. see attached.

cnotes88 02-27-2008 10:24 PM

Quote:

Originally Posted by JoeBOBBillyTed (Post 1450880)
I cannot seem to post an event at all in the threads. The if statement <if condition="$show['vbookieevent']"> seems to be a possible issue. How do I make sure that it is TRUE so it gives me the checkbox. (If I remove this if statement it shows the checkbox.)

im having the same issue what gives..

nothing was showing. I removed that line and now the checkbox shows on new threads but, it doesn't work


All times are GMT. The time now is 04:51 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.03572 seconds
  • Memory Usage 1,772KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (6)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