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

bobster65 02-27-2008 10:29 PM

Quote:

Originally Posted by cnotes88 (Post 1452505)
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

Your User Group permissions are not set. You need to rebuild your bit fields so that when you set them, they don't default back to no. Once you set them properly, the check box will display for those user groups that have permission to create events. Also, once you have permissions set correctly, when you click on the box, it will execute the script (It won't, because it checks for permissions.. all you did by removing the if statement in the template was bypass the permissions check to display the check box to the correct user groups)

cnotes88 02-27-2008 11:28 PM

Quote:

Originally Posted by bobster65 (Post 1452507)
Your User Group permissions are not set. You need to rebuild your bit fields so that when you set them, they don't default back to no. Once you set them properly, the check box will display for those user groups that have permission to create events. Also, once you have permissions set correctly, when you click on the box, it will execute the script (It won't, because it checks for permissions.. all you did by removing the if statement in the template was bypass the permissions check to display the check box to the correct user groups)

oh man, im so close I can feel it..

?do=buildbitfields

will try it in a few

bobster65 02-27-2008 11:37 PM

Quote:

Originally Posted by cnotes88 (Post 1452533)
oh man, im so close I can feel it..

how do you rebuild your bit fields. if i go to forum permissions or forum manager and set vbookie to yes it turns them back to No automatically.

ill try to search around i think i remember seeing this in other posts..but if someones got a quick response let me know

thanks

/admincp/index.php?do=buildbitfields

cnotes88 02-28-2008 01:35 AM

Quote:

Originally Posted by bobster65 (Post 1452535)
/admincp/index.php?do=buildbitfields

thanks bobster for all your help.

its up and running.

cnotes88 02-29-2008 12:23 AM

I don't even know if this is possible or how hard it would be.

a php script to create a new vbookie thread for you.

so it creates a new thread; Title, Message
then Event group, Event Title, number of outcomes (will always be 2), outcome1, outcome2, Odds1, Odds2, Accept bets until, bets paid after, timezone (will always be Eastern), and allow multiple bets (always unchecked)

hippiesimz 03-01-2008 08:35 AM

i installed for 3.68 and i got this error when i click Bet Statistics
Code:

"Database error in vBulletin 3.6.8:

Invalid SQL:
;

MySQL Error  : Query was empty
Error Number : 1065
Date        : Saturday, March 1st 2008 @ 02:33:59 AM

"

anyone can help ? thanks

msu2k 03-06-2008 02:24 PM

I've looked through several pages but couldn't figure out what vBookie's status was for VB version 3.7. vBookie is an essential mod for my sports forum so I'm hoping that it will either be released as a 3.7 mod or that the only changes needed to make it work are the changes needed for 3.6.

Are the 3.6 edits the only ones that need to be made?

bobster65 03-06-2008 02:32 PM

Quote:

Originally Posted by msu2k (Post 1458515)
I've looked through several pages but couldn't figure out what vBookie's status was for VB version 3.7. vBookie is an essential mod for my sports forum so I'm hoping that it will either be released as a 3.7 mod or that the only changes needed to make it work are the changes needed for 3.6.

Are the 3.6 edits the only ones that need to be made?

works fine on 3.7 .. i've tested both having a preexisting install on 3.6x and upgrading vB to 3.7 (worked fine) and also a fresh install on a 3.7 install .. both work fine, just do the same recommended fixes (from Paul) and you will be g2g :cool:

msu2k 03-06-2008 04:14 PM

Quote:

Originally Posted by bobster65 (Post 1458521)
works fine on 3.7 .. i've tested both having a preexisting install on 3.6x and upgrading vB to 3.7 (worked fine) and also a fresh install on a 3.7 install .. both work fine, just do the same recommended fixes (from Paul) and you will be g2g :cool:

Thanks for the reply, I appreciate it. This is by far my favorite mod, to the point where I'd pay someone to keep it supported if necessary. :up:

bobster65 03-06-2008 04:31 PM

Quote:

Originally Posted by msu2k (Post 1458585)
Thanks for the reply, I appreciate it. This is by far my favorite mod, to the point where I'd pay someone to keep it supported if necessary. :up:

Mine too... I've modded the crap out of it, cause its not supported ;)

Gersfan 03-09-2008 11:17 AM

What's the score here? Does this hack work on 3.7? Is it supported and tested? Also is this the latest version?

BucShot 03-10-2008 07:56 AM

Integrating this mod via the posting options of the forums seemed a little odd to me at first but after seeing it in action, I'm totally convinced it's pure genius! I've seen too many self contained navbar links die slow horrible (time wasting) deaths while adding virtually no benefit to the site/(forums), but this one... well, it's the real value adding, excitement generating deal!

I tip the proverbial hat to all the coders that have contributed to this mod! This one is without a doubt da bomb!

Many thanks guys!

snunhuck 03-17-2008 01:05 AM

Can this be used on 3.7?

MissKalunji 03-17-2008 01:14 AM

Quote:

Originally Posted by snunhuck (Post 1466638)
Can this be used on 3.7?

-->

Quote:

Originally Posted by bobster65 (Post 1458521)
works fine on 3.7 .. i've tested both having a preexisting install on 3.6x and upgrading vB to 3.7 (worked fine) and also a fresh install on a 3.7 install .. both work fine, just do the same recommended fixes (from Paul) and you will be g2g :cool:


WFZ 03-19-2008 06:16 PM

Can someone please install vBookie on my vBulletin version: 3.7.0 Beta 6?

PM me if you can.

RvG2 03-22-2008 10:16 AM

Quote:

Originally Posted by DS MrSinister (Post 1074480)
here is what i am using to make it work for 3.6.

paul's fix ... BTW you rock paul thanks!

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

vbBux vbPlaza 1.5.8

download the plugin vbBux vbPlaza 1.5.6

after installing the plugin

make sure you change the setting in vBulletin Options --> vBookie Settings --> Cash/Points System --> Custom. for some reason it dont say Custom for its blank. if you see a blank spot use it.

use this plugin if you are using vbplaza 1.5.8. :)

monstermunch 03-30-2008 02:02 PM

has anyone noticed a problem if you try to edit a current bet event and change the odds on some of them, the bets then all seem to changer order but any bets placed dont change to the new order.

hope that makes sense..

MissKalunji 03-30-2008 02:14 PM

Quote:

Originally Posted by monstermunch (Post 1478313)
has anyone noticed a problem if you try to edit a current bet event and change the odds on some of them, the bets then all seem to changer order but any bets placed dont change to the new order.

hope that makes sense..

you're talking about if you change the bets info like (the odds etc) the people who placed before theirs wont' change?

Gimmick 03-30-2008 06:19 PM

I just want to thank you for this addon, this is the reason i invested in vB as my site is crying out for a forum but this will make it for me.

I have just downloaded the latest vB to install. And I can read this works on it, with some of Pauls changes? can someone tell me what changes I have to make?

Thanks

bobster65 03-30-2008 08:13 PM

Quote:

Originally Posted by Gimmick (Post 1478504)
I just want to thank you for this addon, this is the reason i invested in vB as my site is crying out for a forum but this will make it for me.

I have just downloaded the latest vB to install. And I can read this works on it, with some of Pauls changes? can someone tell me what changes I have to make?

Thanks

Pauls change is the only thing you need to apply to have it work with 3.6 or 3.7 The only other thing that you need to do after installing (and its not a change) is rebuild bit fields ..

admincp/index.php?do=buildbitfields

Gimmick 03-30-2008 08:49 PM

Thanks for the quick reply... I will let u know how I get on. Thanks

Gimmick 03-30-2008 08:52 PM

Do admincp/index.php?do=buildbitfields as well as Pauls changing? or is that Pauls change? Sorry for being blind! If this is not Pauls change, can u point me to that/them? Please

Thanks

powerful_rogue 03-30-2008 11:13 PM

Hi,
Does anyone know if there is a way of having an automatic tick in the "post vbookie event with this thread" in a certain forum?

bobster65 03-31-2008 12:24 AM

Quote:

Originally Posted by Gimmick (Post 1478580)
Do admincp/index.php?do=buildbitfields as well as Pauls changing? or is that Pauls change? Sorry for being blind! If this is not Pauls change, can u point me to that/them? Please

Thanks

both .. post #1 has a link to Pauls fix...

Gimmick 04-01-2008 11:00 AM

Got the vbookie working in my 3.6.8 board now!

Have to admit the read me files were not the best, but badged and bodged and got there int he end!!

Cheers for the help bobstar.

Curious to know how you run your and set things up especially as you seem to know a bit about this.

Can u pm me your board so I can come join and have a look?

Thanks

maestrodamuz 04-01-2008 10:12 PM

Can someone write the plugins needed to integrate vbookie in 3.5 with the other cash systems as directed in the readme?
Thanks in advance

joopster 04-01-2008 10:58 PM

Ok, I have 3.6.9 and got it installed. I hit new thread and choose post vbookie event with thread. On the next page where I am supposed to get the options for the event nothing shows up, it's like a regular thread.

Any ideas?

bobster65 04-01-2008 11:33 PM

Quote:

Originally Posted by joopster (Post 1480504)
Ok, I have 3.6.9 and got it installed. I hit new thread and choose post vbookie event with thread. On the next page where I am supposed to get the options for the event nothing shows up, it's like a regular thread.

Any ideas?

did you apply Pauls fix?

https://vborg.vbsupport.ru/showthrea...92#post1035092

maestrodamuz 04-02-2008 08:59 PM

Please I hope someone will hear my cry:(
The README says this

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

BELOW that ADD
--------------------------------------------------
<if condition="$vboptions['vbookiecashon']">
<br />$vbphrase[vbookie_vcash]: $post[vbookie_cash]
</if>
--------------------------------------------------

but I can't seem to find $vbphrase[post] in either of the templates.....please, am I missing something...and yes I use vbulletin 3.4.5

bobster65 04-02-2008 09:05 PM

Quote:

Originally Posted by maestrodamuz (Post 1481342)
Please I hope someone will hear my cry:(
The README says this

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

BELOW that ADD
--------------------------------------------------
<if condition="$vboptions['vbookiecashon']">
<br />$vbphrase[vbookie_vcash]: $post[vbookie_cash]
</if>
--------------------------------------------------

but I can't seem to find $vbphrase[post] in either of the templates.....please, am I missing something...and yes I use vbulletin 3.4.5

$vbphrase[posts]

its Posts with an s not Post


All times are GMT. The time now is 10:16 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.03423 seconds
  • Memory Usage 1,874KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (21)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