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
  #682  
Old 03-05-2006, 10:49 AM
Steve The Plank Steve The Plank is offline
 
Join Date: Feb 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zowners
i have a small problem . I just installed it, BUT when i got to USERGROUP --> USERGROUP MANAGER, and i try to change the vBookie permissions, it always resets itself to everything "no." so even if i check something as yes, when i click "ok" and then return again to that page, it will still be no

ANYONE KNOW WHATS HAPPENING?
That happened to me until I uploaded the XML stuff again.

Can someone help with my problem, two posts up?
Reply With Quote
  #683  
Old 03-05-2006, 03:20 PM
Oddjob Oddjob is offline
 
Join Date: Jan 2006
Location: Long Island, NY
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Oddjob
I have a problem.

My bookie is not allowing people to bet, one a staff member and the other a regular member with no permissions and no other usergroup.

I made a test account and it allowed me to bet.

I dont know whats wrong, all of my settings appear correct.

still looking for help on this........
Reply With Quote
  #684  
Old 03-05-2006, 05:35 PM
bamaster bamaster is offline
 
Join Date: Dec 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason... and I'm sorry for asking a simple question... but I am unable to locate where to PAY OUT the event.

Please advise.

ON EDIT:
Nevermind. I had the "Accept Bets Until" time set in the future. Once I changed it to a time in the past, it shows up.

:goober:
Reply With Quote
  #685  
Old 03-05-2006, 05:43 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do most people allow members to post events or would you keep that more for the staff to do?

And what are the most common things to bet on apart from sport?
Reply With Quote
  #686  
Old 03-05-2006, 08:30 PM
Gunshot Gunshot is offline
 
Join Date: Feb 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sickstrings
I think I got it, but try at your own risk.

Part 1
AdminCP --> Languages & Phrases --> Phrase Manager --> Add New Phrase

Product: vBookie
Varname: vbookie_max_bet_exceeded
Text: Whoops! Looks like you bet more than 100 bucks. Try again but make sure you bet no more than 100 bucks.

Part 2
In vbookie.php

Find this
PHP Code:
    if ($total_stake vbookie_get_user_cash())
    {
        eval(
standard_error(fetch_error('vbookie_not_enough_cash')));
    } 
After the above, add the following
PHP Code:
    if ($total_stake 100)
    {
        eval(
standard_error(fetch_error('vbookie_max_bet_exceeded')));
    } 
Save vbookie.php

That should do it!

this works really well

just make sure you add it to "Front-end error messages"
Reply With Quote
  #687  
Old 03-06-2006, 12:19 AM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a vbookie event that is no longer going but shows open

Wild Card
Thread | Info FOOTBALL OPEN 01-01-2006 01-07-2006 01-07-2006

i cant click the thread or info. how do i delete it?
Reply With Quote
  #688  
Old 03-06-2006, 02:33 AM
Oddjob Oddjob is offline
 
Join Date: Jan 2006
Location: Long Island, NY
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still seeking help.........
Reply With Quote
  #689  
Old 03-06-2006, 07:39 AM
NoRespect NoRespect is offline
 
Join Date: Oct 2005
Location: Houston
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Acido
contribution:

for those who wish to limit the maxi bet amount per item:

in vbookie.php search for:

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");
}

And change it for this code:

PHP Code:
 foreach ($vbulletin->GPC['option'] AS $option_id => $stake)
{
if (
$stake 0)
{
if (
$stake 10000)
{
$stake 10000;
}
$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");
}

Where you can change 10000 for desired value for max bet amount
That doesn't work right. Because if someone bets 10000 it changes their bet to 5000, and takes the rest of their money.
Reply With Quote
  #690  
Old 03-06-2006, 03:15 PM
Oddjob Oddjob is offline
 
Join Date: Jan 2006
Location: Long Island, NY
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Oddjob
I have a problem.

My bookie is not allowing people to bet, one a staff member and the other a regular member with no permissions and no other usergroup.

I made a test account and it allowed me to bet.

I dont know whats wrong, all of my settings appear correct.

need some help dealing with this.....
Reply With Quote
  #691  
Old 03-06-2006, 03:42 PM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok oddjob i just figure it out..

what you need to do is goto

Admincp --> Forums & Moderators --> Forum Permissions --> check each forum & usergroup which you aloud to hve betting in..
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 03:04 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.07375 seconds
  • Memory Usage 2,340KB
  • 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
  • (4)bbcode_php
  • (5)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