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
  #1672  
Old 11-14-2007, 06:08 PM
Mr President Mr President is offline
 
Join Date: Aug 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #1673  
Old 11-14-2007, 06:41 PM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr President View Post
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
Reply With Quote
  #1674  
Old 11-16-2007, 03:01 PM
kirsty kirsty is offline
 
Join Date: Nov 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
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?
Reply With Quote
  #1675  
Old 11-16-2007, 03:14 PM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kirsty View Post
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
Reply With Quote
  #1676  
Old 11-16-2007, 04:31 PM
kirsty kirsty is offline
 
Join Date: Nov 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bobster65 View Post
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
Thanks very much :up:
Reply With Quote
  #1677  
Old 11-19-2007, 06:18 AM
halkum halkum is offline
 
Join Date: Feb 2006
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #1678  
Old 11-19-2007, 10:58 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #1679  
Old 11-22-2007, 11:10 AM
ezurick ezurick is offline
 
Join Date: Mar 2007
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #1680  
Old 11-22-2007, 04:15 PM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ezurick View Post
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_placedbet_odds_againstbet_odds_forbet_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_placedbet_odds_againstbet_odds_forbet_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.
Reply With Quote
  #1681  
Old 11-23-2007, 08:49 AM
ezurick ezurick is offline
 
Join Date: Mar 2007
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bobster65 View Post
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...
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 02:49 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.07120 seconds
  • Memory Usage 2,362KB
  • Queries Executed 28 (?)
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
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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