vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - vBookie for vBulletin 4 (https://vborg.vbsupport.ru/showthread.php?t=233473)

dartho 01-24-2013 04:09 AM

Quote:

Originally Posted by nathl123 (Post 2398838)
what does this mean?

Deprecated: Assigning the return value of new by reference is deprecated in /home/content/03/10352303/html/forum/vbookie.php on line 720

Deprecated: Assigning the return value of new by reference is deprecated in /home/content/03/10352303/html/forum/vbookie.php on line 1440

Install latest version

dartho 01-24-2013 04:28 AM

Quote:

Originally Posted by mmacrypt (Post 2392985)
Hey Dartho any plans to make this mod work with vBulletin 5. I'm no where close to switching over yet but can promise I won't do so until there is some type of bookie for it

I changed this for 4.0 when I was think of changing from 3.8. However, I am still on 3.8! I do have a 5 license, but until it at least works smoothly with nginx, I won't be looking at it any further ..

dartho 01-24-2013 05:15 AM

Quote:

Originally Posted by johon (Post 2398815)
pushing....

I still have these 2 small problems - can anyone give a hint?

New version should fix 2nd issue. I need more info on your first one

CoolDude22 01-24-2013 07:25 PM

Is this new version of Vbookie vulnerable? Because the last version of vbookie got my forum hacked :/

da prez 01-24-2013 09:01 PM

Quote:

Originally Posted by dartho (Post 2399084)
So everyone lost except the bookie - nothing to fix :-)

Otherwise you should choose to 'abandon' the event and stakes will be returned

I will use your method in the future, but shouldn't "No Winning Outcomes" return the bets as well ?

dartho 01-25-2013 08:54 AM

Quote:

Originally Posted by CoolDude22 (Post 2399247)
Is this new version of Vbookie vulnerable? Because the last version of vbookie got my forum hacked :/

No issues have been reported? A google for exploits didn't turn up anything either - unless you're talking about the old vb3 version which I think was fixed 8 years ago ...

dartho 01-25-2013 08:59 AM

Quote:

Originally Posted by da prez (Post 2399272)
I will use your method in the future, but shouldn't "No Winning Outcomes" return the bets as well ?

For mine - the only way a punter gets a refund is if the bookie made a mistake, if this was the case the book should be abandoned.

If the bookie is not obliged to cover all possible outcomes, then no mistake made and he cleans up while the punters all lose.

Guess it comes down to whether you think the onus is on the bookie to provide for all outcomes or not?

da prez 01-25-2013 12:42 PM

In my case the bet was tie.
So, in that case, at least to me, that is a push and neither the bookie nor the bettor wins.

It seems that would be no winning outcomes and money should be returned.

Abandoned events would be in case the event was cancelled or had something that changed the original parameters of the bet or some other similiar situation.

CoolDude22 01-25-2013 10:03 PM

Quote:

Originally Posted by dartho (Post 2399376)
No issues have been reported? A google for exploits didn't turn up anything either - unless you're talking about the old vb3 version which I think was fixed 8 years ago ...

Its a private sqli, they got their way in and cracked hash/salt for my username

jonty 02-02-2013 11:00 AM

Dartho - can you clear out your PMs :) I need to let you see something!

dartho 02-03-2013 07:00 AM

I need a bigger inbox :( Just deleted a couple ...

jonty 02-03-2013 09:31 AM

Quote:

Originally Posted by dartho (Post 2401518)
I need a bigger inbox :( Just deleted a couple ...

:up: :D

EasyEazy 02-05-2013 09:21 PM

Can you tell me is it possible to change the default date when setting a bet. Currently the end date is set to one day ahead of say todays date.

Could I change this so it matches up with todays date if that makes sense.

Also is it possible to tell when a bet was placed by a member?

Thanks

dartho 02-06-2013 02:47 AM

Do you mean to say you want the default closing date of a bookie event to be the same day you create the event? Edit the vbookie.php file and find the line which says:

$tomorrow = getdate((TIMENOW+(3600*24)) - $vbulletin->options['hourdiff']);

the "(3600*24)" bit is how many seconds in the future you want the default close date to be - change this to be what you want

As for when a bet was placed, there is a vbookie_bets_place table in your database where all bets are stored. This table also has the date/time of the bet placement

EasyEazy 02-06-2013 08:34 AM

Quote:

Originally Posted by dartho (Post 2402300)
Do you mean to say you want the default closing date of a bookie event to be the same day you create the event? Edit the vbookie.php file and find the line which says:

$tomorrow = getdate((TIMENOW+(3600*24)) - $vbulletin->options['hourdiff']);

the "(3600*24)" bit is how many seconds in the future you want the default close date to be - change this to be what you want

As for when a bet was placed, there is a vbookie_bets_place table in your database where all bets are stored. This table also has the date/time of the bet placement

Thats perfect, thank you.

One last question. If a bet is abandoned does that mean its removed from the database?

DJDynasty239 02-10-2013 05:09 AM

I just want to change the "vCash" that is shown in the postbit_legacy to show another name, how do I do that? Everything else is working beautifully!

dartho 02-11-2013 01:19 PM

Phrase manager should do it

DJDynasty239 02-11-2013 04:20 PM

I've tried that but it doesn't seem to wanna change it, which is weird, maybe I'm trying to change the wrong item...hmmm

Ba'al 02-12-2013 04:27 AM

Its working great dartho with only 1 small problem, when we create an event and post it, it posts it twice, so if you say we have 7 events open you actually see 14 or 7 events doubled, any idea on this issue, any help would be great,thanx

Ba'al 02-14-2013 05:42 AM

bump......

dartho 02-16-2013 11:22 AM

No idea why that would be happening - can you provide a link ?

Ba'al 02-20-2013 10:41 PM

1 Attachment(s)
Quote:

Originally Posted by dartho (Post 2404595)
No idea why that would be happening - can you provide a link ?

Link

dartho 02-21-2013 11:20 AM

Given that those 2 OPEN events are the same 'book' but have different thread ID's, and those thread ID's are quite a spread (33249 & 5996), and that the vBookie item id is only 15 - I would guess that vBookie has only recently been installed - but was also installed sometime ago but not fully uninstalled or something and now you have multiple threads (real old ones and new ones) link to the same books.

You'll need to tidy up the database - uninstall and reinstall should work, but it might leave threads looking odd as they no longer have a bookie event link to them and of course all old bookie events will be gone - as would vcash balances.

Otherwise, you might be able to set the vbookie_item_id (in the thread table) to zero on all threads older than your first recent vbookie thread? This should remove the duplicate links.

Ba'al 02-22-2013 04:00 AM

Quote:

Originally Posted by dartho (Post 2405560)
Given that those 2 OPEN events are the same 'book' but have different thread ID's, and those thread ID's are quite a spread (33249 & 5996), and that the vBookie item id is only 15 - I would guess that vBookie has only recently been installed - but was also installed sometime ago but not fully uninstalled or something and now you have multiple threads (real old ones and new ones) link to the same books.

You'll need to tidy up the database - uninstall and reinstall should work, but it might leave threads looking odd as they no longer have a bookie event link to them and of course all old bookie events will be gone - as would vcash balances.

Otherwise, you might be able to set the vbookie_item_id (in the thread table) to zero on all threads older than your first recent vbookie thread? This should remove the duplicate links.

Makes sense since we just went from 4.1.12 to 4.2.0 and we just had the new one on the dev. site playing with it and forgot to uninstall the old version before moving everything over, thanx brother

Spangle 03-01-2013 04:43 PM

I'm trying to use this for football matches but I am hitting a very big snag, I don't seem to be able to put more than one event in at a time, and only one event per post.

What I need to be able to do is set up a fixture list, and members bet on Home win, Away win, or a draw for each fixture.

dartho 03-02-2013 11:24 PM

You can only have one event, but in that event you would put multiple outcomes:

EVENT 1

Team A defeats Team B
Team B defeats Team A
Team A Draws with Team B
Team C defeats Team D
Team D defeats Team C
Team C Draws with Team D

etc.

Storer 03-05-2013 08:01 PM

Sorry if this has been posted else where, but when I create my thread and have set up the vBookie event, I click submit but when it loads the table and stuff are there but I can't actually bet.

Image attached.

Any help would be appreciated.

https://vborg.vbsupport.ru/external/...png?1362517275


EDIT: Just logged out and confirmed that guests can see it properly.

EDIT: Also, after I abandon an event, I can see the table fine, I just can't bet (obviously).

dartho 03-06-2013 11:39 AM

Could you link me to your site and turn on template names in HTML comments?

Ba'al 03-18-2013 12:12 AM

Hey dartho,
We need your help, i know its been awhile since you gave me advice but our vbookie has been down and i have been to busy to get into it to much but after uninstalling and reinstalling we now get a database error that we just cant pin down, any help would be great.

jonty 04-11-2013 10:39 AM

We've a large-ish forum with 95k threads and almost 175k posts.
We get an intermittent delay when posting replies to non-bookie threads as well as delays when posting vbookie events.

Turns out it was a delay in a query
Code:

SELECT item.item_id, item.item_title, item.threadid, grp.group_title, item.item_status, item.item_created, item.item_open_until, item.item_pay_after, thread.threadid, thread.forumid, thread.postuserid
                FROM vbookie_items AS item
                LEFT JOIN vbookie_groups AS grp ON grp.group_id = item.group_id
                LEFT JOIN thread AS thread ON thread.vbookie_item_id = item.item_id
                WHERE item.item_status='SETTLED'
                ORDER BY  item.item_id DESC
                LIMIT 880, 20;

The simplest solution was to add an index on the mysql table 'thread' on the vbookie_item_id column. :up:

doogie88 05-04-2013 07:44 PM

Do you have to add events daily? Or is the system automatic?
I mean if I wanted to bet on sports, do I have to add games manually?

dawges 07-25-2013 04:16 AM

Everything looks good except the background color. How do i edit that?

dawges 07-26-2013 06:13 PM

Got it sorted out. For those having problems with the navbar link color and background of Vbookie just add the following code in the body of the vbookie template. I added it at the end since it should call it last.

Code:

{vb:raw headinclude_bottom}

slipkot 08-17-2013 03:00 PM

I have a problem. I set the odds for an event at 345/100 for first result, 150/100 for the second and 575/100 for the third. As hte multiplier i want to be 3.45, 1.5, 5.75 for each result. Despite at vbookie.php page at event info it shows the correct values i mention above, at showthread it shows this values plus 1 ex 4.45, 2.45, 6.75. But it pays correctly as 3.45 or 1.5 or 5.75. Does anyone knows what is happening?

dartho 08-18-2013 06:24 AM

In the showthread it is showing the total return as opposed to the multiplier. At 3.45, you get your 3.45 + your initial 1 stake = 4.45

slipkot 08-18-2013 10:46 AM

Yes i found it later. I removed the initial stake on the payment and the plus one on your code as i wanted to return only the amount he won.

wilford brimley 08-18-2013 09:35 PM

anyone know hos to give vcash to only certain usergroups? whathappens is when i give it to everoyne then users who dont actually gamble end up with like 20 grand etc.. so over the course of a year it throws off the rankings.

let me know an sql thanks

figured it out
UPDATE user SET vbookie_cash=whatever WHERE usergroupid=whatever;

so..
UPDATE user SET vbookie_cash=0 to set everyone at zero

then the other code to set users at an amount. made a promotion that moves qualified reg users into a new primary group so i could tag them by this.

now, can anyone tell me a way to give everyone in the custom group a welfare check when they go bust?

1320Nation 09-04-2013 05:03 PM

Quote:

UFC Fight Night 28 Odds For The Main Card:

Glover Teixeira (-440) vs. Ryan Bader (+350)
Ronaldo Souza (-265) vs. Yushin Okami (+225)
Joseph Benavidez (-525) vs. Jussier da Silva (+415)
Francisco Trinaldo (-320) vs. Piotr Hallmann (+260)
Rafael Natal (-260) vs. Tor Troeng (+220)
Ali Bagautinov (-280) vs. Marcos Vinicius (+240)
Maybe I'm looking in the wrong areas for odds on events, but the above structure is how I always find them displayed these days. Using the above info for creating a vBookie event, how is everyone adding the info when vBookie ask for it as Odds X___ to Odds X___ ?

LgsOfChampions 09-04-2013 10:45 PM

1 Attachment(s)
is there a way to fix this? It messes my site up

dartho 09-05-2013 06:40 AM

Quote:

Originally Posted by 1320Nation (Post 2443213)
Maybe I'm looking in the wrong areas for odds on events, but the above structure is how I always find them displayed these days. Using the above info for creating a vBookie event, how is everyone adding the info when vBookie ask for it as Odds X___ to Odds X___ ?

You would need to know those numbers mean (which I don't) but I just looked at a betting site which had this to say:

Quote:

If we picture the number 100 sitting in the middle of these two values, it helps to illustrate how MMA betting works. For example, betting a -200 MMA favorite means you would risk $200 in order to win $100 in profit. On his or her opponent, you would risk $100 and win $180 on the underdog. Other forms of MMA odds will be listed here later in 2013. They include over-under rounds (will the fight end in the first, second or third round or go to a decision?) are usually available close to fight night.
So taking your example of:
Glover Teixeira (-440) vs. Ryan Bader (+350)

You would risk $440 in order to win $100 if you bet on Teixeira and you would risk $100 in order to win $350 by if betting on Bader.

To convert this to odds, just reverse the numbers. "100 to 1" means win 100 for every 1 bet, so using that based on the information above would give us:

Odds for Teixeira to win would be 100 to 440 (Win 100 for every 440 bet)
Odds for Baden to win would be 350 to 100 (win 350 for every 100 bet)


All times are GMT. The time now is 04:59 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.02406 seconds
  • Memory Usage 1,836KB
  • 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
  • (2)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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