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)

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 07:50 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.02706 seconds
  • Memory Usage 1,807KB
  • 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
  • (4)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