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)

tmorr37 04-26-2007 10:26 PM

works in 3.6.5

tmorr37 04-26-2007 10:38 PM

The NEW vBookie Manual

--------------------------------------------------------------------------------

Introduction


vBookie is a 'bookmakers' or betting extension to vBulletin. It enables authorised members to post Events and Outcomes that forum members can bet on. Each Outcome has its own set of odds, and odds can be modified through the life of an Event (bets that are placed are stored with the prevailing odds, so even if the odds change, your users are paid at the correct rate).

Adding a new vBookie Event

vBookie Events are tied to threads in your forums. This makes it convenient for members to discuss the Event and their bets, in the same manner as a poll.


To create a new vBookie Event, simply add a new thread as normal, and select the 'Post a vBookie Event' checkbox on the Post New Thread page. You can add some detailed explanations of the event you're offering and the various outcomes in the thread Message, then press Submit New Thread. This will post the thread and then take you to the vBookie New Event page.


Note that you cannot post a vBookie Event and a Poll on the same thread at the time, but you may later add a poll to an existing vBookie Event thread.


The 'Post a vBookie Event' Form

https://vborg.vbsupport.ru/


The 'Post a vBookie Event' form has various items that you must complete. These are:

Event Group

Use this field to specify in general terms what area the Event falls in to. You may be as vague about this or as specific as you wish. It's just additional information that can help your forum members understand what they are betting on. For example, if your Event Title is 'World Cup', then the Event Group might be 'Cricket', 'Football', 'Karate' etc. Other examples of more specific groups are 'Football World Cup 2006', '2005 Oscars' etc.


Event Title
This is the actual thing that people will bet on. It might be something that covers a set of other events (e.g. '04/05 English Premiership Winners', 'Most Gold Medals at Athens Olympics') or something very specific (e.g. 'Liverpool vs. Manchester United', 'British Grand Prix').

Number of Outcomes & Event Outcomes
This is the number of potential outcomes that you are going to offer for people to bet on. You must provide at least 2 outcomes (on the logic that a single outcome means a certainty, therefore not something that one can bet on). There is no built in limit to the number of outcomes that may be offered. Bear in mind that more than one outcome is allowed to win. While this may seem odd at first glance, it makes sense because it allows you to specify a set of possible outcomes as follows. Imagine you are setting up a football match.
You might offer the following outcomes:
Manchester United to win
Liverpool to win
Drawn match
Manchester United to win 3-1
Michael Owen to score first

As you can see, there are some general outcomes, and some more specific ones. If the match ends 0-0, then only 'Drawn match' would be a winning bet. However, if the match ends 3-1 to Manchester, with Liverpool taking an early lead due to an Owen goal in the 6th minute, then three outcomes would pay out as winning bets; the general 'Manchester United to win', the more specific 'win 3-1', and also the bet on 'Owen to score first'. Forum members who have bet on any of those three items would collect winnings.

You must also specify the Odds for each outcome. Odds are a measure of how much someone will win if they bet on that outcome. Odds of '10 to 1' mean that there's a one in 10 chance that it will be the winning outcome, and for every 1 that someone bets, they will be given 10 back in winnings. Odds of '2 to 5' mean that for every 5 bet, a person will win 2. So if he bets 100 at odds of 2/5, and wins, he will get 140 back (his 100 stake, plus 40 in winnings). If a bet wins, the stake is also returned. If a bet loses, the stake is lost.

Ideally, you should specify realistic odds. You can get an idea of the odds for various events be checking up with online bookmakers such as Ladbrokes.

Accept Bets Until
This is the date and time up until which bets on this Event will be accepted. You will normally set this to a time before the Event actually starts, but for longer running Events it could be a time part-way through the Event. For example, for a single football match you might accept bets up until its 3pm kick-off, but for the Football World Cup you might accept bets up until the start of the knockout phase.

Bets Paid After
This is the date after which bets should be settled. This will be a time after which the outcome(s) will be known, so the bet administrator can determine which outcomes are winning outcomes. This might be as short as 2 hours after the Accept Bets Until time in the case of a football match, or could be weeks after the Accept Bets Until time in the case of the Football World Cup. This date should be specified so that a bet that hasn't been settled can be flagged up and either settled or abandoned.

Time Zone
Bets are placed into the database in GMT/UTC form. You should make sure that you specify the correct time zone for where you live when you are setting up a new Event. The Time Zone list should default to the timezone you have specified in your forum settings, and it will take into account any daylight savings time that may be in effect.

Allow multiple bets on this Event
By default people can bet on an Event more than once. They could bet on every Outcome if they like. By clearing this box, users can only bet once.

Now...
When you have specified all the information above, you can either Submit the event or Preview it. Previewing gives you a chance to doulbe check that everything looks correct before you submit the event. Once you are happy, Submit the event and you will be taken back to the Event's home thread.

Placing a Bet & Controlling an Event

To place a bet on a vBookie Event, you first view the event's thread. You can determine which are betting threads either by the thread icon, or the text 'vBookie:' in front of the thread title in the thread list:
https://vborg.vbsupport.ru/

Upon viewing a thread with a vBookie Event attached, you will see the Event panel at the top of the thread. The event panel will look something like this:

https://vborg.vbsupport.ru/

The numbers relate to the following items:
1. This tells you the last time that the Event will accept new bets, and the time after which you should expect the Event to pay out.

2. This line tells you some information about the status of the Event, and whether you may bet on it.

3. The Outcomes panel shows all the options you can bet on, and what each of their odds are. It also shows the total number of bets placed so far.

4. If you want to bet on a specific outcome, just type the amount you want to bet into the correct box.

5. If you don't want other people to be able to see what you have bet on, select this checkbox.

6. When you are ready to place a bet, click the Bet Now! button.

When a bet has passed the time that it will accept bets, you will no longer be able to bet, and the display will look more like this:

https://vborg.vbsupport.ru/

If the Event's payout time has been reached there will also be a reminder that the bets should be settled, and there will be checkboxes beside each potentially winning Outcome. This is only shown to the Event's owner or members with permission to edit other persons' Events.


To Settle bets, you simply tick one or more winning options, and then click the Settle Bets! button. If there are no winning outcomes, you should still settle the bets, but must also tick the box to say that you really meant to settle the Event with no winners.

Once settled, an Event will display the 'Event Over' panel'

Abandoning a vBookie Event
Sometimes it may be necessary to Abandon an Event. This might be because the Event never took place, or something disrupted it, or because there were errors in the set-up of the bet and people have already bet on it. When an Event is abandoned, all stakes are returned to the people that placed the bets.

To abandon an event, click the Abandon vBookie Event link. You will be asked to confirm that you really want to abandon the Event. Click Yes to abandon it, or the Back button of your browser to return to the Event's thread.

The vBookie Main Page


As well as the thread display, vBookie provides a separate page called 'vbookie.php'. If your forum has installed vBookie with its default settings, you can access this by clicking the vBookie link in the forum navigation bar. This acts as an easy way to see any events that are open and available to be on, and also enables users to check the status of their own bets. There is also a page of statistics information for the whole bookmakers system.

https://vborg.vbsupport.ru/


The default page shows all OPEN Events that are accepting bets

https://vborg.vbsupport.ru/


The 'Your Bets' page shows status information on your bets

BozzaJos 04-27-2007 01:06 PM

Thanks for the manual! Looks good.. I made a quick one myself but this one is way more detailed.

By the way, I have a little problem. I don't know if it's a known problem but I do hope it's easy to fix. When I goto vbookie.php I see all the OPEN events. I've added so many events that it's three pages long. However, when I goto the 2nd page it's all blank. Anyone knows how to fix this problem?

msu2k 04-29-2007 10:23 PM

I'm trying to figure out how to post a Moneyline in vBookie? Is there a way to do it?

For instance, the odds for the big De La Hoya vs. Mayweather fight is:

Mayweather -200
De La Hoya +160

I assume there's a way to translate that into odds for use in vBookie but I'm not quite sure.

I know that translates into having to bet:
$200 to win $100 for Mayweather
or
betting $100 to win $160 for De La Hoya

Can anyone help me out?

BozzaJos 04-30-2007 09:15 AM

Isn't that just 2 to 1 for Mayweather and 10 to 16 for De La Hoya?

guvser 04-30-2007 04:17 PM

i've just installed it on my fresh new board... Looks okay, but i cannot change the permissions for Vbookie in the usergroup permisson manager.
When i press continue it says that it's saved, but it's not...as i can see there's no changes when i go into the edit screen again...

kylek 04-30-2007 11:53 PM

Have been searching but haven't found the answer yet.

Right now have vbplazza, vbux and vbookie working on 3.6.5.

Due to the exploits of vbplaza/vbux I want to switch to the ICash system and have it work with vbookie.

In post 1343 there are new files to download for using ICash, and here is the question.

Do we just download them and overwrite the existing files? Or do we overwrite the existing files, run the product again and check allow overwrite to yes?

Last one - if we do the above does the fix from Paul M need to be redone?

Thanks in advance.

cheech47 05-01-2007 09:32 PM

Quote:

Originally Posted by cheech47 (Post 1227638)
Right ive searched and searched for this but i cant seem to get the vcash for vbookie to appear in the postbit, i have edited the templates as it says in the readme.txt

Any help would be great

Bump - Can anyone help? as i have to keep telling members by checking their profiles in the admincp

Mbain 05-05-2007 05:22 PM

Quote:

Originally Posted by guvser (Post 1238316)
i've just installed it on my fresh new board... Looks okay, but i cannot change the permissions for Vbookie in the usergroup permisson manager.
When i press continue it says that it's saved, but it's not...as i can see there's no changes when i go into the edit screen again...

same problem here,any solutions?

cyclone2k 05-05-2007 11:10 PM

In my case, the settings got saved on it's own after sometime, though, it didn't earlier!

DS MrSinister 05-07-2007 12:36 AM

Quote:

Originally Posted by Mbain (Post 1241957)
same problem here,any solutions?

Try Rebuild Bitfields

Code:


http://www.url./admincp/index.php?do=buildbitfields


BozzaJos 05-07-2007 03:23 PM

Is it possible to remove 1 single match? Upgraded my forum and imported the database but a couple of matches appear @ OPEN and CLOSED but when I click on thread it says invalid page. Is it possible to remove those matches via phpmyadmin? If so, can anyone tell me exactly how? I ain't good with mysql and php.

Much appreciated! Thanks in advance...

*EDIT*

Never mind.. already found it! Thanks anyway!

wrestlingaudio 05-16-2007 12:48 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.

Which file does this code go into and what line of code gets replaced by it? thanks!:confused:

MissKalunji 05-16-2007 02:44 PM

Quote:

Originally Posted by wrestlingaudio (Post 1248737)
Which file does this code go into and what line of code gets replaced by it? thanks!:confused:

in your admincp , Pluging

search : vBookie: Redirect to vbookie.php when posting new Event

and do the edit

SBlueman 05-18-2007 05:28 AM

Quote:

Originally Posted by kylek (Post 1238568)
Have been searching but haven't found the answer yet.

Right now have vbplazza, vbux and vbookie working on 3.6.5.

Due to the exploits of vbplaza/vbux I want to switch to the ICash system and have it work with vbookie.

In post 1343 there are new files to download for using ICash, and here is the question.

Do we just download them and overwrite the existing files? Or do we overwrite the existing files, run the product again and check allow overwrite to yes?

Last one - if we do the above does the fix from Paul M need to be redone?

Thanks in advance.

I have the same question.

LockeAG 05-19-2007 04:23 PM

Quote:

Originally Posted by SBlueman (Post 1249997)
I have the same question.

I overwrite all and amde a new XML Product instalation, cos I'm doing a new instalation , but I can't make it work with icash the vbookie.php give a Database Error.

LockeAG 05-19-2007 06:26 PM

Well I give up.... it will not worl on vB 3.6.7...

We have that :

the issues I found:

the conditional on "newthread" isn't working correctly don't know why .. may be is not the conditional and is the hook or bitfiel or function XD .

Also the correction made it by Paul M, doesn't work anymore on 3.6.6, or maybe is just me. hehehe

minor
phrase : $vbphrase[custom] , I think doesn't exist on 3.6.6

fix for icash and vbookie posted in post 1343. doesn't work..

May be its only me ....

See'a and Waiting for a 3.6.7 and above FIX or version for vbookie.

see'a

BozzaJos 05-19-2007 09:35 PM

Good to know that it's not working with the latest version of vBulletin. I've got v3.6.5 installed and it's working on that one so I will stay on it. It's just so sad to see that no one is working on an update. It's an amazing hack, one of the greatest hacks I've ever seen. But it could be 3 times so good coz it could be expanded indefinately with a lot of cool extra features.

Can't Andreas work together with someone to release a new and even better version of this awesome hack? I bet a lot of people would appreciate it...

sinisterpain 05-20-2007 02:50 AM

Quote:

Originally Posted by LockeAG (Post 1250926)
Well I give up.... it will not worl on vB 3.6.7...

We have that :

the issues I found:

the conditional on "newthread" isn't working correctly don't know why .. may be is not the conditional and is the hook or bitfiel or function XD .

Also the correction made it by Paul M, doesn't work anymore on 3.6.6, or maybe is just me. hehehe

minor
phrase : $vbphrase[custom] , I think doesn't exist on 3.6.6


fix for icash and vbookie posted in post 1343. doesn't work..

May be its only me ....

See'a and Waiting for a 3.6.7 and above FIX or version for vbookie.

see'a

I have not updated my icash since the author did his updates, right now vbookie is looking for a table in user called money so if you changed your money row name in Icash from the default that would cause my vbookie-icash zip not to work. Also i run the paypal donations hack which uses donate.php as does the Icash hack so I had to change all reference of donate.php in Icash to icash.php so it would not overwrite my paypal donate.php file.

kylek 05-20-2007 04:59 AM

I have vbookie and iBank and iCash all running on 3.6.7. with no problems.

LockeAG 05-20-2007 06:48 AM

Quote:

Originally Posted by kylek (Post 1251254)
I have vbookie and iBank and iCash all running on 3.6.7. with no problems.

Could you PLEASE share your files... You will go to heaven all with Shoes !!

see'a

kylek 05-20-2007 07:27 AM

Quote:

Originally Posted by LockeAG (Post 1251282)
Could you PLEASE share your files... You will go to heaven all with Shoes !!

see'a

This is the order of things - how it was, how I did it. These settings below work for me.

I originally had vbookie and vbplaza running on 3.6.5. Then uninstalled vbplaza and the vbplaza add on for vbookie.

Then I installed iCash, and later found the files in post 1343 that Sinisterpain attached. Downloaded them and uploaded overwriting files on the server. Ran the product bookie-hack making sure it was set to overwrite.

This gives you a new iCash setting in the cash/points system setting in the vbookie options. I set it for iCash.

iCash Settings - this worked for me. For points name we use stars as our money
Name of points - Stars
Money Row - Money (left as default)

Then installed iBank.

iBank Settings:
money Row - money

All were working. Then just upgraded from 3.6.5 to the latest 3.6.7. Checked after upgrading and all are still working.

Also checked to see if I still had the Redirect to vbookie.php when posting new Event plugin still there and it is, left it when I removed vbplaza.

LockeAG 05-20-2007 09:06 AM

Quote:

Originally Posted by kylek (Post 1251294)
This is the order of things - how it was, how I did it. These settings below work for me.

I originally had vbookie and vbplaza running on 3.6.5. Then uninstalled vbplaza and the vbplaza add on for vbookie.

Then I installed iCash, and later found the files in post 1343 that Sinisterpain attached. Downloaded them and uploaded overwriting files on the server. Ran the product bookie-hack making sure it was set to overwrite.

This gives you a new iCash setting in the cash/points system setting in the vbookie options. I set it for iCash.

iCash Settings - this worked for me. For points name we use stars as our money
Name of points - Stars
Money Row - Money (left as default)

Then installed iBank.

iBank Settings:
money Row - money

All were working. Then just upgraded from 3.6.5 to the latest 3.6.7. Checked after upgrading and all are still working.

Also checked to see if I still had the Redirect to vbookie.php when posting new Event plugin still there and it is, left it when I removed vbplaza.

Awesome ! You make it work 65%/100%...

Its almost done.. I can't get the Vbookie event post show

Code:

<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>

I don't know if its my skin or an other thing

hope you can help.. .

Thanks!

LockeAG 05-20-2007 09:11 AM

Quote:

Originally Posted by LockeAG (Post 1251316)
Awesome ! You make it work 65%/100%...

Its almost done.. I can't get the Vbookie event post show

Code:

<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>

I don't know if its my skin or an other thing

hope you can help.. .

Thanks!

Now I searh for my problem... when I enable vbookie in Forum Permisions , and accept It allways return to disable stat...


don't know why?

any idea?

see'a

LockeAG 05-20-2007 09:21 AM

Quote:

Originally Posted by LockeAG (Post 1251317)
Now I searh for my problem... when I enable vbookie in Forum Permisions , and accept It allways return to disable stat...


don't know why?

any idea?

see'a

I resolve it ... An sorry to write to my self.. but jajaja I was Lazy I didn't read this:

Code:

4) For vB 3.6.x you will need to manually rebuilt your bitfields:

http://yoursite.com/yourforumfolder/admincp/index.php?do=buildbitfields

Thanks Kylek

see'a

sinisterpain 05-20-2007 12:54 PM

Quote:

Originally Posted by LockeAG (Post 1251318)
I resolve it ... An sorry to write to my self.. but jajaja I was Lazy I didn't read this:

Code:

4) For vB 3.6.x you will need to manually rebuilt your bitfields:

http://yoursite.com/yourforumfolder/admincp/index.php?do=buildbitfields

Thanks Kylek

see'a

If you guys are using Ibank there are further edits that need to be done to show the richest users in vbookie. I did not include the edit because alot of users were not using Ibank and it was creating errors. Right now it will only show total cash based on icash and not include the money in the bank. I will post up the edit later.

LockeAG 05-20-2007 04:26 PM

thanks sinesterpain !

vbookie is working ok now, I think your version with permission of Andreas of course must be posted in 3.6.0 mods ,

Thanks again

sinisterpain 05-20-2007 09:18 PM

Ok for those members using icash and ibank together use this zip file upload to your forum root keep the folder structure. It fixes the total dollars shown for the richest user to include the users banked dollars. If your are only using Icash do not install this as you will recieve an error instead go here for the zip for icash only the money row must be kept at default.

LockeAG 05-20-2007 10:15 PM

Working OK! Thank sinisterpain!

nasko 05-23-2007 05:33 PM

Hi! I just installed this hack and it`s GREAT!

But I have a problem. I can`t save my permission changes from ACP. They just don`t remember. How to fix this? Any idea?

LockeAG 05-23-2007 06:49 PM

For vB 3.6.x you will need to manually rebuilt your bitfields:

Code:



http://yoursite.com/yourforumfolder/admincp/index.php?do=buildbitfields


fateL 05-23-2007 09:38 PM

Nvm

gullystation 05-23-2007 10:43 PM

Parse error: syntax error, unexpected '<' in /home/freelive/public_html/forum/newthread.php(244) : eval()'d code on line 5

I still get this error :(

I followed everything on here correctly, and am running 3.6.7 PL1. didnt work on 3.6.5 either

Help please :)

appreciated

gullystation 05-24-2007 09:13 PM

bump

WURIGRAY 05-24-2007 11:49 PM

Moderators on my board are unable to make a bet even though they been given permission. What could be causing this?

sinisterpain 05-25-2007 01:17 AM

Quote:

Originally Posted by WURIGRAY (Post 1254145)
Moderators on my board are unable to make a bet even though they been given permission. What could be causing this?

Make sure you set the forum permissions for the forum you set up for use of vbookie.

sidewinder1 05-28-2007 10:15 PM

ok,everything installed on 3.6.7pl... My permissions are fine after bitfield rebuild,did the edit and all. shows installed today,except I can not make it to where I can list an item to bet on.Dont know what could be causing this,any ideas? new upgrade and first hack installed on it... thanks

sidewinder1 05-28-2007 11:09 PM

ok,got most of it going,but when I try to post it - it dont pop up or anything to ask like the polls do. still wont post it in the vbookie even when checked in the post? any help on this one...Please?

sidewinder1 05-29-2007 04:16 AM

duh,after a few hours I got it going fine...

nasko 05-29-2007 06:31 PM

Is there a way that I can adjust the decimal odds? The problem is that they come up automatically but are not correct, for instance, if I have a fractional odd 1/7, the decimal odd comes to 0,14 which is not how it works in the football betting, it should be 0,14 plus 1.
Can anyone help pls?


All times are GMT. The time now is 12:42 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.03733 seconds
  • Memory Usage 1,900KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (15)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