Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBookie for vBulletin 3.5 Details »»
vBookie for vBulletin 3.5
Version: 1.0.7, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 08-11-2005 Last Update: 02-17-2006 Installs: 633
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

vBookie

Introduction

This is a Port of the original vBookie Hack created by tdjrico; full credits to him for the idea and the kind permission to port his work

A t t e n t i o n
This Hack is unsopported and incompatible with vBulletin 3.6+
You are hereby advised to not use it.
Please do not ask me about support and/or updates - there will be none.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #1802  
Old 02-21-2008, 03:02 PM
poprulz poprulz is offline
 
Join Date: Oct 2005
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #1803  
Old 02-24-2008, 11:18 AM
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Location: Sth London
Posts: 1,042
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by poprulz View Post
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.
Reply With Quote
  #1804  
Old 02-25-2008, 06:31 PM
JoeBOBBillyTed JoeBOBBillyTed is offline
 
Join Date: Feb 2005
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #1805  
Old 02-25-2008, 09:16 PM
JoeBOBBillyTed JoeBOBBillyTed is offline
 
Join Date: Feb 2005
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #1806  
Old 02-25-2008, 10:55 PM
fta2k fta2k is offline
 
Join Date: Feb 2008
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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.
Reply With Quote
  #1807  
Old 02-26-2008, 11:50 PM
cnotes88 cnotes88 is offline
 
Join Date: Feb 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
  #1808  
Old 02-27-2008, 01:15 AM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cnotes88 View Post
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) ..
Reply With Quote
  #1809  
Old 02-27-2008, 01:40 AM
cnotes88 cnotes88 is offline
 
Join Date: Feb 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bobster65 View Post
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
Reply With Quote
  #1810  
Old 02-27-2008, 02:01 AM
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Location: Sth London
Posts: 1,042
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by poprulz View Post
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.
Reply With Quote
  #1811  
Old 02-27-2008, 10:24 PM
cnotes88 cnotes88 is offline
 
Join Date: Feb 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoeBOBBillyTed View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11133 seconds
  • Memory Usage 2,338KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete