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)

timnp 10-25-2007 09:01 AM

I'm a bit confused, we run this plugin on 3.6.8 with no problems

bobster65 10-25-2007 01:52 PM

Quote:

Originally Posted by mathias (Post 1368132)
someone release a 3.6.8 come on...

Quote:

Originally Posted by TTG (Post 1368167)
Would be appreciated :up:

Guys, this Add On works fine on 3.6.8 I originally installed this on my 3.5 board and have upgraded through 3.6.8 without ANY issues... I've also installed this hack fresh on a 3.6.8 board and it works perfectly.

timnp 10-25-2007 02:34 PM

Quote:

Originally Posted by bobster65 (Post 1368326)
Guys, this Add On works fine on 3.6.8 I originally installed this on my 3.5 board and have upgraded through 3.6.8 without ANY issues... I've also installed this hack fresh on a 3.6.8 board and it works perfectly.

Ditto.

Ran into small problems but they're all discussed and solved in this thread, none of them were related to the fact that it was 3.6.8 as far as I am aware.

Memphis834@yaho 10-30-2007 09:47 PM

I'm really confused as to how I post threads with vbookie. I made all the template edits and uploaded all the files. Yet when I click on vbookie in my navbar, theres not button or anything there for making bets.

bobster65 10-30-2007 09:51 PM

Quote:

Originally Posted by Memphis834@yaho (Post 1372305)
I'm really confused as to how I post threads with vbookie. I made all the template edits and uploaded all the files. Yet when I click on vbookie in my navbar, theres not button or anything there for making bets.

When you create a new thread, the option for making the thread a vbookie thread is at the bottom with the other thread options.. you click the button (just like you do when you create a poll).. it will then take you to the vBookie options for that thread..

bob12 10-31-2007 06:59 AM

Can I have some help to install hack on my board please

albibak 10-31-2007 07:41 AM

What is your vBulletin version?

bob12 10-31-2007 08:02 AM

I am using vbulletin version 3.6.8, and can you help me to install it and edit some stuff on my board to make it work on my board please

Blackhat 10-31-2007 09:58 PM

have someone integrated this with vbcredits ?

kylek 10-31-2007 10:12 PM

Quote:

Originally Posted by Blackhat (Post 1373061)
have someone integrated this with vbcredits ?

Yes it works fine, all you have to do is change the cash points settings drop down so that it shows blank instead of vcash, ucash,ebux in the vbookie admincp settings.

bob12 11-01-2007 04:24 AM

Hey can you guys help me to install this hack on my board please

kylek 11-01-2007 04:47 AM

Quote:

Originally Posted by bob12 (Post 1373209)
Hey can you guys help me to install this hack on my board please

Sent you a pm.

bob12 11-01-2007 05:07 PM

Can you guys help me with this hack please

Mr President 11-07-2007 06:58 PM

Great job on this hack!!! I have it on 3.6.8 and it works perfect.

One question i have though, is there a way to view all bets on one page without having to go to each post and looking? I wasn't sure if i was missing this feature or if there is another hack that is available to load in to do this..

But again, great job! I love it!

bobster65 11-07-2007 07:05 PM

Quote:

Originally Posted by Mr President (Post 1377946)
Great job on this hack!!! I have it on 3.6.8 and it works perfect.

One question i have though, is there a way to view all bets on one page without having to go to each post and looking? I wasn't sure if i was missing this feature or if there is another hack that is available to load in to do this..

But again, great job! I love it!

The Main vBookie page lists them all .. vbookie.php

Mr President 11-07-2007 07:14 PM

I saw that one, i just wasn't sure if there was a mod page that listed out all bets and each person that has bet and how much they bet without having to go into each thread and looking it up that way.

bobster65 11-07-2007 07:39 PM

Quote:

Originally Posted by Mr President (Post 1377950)
I saw that one, i just wasn't sure if there was a mod page that listed out all bets and each person that has bet and how much they bet without having to go into each thread and looking it up that way.

ah, no .. I have not seen any custom add ons for this hack.

vbnewbie2007 11-07-2007 10:35 PM

Please help, thanks in advance.

Using version: vBulletin 3.6.8 Patch Level 2
I have installed this all by the instructions..

EDIT everything ok in..
Template newthread
Templates postbit/postbit_legacy
Template navbar

And did the change for 3.6 in "vBookie: Redirect to vbookie.php when posting new Event"

when trying to set permisson it didnt change (set it back to "No" when i saved as "Yes")
So i did the rebuild bit thing i found a few posts back..
Now it WORKED to set permission but i still cant post.

So i tried the install/upgrade product. Still the same it wont let me post.
(I've checked forum permission also and all are "Yes")

Anyone know what might be wrong?

bobster65 11-07-2007 10:44 PM

Quote:

Originally Posted by vbnewbie2007 (Post 1378054)
Please help, thanks in advance.

Using version: vBulletin 3.6.8 Patch Level 2
I have installed this all by the instructions..

EDIT everything ok in..
Template newthread
Templates postbit/postbit_legacy
Template navbar

And did the change for 3.6 in "vBookie: Redirect to vbookie.php when posting new Event"

when trying to set permisson it didnt change (set it back to "No" when i saved as "Yes")
So i did the rebuild bit thing i found a few posts back..
Now it WORKED to set permission but i still cant post.

So i tried the install/upgrade product. Still the same it wont let me post.
(I've checked forum permission also and all are "Yes")

Anyone know what might be wrong?

Im sure you already checked, but the only thing I can think of is to make sure you have vbookie active

vBulletin Options >> vBookie Settings >> vBookie Active (Set to Yes)
Use this setting turn turn vBookie On or Off.

vbnewbie2007 11-07-2007 10:48 PM

Quote:

Originally Posted by bobster65 (Post 1378060)
Im sure you already checked, but the only thing I can think of is to make sure you have vbookie active

vBulletin Options >> vBookie Settings >> vBookie Active (Set to Yes)
Use this setting turn turn vBookie On or Off.

Yup its set to "Yes" think it was "Yes" by default also.

Sorry! my bad i thought it was possible to post from vbookie page, seems it was working all along :)

EA Junkie 11-12-2007 05:56 PM

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.

So, I replace the code above in the newthread template instead of this code below correct?

<if condition="$show['vbookieevent']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_vbookieevent]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postvbookieevent"><input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" $checked[postvbookieevent] />$vbphrase[yes_post_a_vbookieevent_thread]</label></div>
</div>
</fieldset>
</if>

bobster65 11-12-2007 06:01 PM

Quote:

Originally Posted by EA Junkie (Post 1381179)
So, I replace the code above in the newthread template instead of this code below correct?

<if condition="$show['vbookieevent']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_vbookieevent]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postvbookieevent"><input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" $checked[postvbookieevent] />$vbphrase[yes_post_a_vbookieevent_thread]</label></div>
</div>
</fieldset>
</if>

no..... not a template, the plugin

EA Junkie 11-12-2007 07:03 PM

Quote:

Originally Posted by bobster65 (Post 1381184)
no..... not a template, the plugin

Thanks for quick response. So, I open the product-bookiehack plug in and replace the code below with Paul M's code correct?

if ($newpost['postvbookieevent'])
{
$forceredirect = false;
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
}

bobster65 11-12-2007 07:31 PM

Quote:

Originally Posted by EA Junkie (Post 1381228)
Thanks for quick response. So, I open the product-bookiehack plug in and replace the code below with Paul M's code correct?

close, but no...

Log into your Admin Control Panel.

Scroll down the left hand nav menu until you get to the Plugins & Products Area.... expand it.. click on Plugin Manager.

This will then bring up all the plugins that you have installed within vbulletin...

Scroll down the list and Look for the Product : vBookie area... this area will contain all the plugins associated with vbookie....

Find the specific plugin that needs to be modified (vBookie: Redirect to vbookie.php when posting new Event) and then click on [edit]

This will open the plugin so that you can replace the block of code with the block that Paul had in his post...

Hit save and you are good to go :cool:

EA Junkie 11-12-2007 11:00 PM

bobster you rock!!! I've got it installed. The last issue I'm having is it is not showing up on my navbar on the forums home page - http://forums.onlinesportsgames.com/

EA Junkie 11-13-2007 01:23 PM

Along with not being able to display on the navbar, users also aren't able to place bets once I post. Get the following message - You may not bet on this event. You have placed 0 bet(s) on this Event.

http://forums.onlinesportsgames.com/...ead.php?t=7824

bobster65 11-13-2007 02:23 PM

Quote:

Originally Posted by EA Junkie (Post 1381732)
Along with not being able to display on the navbar, users also aren't able to place bets once I post. Get the following message - You may not bet on this event. You have placed 0 bet(s) on this Event.

http://forums.onlinesportsgames.com/...ead.php?t=7824

To link to the vbookie.php page... you need to edit your NAVBAR template and add the code like the install file suggests...

You need to edit each usergroup and set vbookie permissions for each group. There are 3 permission settings for vBookie.

rishimodi 11-14-2007 01:13 AM

I just installed vbookie at my forum, but i cannot see any option of adding event. Can anyone help me with this. I know its a silly question but I'm stuck :).

I've give permission to user group.

bobster65 11-14-2007 01:20 AM

Quote:

Originally Posted by rishimodi (Post 1382117)
I just installed vbookie at my forum, but i cannot see any option of adding event. Can anyone help me with this. I know its a silly question but I'm stuck :).

I've give permission to user group.

adding an event is similar to adding a poll. You first need to start a new thread in the forum that you want the event to show up in.. give the thread a title (just like you do a poll) and then down at the bottom is a check box thats you check to make the thread a vBookie event... hit submit and it will then take you to the vbookie event screen to fill out the particulars for the event... fill it out and hit submit. You will then have a thread with a vbookie event :cool:

rishimodi 11-14-2007 01:36 AM

Thanks for quick response. But after creating event and checking the check box, it doesn't redirects me to vbookie page, infact when I go there manually - i dont' see anything.

Regards

Mr President 11-14-2007 06:08 PM

Is there a way a PM can be sent to a user when they have won a bet and tell them the amount they have won?

Members are unsure if they are in fact getting paid and there is no way for me to check to see.
It tells them when the bet is settled what they won, but no way of knowing if it really deposits the money in there acct.

bobster65 11-14-2007 06:41 PM

Quote:

Originally Posted by Mr President (Post 1382546)
Is there a way a PM can be sent to a user when they have won a bet and tell them the amount they have won?

Members are unsure if they are in fact getting paid and there is no way for me to check to see.
It tells them when the bet is settled what they won, but no way of knowing if it really deposits the money in there acct.

I'm sure that an addon like that could be fairly easily accomplished. Im not sure it would help, cause it still won't prove anything. A better stats module would certainly be nice to show the what the members amount was prior to the deposit and the actual balance (similar to a bank account transaction sheet)..

As you probably already know... each Member has their own individual page that contains all bets that they wagered on. It has the Status (Open, Closed, Settled etc), the stakes/Odds and the amount won (paid). This is the best way to check things out.

http://www.YOURSITE.com/forums/vbookie.php?do=bets

kirsty 11-16-2007 03:01 PM

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.

Sorry im a noob but how do I go about editting the plugin?

bobster65 11-16-2007 03:14 PM

Quote:

Originally Posted by kirsty (Post 1383796)
Sorry im a noob but how do I go about editting the plugin?

I answered this just a few posts back... here it is again.

Log into your Admin Control Panel.

Scroll down the left hand nav menu until you get to the Plugins & Products Area.... expand it.. click on Plugin Manager.

This will then bring up all the plugins that you have installed within vbulletin...

Scroll down the list and Look for the Product : vBookie area... this area will contain all the plugins associated with vbookie....

Find the specific plugin that needs to be modified (vBookie: Redirect to vbookie.php when posting new Event) and then click on [edit]

This will open the plugin so that you can replace the block of code with the block that Paul had in his post...

Hit save and you are good to go :cool:

kirsty 11-16-2007 04:31 PM

Quote:

Originally Posted by bobster65 (Post 1383803)
I answered this just a few posts back... here it is again.

Log into your Admin Control Panel.

Scroll down the left hand nav menu until you get to the Plugins & Products Area.... expand it.. click on Plugin Manager.

This will then bring up all the plugins that you have installed within vbulletin...

Scroll down the list and Look for the Product : vBookie area... this area will contain all the plugins associated with vbookie....

Find the specific plugin that needs to be modified (vBookie: Redirect to vbookie.php when posting new Event) and then click on [edit]

This will open the plugin so that you can replace the block of code with the block that Paul had in his post...

Hit save and you are good to go :cool:

Thanks very much :up:

halkum 11-19-2007 06:18 AM

Odd error.

IS there a reason in particular that the vBookie permisions in the usergroups, do not seem to matter? We have regular members posting events and resolving them in cases where they really shouldn't be. We've made it so they can not create new ones or edit others, but for wahtever reason those premissions are bypassed and anybody even a brand new user can create a new vBookie.

Any idea? Version of vBookie is 1.0.7. vB being 3.6.8

powerful_rogue 11-19-2007 10:58 PM

Hi,

Ive just installed this and had a look through the previous posts but cant seem to locate any reference.

Is it possible to have this based on forum permissions so it only shows in forums you want it too? At the moment it seems to be displaying in all my forums!

Edit - Ignore the above! Its actullay in "Forum persmissions" I was looking elsewhere!

ezurick 11-22-2007 11:10 AM

Hi... Great program/plugin! I have been using this for several months and love it... but I am running into issues that are within the program that I can't change. I am running vbookie 1.0.7 and vb 3.6.8... and I am using the vbCredits 1.4.

I had a recent issue with one of my vbCredits settings and many of my members earned like 2K a post or reply. I quickly resolved the settings... but now I have a few users (that were posting at that time) with large balances... Anyway, I had my football odds set at 5 to 1... This gave many new users an opportunity to bet small and win a nice pot to play arcade and such... I recently had 2 users (same person with different accounts) bet 20K on the 5 to 1... on both the win and lose... So they of course will win a million either way. There is absoultely no way to change that odds... cause if I change the odds, their odds remain the same... and there is no way to limit their bets. I need a way to limit any bet... this is extremely important and I can't understand why others haven't asked this... I have no way to change members bets either... So now I am stuck with allowing this bet to continue, or close it down and I don't want to do that... there are too many other members with proper bets and odds... Any help?

bobster65 11-22-2007 04:15 PM

Quote:

Originally Posted by ezurick (Post 1387441)
Hi... Great program/plugin! I have been using this for several months and love it... but I am running into issues that are within the program that I can't change. I am running vbookie 1.0.7 and vb 3.6.8... and I am using the vbCredits 1.4.

I had a recent issue with one of my vbCredits settings and many of my members earned like 2K a post or reply. I quickly resolved the settings... but now I have a few users (that were posting at that time) with large balances... Anyway, I had my football odds set at 5 to 1... This gave many new users an opportunity to bet small and win a nice pot to play arcade and such... I recently had 2 users (same person with different accounts) bet 20K on the 5 to 1... on both the win and lose... So they of course will win a million either way. There is absoultely no way to change that odds... cause if I change the odds, their odds remain the same... and there is no way to limit their bets. I need a way to limit any bet... this is extremely important and I can't understand why others haven't asked this... I have no way to change members bets either... So now I am stuck with allowing this bet to continue, or close it down and I don't want to do that... there are too many other members with proper bets and odds... Any help?


Actually, there is too a way to set a cap limit on bets and it was explained within this thread.

Here is how you do it, simply add a conditional within the conditional to test the value of each bet (eval each $stake variable with the loop).. this simple if statement will work fine and do the trick..

PHP Code:

if ($stake 1000){
                eval(
standard_error(fetch_error('vbookie_exceeded_max_bet')));
            } 

So ... do this (when you have time that is)..

Edit File 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 1000){
                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");
        }
    } 


Then all that is left it to Create the Phrase

languageid : -1
varname : vbookie_exceeded_max_bet
text : You have exceeded the maximum amount of $1000 per bet.
phrasetypeid : 1000
product : bookiehack

Obviously, the $1000 max can be changed to what ever the heck you want it to be... I've taken it farther and an interface that allows the creator of the event to set a cap on it (Cap per event).... and no, it won't be released, so please don't ask.

Again, this isn't MY solution, it was posted in this thread. Search is a wonderful tool.. use it.

ezurick 11-23-2007 08:49 AM

Quote:

Originally Posted by bobster65 (Post 1387588)
Then all that is left it to Create the Phrase

languageid : -1
varname : vbookie_exceeded_max_bet
text : You have exceeded the maximum amount of $1000 per bet.
phrasetypeid : 1000
product : bookiehack

Obviously, the $1000 max can be changed to what ever the heck you want it to be... I've taken it farther and an interface that allows the creator of the event to set a cap on it (Cap per event).... and no, it won't be released, so please don't ask.

Again, this isn't MY solution, it was posted in this thread. Search is a wonderful tool.. use it.

Thank you so much for taking the time to explain this once again. I am sorry if I missed it in the thread. Sometimes it is hard to weed through a large thread when you are looking for something in particular. My apologies. You explained it very well; however, I am not sure what is meant by, "Create the Phrase". I am sorry to bother again, but could you explain how or what to do so I can create the phrase? Should those items go in the vbookie.php somewhere?

Thanks once again...


All times are GMT. The time now is 06:31 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.03409 seconds
  • Memory Usage 1,895KB
  • 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
  • (5)bbcode_php_printable
  • (22)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