View Full Version : Add-On Releases - vBookie for vBulletin 4
Selene
09-15-2010, 05:40 AM
I would request all other members to donate a few dollars to the coder. If we all chip in a little bit we can at least appreciate the free time he is putting in for us. It will also encourage him to make it better. I just donated a little bit.
Thanks for a good hack and a lovely support.
dartho
09-15-2010, 06:52 AM
Selene, thanks for the donation - it's unneccesary, but always appreciated.
The event should be deleted when the thread is deleted - not sure how it got orphaned? To remove, you will need to manually edit your database to remove that item. Do you have access to phpMyAdmin? If so, look in the vbookie_items table for item_id 3 and delete that row.
neverstop
09-15-2010, 06:58 AM
Is there anyway to add an event to an existing thread?
dartho
09-15-2010, 07:33 AM
not built in, but I should add that sometime. If you really need to add an event to an existing thread, you can manually craft the URL to do so.
Take note of the threadid, and then head to the URL "vbookie.php?t=nn&do=newevent" where nn is the thread ID, you should then be able to add a book to the thread.
neverstop
09-15-2010, 02:20 PM
cool, thanks
neverstop
09-17-2010, 05:25 PM
Hi dartho,
Have you considered allowing more than one event per thread? We take our lines (aka spreads) from pro handicappers so when the line (spread) moves we have to create a new thread/event. Currently we are adding games in blocks (see pic) (http://imgur.com/jMPWm.png) because it was such a pain to create a new thread for each game.
On the surface it seems like it shouldnt be too difficult to implement, would you consider adding a feature such as this?
Cheers
dartho
09-17-2010, 10:15 PM
when teh spread moves, simply edit the original. Bets are paid out at the odds that were in place when they were laid
neverstop
09-20-2010, 12:02 AM
Hi Dartho,
Editing wont work for me, here is why. As you can see in this pic (http://imgur.com/jMPWm.png) the "odds" on our bets are all 1:1. The "spread" is the number you see after the team name (ie Kansas City Chiefs +1). So when the spread changes, the odds dont. It is easy enough for us to just close the betting and make a new event with the new spread. But then we start having many many threads and it can get confusing.
We would also like to start offering books for the Money Line (the traditional odds based betting) and the Over/Under. However if we make one event with the spread, money line, and ovber/under we run into issues when there are pushes on the spread and over/under. Looking at this pic:
https://vborg.vbsupport.ru/external/2010/09/10.png
If Indianapolis wins the game by exactly 5 points, it is a push. But there is no way for us to push that bet while paying out the winners on the Money line and over/under. I hope that makes sense.
Being able to have multiple events per thread would basically solve all of my issues. If you are willing to add this feature I would love to send a donation your way.
dartho
09-20-2010, 12:31 AM
So ultimately you'd want to be able to close 'outcomes', and add new ones? I guess this wouldn't help a push unless you could also abandon individual outcomes also - would you better off having spreads with part points, ie. "New York Giants +5.5" then there would be no refunds to worry about?
I'll have a look, but don't hold your breath...
neverstop
09-20-2010, 12:58 AM
Most games do in fact have part points (+5.5 etc) and there is no chance of a push on those games. We take our lines from professional handicappers (www.pinnaclesports.com for the most part), our forum is gambling related and our users take their gambling very seriously, even if it is just for imaginary internet points. So we monitor the lines closely and try to keep them in line with the pros. When the pro handicappers have a "full point" spread our users want to bet on it. I have thought about adding half points to the full number spreads but it will not fly with my users. (Tangent: this hack is extremely popular with my members, we all love it.) I started out just adding a few games and within a week of having it installed my users were requesting money lines, over unders, parlays, college football, etc.
I have thought about the logic of how to solve my issues for several hours and it always comes back to having multiple events per thread. On the surface it seems like it would be relatively easy to make that work, but I must admit I am not a coder and it seems like it is probably harder than I imagine. I can live with just having multiple threads for my needs, but they add up fast. There are 15 NFL games a week, x 3 events per game (Spread, money line, over/under). So just doing the NFL that makes 45 threads. We do about 10 NCAA football games a week so that i s30 more. We have had requests for Champions league soccer and baseball. The NHL starts in a month, as does the NBA and college basketball is not far behind that. That's gonna be a lot of threads.
Neal-UK
09-20-2010, 11:23 AM
I'm getting this error when trying to view bookie statistics, and so are other users:
Database error in vBulletin 4.0.7:
Invalid SQL:
;
MySQL Error : Query was empty
Error Number : 1065
Request Date : Monday, September 20th 2010 @ 01:21:35 PM
Error Date : Monday, September 20th 2010 @ 01:21:35 PM
Script : myforumaddress/vbookie.php?do=stats
Referrer : myforumaddress/vbookie.php?do=bets
IP Address : **.**.**.**
Username : A User
Classname : vB_Database
MySQL Version : 5.0.91-community
EDIT: And fixed it by doing what it says here: https://vborg.vbsupport.ru/showpost.php?p=2038802&postcount=350
jretzer
09-23-2010, 12:48 AM
I've got a problem with two vBookie events. After the games finished, I came back to "settle the bets", but that option was gone. There are winners that deserve their points, but I can't do anything about it. Is there anyway to "unsettle" the bets so that I can fix the problem. Basically, the bets were settled with no winner chosen.
dartho
09-23-2010, 12:58 AM
EDIT: And fixed it by doing what it says here: https://vborg.vbsupport.ru/showpost.php?p=2038802&postcount=350
Thanks for getting back to us
I've got a problem with two vBookie events. After the games finished, I came back to "settle the bets", but that option was gone. There are winners that deserve their points, but I can't do anything about it. Is there anyway to "unsettle" the bets so that I can fix the problem. Basically, the bets were settled with no winner chosen.
Sorry - books can't be unsettled - you will need to manually calculate retruns and manually give cash to your users.
neverstop
09-26-2010, 06:36 PM
Im having a problem settling bets.
It seems that when a certain admin of mine settles bets, he does not get paid on the outcomes. This only happens when this certain admin settles bets, and only h is payouts are affected. Can you think of any reason why this would happen?
dartho
09-26-2010, 10:10 PM
Does it say he has been paid and give you the payout figure?
neverstop
09-26-2010, 10:25 PM
yup he won multiple wagers on the book but did not receive the credits for the wins. It seems everyone else received what they were due. He is listed on the results page as being a winner.
We have been trying to trouble shoot it and it might only happen on events that he has created
dartho
09-26-2010, 10:37 PM
I would guess a credits integration issue as I can;t think of any reason why vBookie would do this itself - are you using vbcredits version of integration, or the vbookies?
neverstop
09-26-2010, 10:43 PM
I am using vbcredits. Im not sure what you mean about integration. I have it set in the admincp section of vbookie to use vbcredits but I am not using any of the vbcredits addon things they have for vbookie.
dartho
09-26-2010, 11:24 PM
Maybe it's karma for removing credits/copyright from a free addon?
neverstop
09-26-2010, 11:38 PM
busted i guess. i didnt read your terms obv. As you can see on my site I always keep copyrights (or buy branding free) but I have a reason (not an excuse) for removing them on vbookie. Im sure you wont care, but I removed it as I have a forum competing with me that basically rips all my ideas. Theyre a gambling forum too and this was such a success I wanted the competitive advantage. I had always planned on putting the credits back but forgot. Sorry bro.
neverstop
09-26-2010, 11:39 PM
One thing I would request tho is if I can move your credits to the footer of the page. It has a little less exposure there but it will be on all pages. Let me know.
dartho
09-27-2010, 12:44 AM
I'm not really fussed, it's not my product, I just ported it - it's just a bit cheeky to be asking for support whilst removing credit.
Not sure if the original author had a branding free option - contact him and find out, although it wouldn't take anyone with a couple brain cells more than a minute to google and find out what the product is anyway.
Back to your problem - have you absolutely confirmed it is an issue and not just an "I'm pretty sure this happens"?
neverstop
09-27-2010, 12:56 AM
Youre 100% right about it being cheeky. I really do feel like a jackass.
This is 100% confirmed as in this admin will post in the thread: "I have x credits before I settle this bet, I should have y credits if it pays me properly." Then he settles the bet and he doesnt get paid. We have made a bunch of dummy events trying to trouble shoot and I cant make heads or tails of it.
dartho
09-27-2010, 01:42 AM
Do his credits go down when he places a bet, do they get returned when a book is abandoned?
DS MrSinister
09-27-2010, 03:03 PM
bet statistics error seems to be back sir.
got vbookie 4.0.9 installed.
Database error in vBulletin 4.0.7:
Invalid SQL:
;
MySQL Error : Query was empty
Error Number : 1065
Request Date : Monday, September 27th 2010 @ 11:49:34 AM
Error Date : Monday, September 27th 2010 @ 11:49:34 AM
Script : http://vbookie.php?do=stats
Referrer : http://vbookie.php?type=OPEN
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.1.49-rel11.3-log
neverstop
09-27-2010, 05:25 PM
OK I just settled a bet that I created a week or so ago. I was the only winner on the event and I did not receive my winnings. So it seems if you create an event you only get paid if someone else settles the bet.
Credits definitely go down when a bet is made, I havent abandoned any events but I will create a dummy event and see.
mikem164
09-28-2010, 06:50 PM
In the Forum title where it says "vbookie:" where can I change vbookie to another word, like "football". Other than that, it's perfect so far, thanks!!
DS MrSinister
09-28-2010, 07:03 PM
do a Search in Phrases vbookie_event_thread_prefix. make sure u have Phrase Text and Phrase Variable Name click.
neverstop
10-01-2010, 02:45 AM
Just settled an event where there was no winner and none of the betters received their wagers back.
Am I the only one having these problems?
dartho
10-01-2010, 04:50 AM
That is expected behaviour - if there is no winner - everyone loses and the bookie makes a motza. If you wish to return all stakes, you should abandon the event.
neverstop
10-01-2010, 04:52 AM
ahh fair enough. ty
neverstop
10-01-2010, 04:00 PM
Not sure if this is another feature but I cannot edit the number of outcomes on events that I did not create, I get the standard vbulletin permission denied page.
neverstop, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Editing the # of outcomes on my own events works fine.
I am of course in admin usergourp and admin has all creating/editing privs
neverstop
10-01-2010, 04:02 PM
Another bug:
When editing an event the Accept bets month gets changed to the payout month. For example:
I have an event where bets close in october, and bets payout in november. When I go to edit the event the "accept bets until" month always says november. Its not a big deal and is easy to just change the month before you hit save but I thought you would want to know
mikem164
10-02-2010, 09:08 PM
do a Search in Phrases vbookie_event_thread_prefix. make sure u have Phrase Text and Phrase Variable Name click.
Perfect! Thank u sir.
DS MrSinister
10-02-2010, 09:10 PM
your very welcome
dartho
10-03-2010, 12:27 AM
Not sure if this is another feature but I cannot edit the number of outcomes on events that I did not create, I get the standard vbulletin permission denied page.
neverstop, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Editing the # of outcomes on my own events works fine.
I am of course in admin usergourp and admin has all creating/editing privs
Another bug:
When editing an event the Accept bets month gets changed to the payout month. For example:
I have an event where bets close in october, and bets payout in november. When I go to edit the event the "accept bets until" month always says november. Its not a big deal and is easy to just change the month before you hit save but I thought you would want to know
Confirmed both of these. 2nd one is a quick fix, I'll look into the 1st one
neverstop
10-06-2010, 07:54 PM
not built in, but I should add that sometime. If you really need to add an event to an existing thread, you can manually craft the URL to do so.
Take note of the threadid, and then head to the URL "vbookie.php?t=nn&do=newevent" where nn is the thread ID, you should then be able to add a book to the thread.
Just an FYI, I tried doing this to a thread that I didnot create and got a permission denied error. Maybe it checks the userid of the thread starter rather than the current user?
dartho
10-06-2010, 10:29 PM
It does check thread starter as part or auth checking in addition to other permissions
tms433
10-12-2010, 03:18 AM
This would be perfect for what I'm trying to do.. it installed fine, I told it groups 4,5,6 (mods & admins, basically) could create bets.. but it seems as though no one can.. or we at least can't find an option to.
neverstop
10-12-2010, 03:22 AM
This would be perfect for what I'm trying to do.. it installed fine, I told it groups 4,5,6 (mods & admins, basically) could create bets.. but it seems as though no one can.. or we at least can't find an option to.
When you create a thread look down by where you check the box for a poll. There is an option there to "add book event to thread" (or similar).
sticky
10-14-2010, 12:44 AM
Would it be possible to add a max bet limit on certain events?
stb74
10-19-2010, 09:02 PM
I am trying to get vbookie to work with DBtech vBCredits II and have set my Cash/Points system to Custom.
When I try and create a new event I get the following error.
Database error in vBulletin 4.0.7:
Invalid SQL:
SELECT user.userid, (0 + (user.credits * 1) + (user.credits_saved * 1)) AS cash FROM vb_user AS user WHERE cash < 25;
MySQL Error : Unknown column 'cash' in 'where clause'
Error Number : 1054
Request Date : Tuesday, October 12th 2010 @ 11:25:24 PM
Error Date : Tuesday, October 12th 2010 @ 11:25:24 PM
Script : http://www.nifootball.co.uk/forum/vbookie.php
Referrer : http://www.nifootball.co.uk/forum/vbookie.php?t=12560&vbookieeventoptions=0&do=newev ent
IP Address : 81.103.140.198
Username : stb74
Classname : vB_Database
MySQL Version : 5.0.51a-24+lenny3
dartho
10-20-2010, 11:32 AM
You should probably check with the Credits guys on this
stb74
10-20-2010, 12:58 PM
You should probably check with the Credits guys on this
Already have they told me to ask here.
dartho
10-20-2010, 11:14 PM
That query which it is having an issue with is not from vBookie
neverstop
10-25-2010, 05:06 PM
Quick question:
What does the "F" mean beside the odds? ie: 83/100 F
Just curious
DS MrSinister
10-25-2010, 05:16 PM
Quick question:
What does the "F" mean beside the odds? ie: 83/100 F
Just curious
Favorite to win sir
neverstop
10-25-2010, 05:24 PM
lol doh!
ty Mr S
DS MrSinister
10-25-2010, 06:16 PM
your welcome!
neverstop
10-25-2010, 08:28 PM
had a problem today where someone bet on an event and no credits were removed from their total.
These problems seem to be random and I cant make heads or tails of when or why they happen
stb74
10-26-2010, 01:27 PM
I know this is not a vbookie problem just though I would ask, when I access the vbookie page it takes my custom style ok about from the header/footer.
Anyone any ideas where I should look to try and fix that, thanks.
BF777
10-28-2010, 05:07 PM
I recently upgraded my forum from 4.3 to 4.8. Now I don't have the option to create a vbookie event. What do I have to edit/fix in order to have that option again?
BF777
11-02-2010, 03:27 PM
Ok, I fixed my last problem. Now the VCash isn't displaying under a User's Profile info. How do I correct this?
sportsfroma2
11-03-2010, 03:11 PM
This would be perfect for what I'm trying to do.. it installed fine, I told it groups 4,5,6 (mods & admins, basically) could create bets.. but it seems as though no one can.. or we at least can't find an option to.
It's been awhile since I've messed with it or changed the settings, but I believe there are forum permissions as well that enable/disable the ability to post vbookie events (ex: in "forum permissions" click on the usergroup you want to be able to use vbookie and confirm they have the ability to do so for that specific forum.. I want to say by default they do not but again it's been a few years since I installed it).
Was looking at this thread because I think I'm going to take my site from 4.0.3 to 4.0.8 soon and just wanted to make sure there weren't any issues between vb and this mod (and from the looks it it seems to be working fine for most).
thanks a lot Dartho the constant updates and support for this has been awesome- vbookie's been a big part of our site for ~5yrs and it's really impressive to see how you're been able to update + develop it.
Only issue I have is that randomly one user (random user + random period of time from what I can tell) is getting a TON of vcash (an insane amount) but I also have the gameroom using the vcash so I'm not sure which one is causing that error- has anyone else experienced this? It's totally random and happens once every 4-6 months or so (and has been happening for years).
not a big deal, just wondering if anyone else has experienced this
dartho
11-03-2010, 10:14 PM
I'm yet to update to 4.0.8, and with 4.0.9 just around the corner, I'll likely wait for that now.
@BF777 - I don't think vCash balances have ever showed in user profiles? What was teh issue with being unable to create a new event?
Sharkyman
11-04-2010, 12:09 PM
I am going mad. I followed the install, as above. It's appeared on my menu bar. I can change options in the ACP. I've added the correct usergroup ID and doublechecked all the settings but, people's vcash value is not being shown and I can't create any betting markets either in the ACP/MOD Panel.
http://www.doublefinish.com/vbul/vbookie.php
Help!!
What am I doing wrong? How do you create markets? Have I got the permissions wrong?
DS MrSinister
11-04-2010, 01:12 PM
did you check the box for creating your vBookie event in a post which you are alouding vBookie event to be made?
Yes, post a vBookie Event with this thread
double check your admincp settings and usergroup permissions also check you plugin manager.
Sharkyman
11-04-2010, 01:17 PM
When you create a thread look down by where you check the box for a poll. There is an option there to "add book event to thread" (or similar).
There isn't. What have I done wrong?
Sharkyman
11-04-2010, 01:20 PM
Yes, post a vBookie Event with this thread
.
The option isn't there to do so. I can post a poll as admin, but I can't see where to change the permissions to allow me to change the vbookie options in the user permissions section.
DS MrSinister
11-04-2010, 01:51 PM
I see you are using vBookie 4.0.6. upgrade to 4.0.9 see if that helps.
Under AdminCP
UserGroup and check each gruoup.
Sharkyman
11-04-2010, 02:00 PM
I see you are using vBookie 4.0.6. upgrade to 4.0.9 see if that helps.
Under AdminCP
UserGroup and check each gruoup.
What am I checking for? There's no vbookie option. I'm the admin and I have no option to change to an "enable vbookie" or anything like that in the usergroups.
I'll try the 4.09 thing.
DS MrSinister
11-04-2010, 02:10 PM
opps that's the old version about usergroup sorry about that.
Sharkyman
11-04-2010, 07:57 PM
Got it working after updating to 4.09.
Ta.
DS MrSinister
11-04-2010, 07:58 PM
Got it working after updating to 4.09.
Ta.
very welcome sir.
mmacrypt
11-08-2010, 04:02 AM
Ok, I need some help. I just updated to 4.0.8 Vbull and as most of you know, that ++++ed some of the styles. I'm using one called Darkness that hasn't been updated yet so I've been changing the Stylevar line by line on my test server to figure out what controls what. I'm not very good at this, just doing what I can to make the live site look better. I think I got the home and forum pages looking pretty good but now I'm to the Bookie part of the site. I went though every line on the Stylevar to try to make it look better. I found 2 changes that change every link on the site including the Vbookie stuff. Not really what I want to do. Now I'm looking at the actual code from Vbookie and know I'm way over my head. :D
This is what I have right now. You can see the fighters names are just too light. I'm trying to figure out how to make this darker so it's actually visible.
https://vborg.vbsupport.ru/external/2010/11/52.png
I also have a few other little things but that's where I would like to start. Any help or a push in the right direction would be greatly appreciated. I'm guessing I need to change one of the Blockrow calls but clueless to which one or even where to start doing that.
thankyou
Brian
dartho
11-08-2010, 05:58 AM
The stylevar stuff does my head in. I'd probably just edit the vbookie_resultbits and vbookie_outcomebits templates and change the lines of
<a href="vbookie.php?do=viewitem&item_id={vb:raw item_id}">{vb:raw outcome.outcome}</a>
to
<a style="color:#000000;" href="vbookie.php?do=viewitem&item_id={vb:raw item_id}">{vb:raw outcome.outcome}</a>
so that the links a plain black.
not best practice, but it works in a pinch
mmacrypt
11-08-2010, 04:00 PM
thank you Dartho, I'll give it a try. I'm also going to play with a different style that's been updated to .8 and hope this darkness one is also updated. But again, thank you, I'll test it on my dummy site first.
mmacrypt
11-08-2010, 10:32 PM
Again, thanks Dartho, with what you have me, I was able to fix just about all of them. I had to change a few more than you listed to make it work for my site but giving me that code did wonders so thanks again.
Robbed
11-08-2010, 10:34 PM
This happens when the event is over. It display fine when the even is active.
Any ideas?
mmacrypt
11-08-2010, 10:53 PM
I'm missing something, what does it look like before, that looks fine to me.
This is what mine looks like.
https://vborg.vbsupport.ru/external/2010/11/50.png
mmacrypt
11-09-2010, 01:22 AM
Hey Dartho, one more area I need help with if you can. The dropdown for Open, Close...
https://vborg.vbsupport.ru/external/2010/11/48.png
Do you know where the color is being picked up from on either the font or the background. I looked and or played with making changes in the
vbookie_eventresults_table
vbookie_main
vbookie_navbar_link
as those are the three that cover Abandoned but no luck.
Robbed
11-09-2010, 01:31 AM
The whole background should be white.
This is what a non closed event looks like
mmacrypt
11-09-2010, 01:48 AM
Oh, gotcha. Are you running Vbull 4.0.8? there are lots and lots of style issues now for me but no clue what you are fighting.
dartho
11-09-2010, 07:40 AM
Yeah - sorry robbed, styling ain't my forte, hopefully someone else can help. i can only suggest what I did before for teh fonts, hard code colours if you can't find the relevant stylevars
mmacrypt
11-09-2010, 04:16 PM
thanks again Dartho, it looks like the style I use should be updated this week according with the author of it. I'm hoping that fixes the rest of my few issues. If not, I might have to hard code a few other spots on your mod but might need your help again finding the code if that's ok. This mod is one of the biggest reasons why I switched my site from PHPBB to Vbul.
dcuellar
11-11-2010, 10:10 PM
Any chance we can get a new feature added? I'd like to see a one-on-one betting option. I want to be able to challenge someone to a bet on an event. That person can be alerted of the challenge and then accept or decline.
Additionally, the user can leave a challenge on the table for anyone to accept. (maybe have a link on our sig saying "bet me on the xx event! 50K")
dartho
11-12-2010, 12:14 AM
Sorry - no chance of me adding that and very little chance of me adding much else which isn't trivial to this product.
DS MrSinister
11-12-2010, 04:00 AM
This happens when the event is over. It display fine when the even is active.
Any ideas?
Ok in vbookie_eventresults_table template. make this change.
Find
class="block"
replace it with this.
class="blockrow"
PS dartho
Please make this change in the next release thanks.
FReeSTER
11-12-2010, 11:35 AM
Been working with style creators on the same issue. If a style uses additional.css it doesn't display right with a few addons
Fix:
Since version 4.0.1, there has been an additional template variable call (to grab additional.css) in the HEAD.
Please add the following:
{vb:raw headinclude_bottom}
Before </head> in your template and you're all set.
thank you, this code fixed few other templates I had the same problem as well. lol:D
Robbed
11-12-2010, 03:39 PM
Ok in vbookie_eventresults_table template. make this change.
Find
class="block"
replace it with this.
class="blockrow"
PS dartho
Please make this change in the next release thanks.
Thanks it worked
dcuellar
11-12-2010, 06:00 PM
Sorry - no chance of me adding that and very little chance of me adding much else which isn't trivial to this product.
That's cool. Any chance for a Pro version?
tms433
11-16-2010, 05:08 AM
This is a very popular little item, I definitely need to contribute some support to the developer!
I have two small suggestions:
(1) Is there a way to have a "leaderboard" ? a way to quickly list the top10/20 users as far as vCash? IE "Most Successful this weekend" ? That would be a big hit.
And
(2) I've ran into one snag: an admin test, create an event and then deleted the thread; but the "event" stays within the vBookie console, and we can't delete, close or edit it :(
dartho
11-16-2010, 07:06 AM
An overall leaderboard would pretty easy, and the stats page altready shows top 5. Top 20 for a time period may also be possible - but I'd have to have a look first.
As for the orphaned event, I'm not sure how that happened. It has been reported once before so isn;t a regular occurence. Was it the same user that created and deleted the thead?
To remove it, you will need to edit the database.
Do you have access to phpMyAdmin? If so, look in the vbookie_items table for item_id n (check the value of item_id in the links to the event on the vbookie home page) and delete that row.
wrestlingv123
11-16-2010, 11:47 AM
Got this message when I tried to go to the vBookie on my forum:
Warning: require_once([path]/includes/functions_vbookie.php) [function.require-once]: failed to open stream: No such file or directory in [path]/vbookie.php on line 74
Fatal error: require_once() [function.require]: Failed opening required '/home/*****/public_html/includes/functions_vbookie.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/vbookie.php on line 74
I'm guessing I've uploaded it wrong or placed the file(s) in a different location. Any help?
Wseries
11-16-2010, 12:13 PM
I'm guessing I've uploaded it wrong or placed the file(s) in a different location. Any help?
You guessed right. Just start over by uploading the files again to your server.
tms433
11-17-2010, 08:22 AM
Ok, I can take care of that. Yes, same user.. a mod was testing the script with vegas odds to see how the payouts worked, and just and an event "X -3 V Y" and then deleted the thread.. but the vbookie event stuck, and you can't go to info/thread on it because they don't exist.
neverstop
11-19-2010, 08:13 PM
had a problem today where someone bet on an event and no credits were removed from their total.
These problems seem to be random and I cant make heads or tails of when or why they happen
Still having a problem with this.
It is completely random but every once in a while the credits are not removed from a user when he makes a wager.
No one else has this prob?
New Joe
11-29-2010, 07:28 AM
Been working with style creators on the same issue. If a style uses additional.css it doesn't display right with a few addons
Fix:
Since version 4.0.1, there has been an additional template variable call (to grab additional.css) in the HEAD.
Please add the following:
{vb:raw headinclude_bottom}
Before </head> in your template and you're all set.
Which Template do you do the above?
mentalageof2
12-10-2010, 05:55 AM
Been using this mod for quite a while now and think it's great.
I was wondering if there are any plans to expand the functionality so that creators of the events can accept the responsibility for settling the book, and of course, keep losing bets.
We have a gambling related forum and many of our members fancy themselves amateur bookmakers.
It would add an extra element of realism for the serious gambler :)
dartho
12-10-2010, 08:54 AM
You mean that money goes in and out of their own account balances?
mentalageof2
12-10-2010, 09:22 AM
Yes, just like that.
This would be optional on the event settings of course, but if a user could create the event and have to float the bets of others from their own cash.
Then they receive losing bets directly in to their account and have to pay the winners once the event is resolved.
I think this would add just the kind of risk/reward structure many gamblers look for.
dartho
12-10-2010, 09:36 AM
As it so happens, I have it configured this way on my site - but it applies to ALL books, not as a book by book option. If you like I can work out and put up the instructions for making it work this way, but I'm sorry to say I won't be adding it as a book by book option.
mentalageof2
12-10-2010, 10:10 AM
Ah that sounds awesome.
Yes please :)
I was only really considering the optional setting as a mass market inclusion. I'm sure all of our members will much prefer the personal risk element.
Don't put yourself out too much, but I would greatly appreciate the instructions when you get the time.
Cheers!
mmacrypt
12-10-2010, 10:02 PM
that's pretty cool. Not sure if I would use that or not since I do all the bookies but I also bet a lot also. I would hate to run out of money if the field does really good. But it is very interesting. Never thought about being the actual bookie. I guess I could front myself some Crypt Cash as needed. :D
dartho
12-11-2010, 01:52 AM
My site is under vb3.8 - just tried it on a 4.1 test site and have a few issues (when abandoning events), so will look into it more, but certainly is possible...
mentalageof2
12-12-2010, 12:39 AM
Nice one dartho. I've just upgraded to 4.1.
What currently happens on your board if the bookie is not able to cover an events winnings?
dartho
12-12-2010, 08:46 AM
my bookies go into negative should things not go their way, but for the most part, they are virtual billionaires!
mentalageof2
12-13-2010, 07:12 AM
but for the most part, they are virtual billionaires!
Are they allowed to bet on their own events?
dartho
12-13-2010, 07:24 AM
they are, but given teh money comes out of their pocket, and goes back into their own pocket they always have a nett gain/loss of zero as they are betting against themselves :)
Sharkyman
12-13-2010, 08:30 PM
Sorry, how do you make their Vbookie amounts appear underneath their post counts (or wherever)? I've clicked the "appear in post bit" to yes in the options section but to no avail.
Thanks.
Vick98
12-27-2010, 01:18 AM
For some reason I can not add an event. Do any of you have any ideas?
SVTCobraLTD
12-30-2010, 11:49 AM
Maybe i missed this, but is this working on 3.8.x? I have it currently running from the 3.5 version but would like to upgrade if necessary.
jamunkala1
01-02-2011, 03:10 AM
How to create new events?
EDIT : 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.
http://www.xoxideforums.com/vbookie/68266-new-vbookie-manual.html
dartho
01-02-2011, 06:49 AM
nice work on the manual :up:
pharlap
01-02-2011, 07:12 PM
Great mod !!
Is it possible to "un-settle" an event ? i.e. if you have settled the event but the winner was disqualified after settling?
Wseries
01-02-2011, 07:28 PM
Is it possible to "un-settle" an event ? i.e. if you have settled the event but the winner was disqualified after settling?
No.
sportsfroma2
01-04-2011, 01:33 AM
Hey all. I just had a request, not sure if it's possible, but how do I add a comma separator to the vccash balance in the postbit?
ex: instead of "vcash: 1555000" it shows as "vcash: 155,500"
if it's not possible, no biggie- just wondering.
thanks in advance?
jamunkala1
01-04-2011, 08:37 AM
it dont work with 4.1 PL2 :(
Please update the version of this plugin
dartho
01-04-2011, 10:57 AM
it dont work with 4.1 PL2 :(
Please update the version of this plugin
please define "it"
Itchey
01-05-2011, 05:36 PM
Is there a way to put a minimum & or Maximum on the bets?
pharlap
01-05-2011, 05:41 PM
it dont work with 4.1 PL2 :(
Please update the version of this plugin
Is working with mine
jamunkala1
01-06-2011, 12:14 AM
please define "it"
when i make a post and assign it as a bet, it takes me nowhere like the settings page for vbookie and also when i tried to change the amount of vcash it gave mysql error, the plugin i mean.
Thankyou
neverstop
01-08-2011, 06:27 PM
had a problem today where someone bet on an event and no credits were removed from their total.
These problems seem to be random and I cant make heads or tails of when or why they happenStill having a problem with this.
It is completely random but every once in a while the credits are not removed from a user when he makes a wager.
No one else has this prob?
This seems to be happening even more frequently now. Dartho can you think of anything that could cause this? I would really love to keep this mod.
dartho
01-08-2011, 10:15 PM
No idea - and no one else has reported the issue in this or previous versions. From memory, you use a 3rd party cash system. Are you able to use the in built one?
basilrath
01-09-2011, 09:05 PM
Once the winner is known how do you tell vbookie so it can payout
Just curious as i ahve one to payout on tuesday lol or does something come up telling you to add the winner so it can then pay out ?
pharlap
01-09-2011, 09:26 PM
Once the winner is known how do you tell vbookie so it can payout
Just curious as i ahve one to payout on tuesday lol or does something come up telling you to add the winner so it can then pay out ?
After the event has closed and the "payout after " time has elapsed, look back in the event thread and it will tell you its time to settle
dartho
01-10-2011, 10:41 AM
You go to teh vbookie thead and check the "winner" checkbox
FreshFroot
01-14-2011, 06:15 AM
any chance for a vB 3.8 version of this?
dartho
01-14-2011, 06:58 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=94128" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=94128</a> works under 3.8 with a couple tweaks
insanewhip
01-17-2011, 04:56 PM
Warning: require_once([path]/includes/functions_vbookie.php) [function.require-once]: failed to open stream: No such file or directory in [path]/vbookie.php on line 76
Fatal error: require_once() [function.require]: Failed opening required '/home/content/i/n/s/insanewhips/html/includes/functions_vbookie.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/i/n/s/insanewhips/html/vbookie.php on line 76
I got this error code, Any idea why?
RK KINGKONG
01-18-2011, 12:09 AM
OK im having an issue i had with my arcade too, but there was a .php file i was able to edit to fix this called something like arcade_skins.php w/e .... anyway this one skin is the only one i have this issues with heres pictures im not sure if it has anything to do with the way the skin has like 2 inch space on left & right cause of the blue n the other skins i have dont have this so it works well with those , if you can help me please do
it shows only like half screen all around while in vbookie
vb 4.1 patch 2
FreshFroot
01-21-2011, 07:22 AM
https://vborg.vbsupport.ru/showthread.php?t=94128 works under 3.8 with a couple tweaks
Do you know the tweaks? Everyone there is having some sort of problems.
Yours "seems" to be working fine. So I assume porting it to 3.8 would make things work fine, if this one is working fine.
RK KINGKONG
01-21-2011, 07:37 AM
MY ISSUE WAS FIXED , my problem was it was only showing on one far left onof my screen. thats because i had to adjust a the padding issue . this TP im using uses padding on the left and right cause of a blue image that runs down the sides to it was causing me issues but once i adjusted the padding it strecthed out , i had alot of help from birdprey5 (https://vborg.vbsupport.ru/member.php?u=258922) i will ask him again tomorrow where was the TP edit he made . as for the mod working the wsa its suppose to YES it works fine on 4.1 patch 2 and even now on my updated 4.1.1 hope this helps . im a noob , so dont laugh lol Do you know the tweaks? Everyone there is having some sort of problems.
Yours "seems" to be working fine. So I assume porting it to 3.8 would make things work fine, if this one is working fine.
dartho
01-29-2011, 08:53 AM
Do you know the tweaks? Everyone there is having some sort of problems.
Yours "seems" to be working fine. So I assume porting it to 3.8 would make things work fine, if this one is working fine.
Yes - the tweaks are in that thread, I've already read that thread myself and based on what I read I got it working successfully on my live 3.8 site. I then planned on upgrading my site to 4.0 and updated the templates etc for this to work and shared that work here. I am however yet to actually upgrade to 4.x ....
Backporting from 4.x to 3.8 would be pointless and likely more difficult than porting to 4.0 in the first place.
FreshFroot
01-30-2011, 07:56 AM
Yes - the tweaks are in that thread, I've already read that thread myself and based on what I read I got it working successfully on my live 3.8 site. I then planned on upgrading my site to 4.0 and updated the templates etc for this to work and shared that work here. I am however yet to actually upgrade to 4.x ....
Backporting from 4.x to 3.8 would be pointless and likely more difficult than porting to 4.0 in the first place.
If you have a vB 3.8.6 version.
Would you be able to share it, so we all don't have to go scrambling around to add the fixes?
It saves everyone a lot of time and frustration
sportsfroma2
02-01-2011, 03:59 AM
Just out of curiosity, is there a way to reset/rebuild the stats for a specific thread/vbookie event?
I had another instance of someone somehow getting an insane amount of vcash, so rather than abandon the event I edited his bets down to reasonable levels... Only problem is, the "Total amount staked" for example, doesn't reflect the new/edited values
it's not a big deal if there's no way to update that, just wondering if there's a way to do that...
thanks again Dartho
dartho
02-02-2011, 12:24 AM
Sorry, there's no easy way to do this. You'd have to get into the database and manually edit tables/adjust totals. It's the way it was originally written and all I've done is port the existing code over.
dartho
02-02-2011, 12:51 AM
If you have a vB 3.8.6 version.
Would you be able to share it, so we all don't have to go scrambling around to add the fixes?
Now you're just being lazy!
It saves everyone a lot of time and frustration
not necessarily, just because it works for me doesn't mean it'll work for you. None the less, here you go:
https://vborg.vbsupport.ru/showthread.php?p=2157617#post2157617
FreshFroot
02-04-2011, 03:33 AM
Now you're just being lazy!
not necessarily, just because it works for me doesn't mean it'll work for you. None the less, here you go:
https://vborg.vbsupport.ru/showthread.php?p=2157617#post2157617
Thanks Dartho.
I wasn't trying to be lazy. It just means A LOT of the same work for everyone to go around through all the pages to find fixes etc..
So by you posting something that works for you. Chances are others will have it working too.
So I really appreciate the help you've given. I'm sure a lot of people will have hair left on their heads now :P no more hair plucking driving ourselves insane ;)
anabolicsociety
02-05-2011, 05:30 PM
Any idea on when we might get an upgrade to 4.1.1?
RichieBoy67
02-09-2011, 05:56 AM
Does anyone have this working on 4.1?
Thanks,
Richie
pharlap
02-09-2011, 08:15 AM
Does anyone have this working on 4.1?
Thanks,
Richie
Working all ok for me
EasyEazy
02-14-2011, 01:41 PM
Excellent mod. Great work
Is there a way to make the number of outcomes just 1? I want to be able to put up some accumulators but for members only to be able to bet on them once.
Is there some code that can be changed to allow only 1 outcome?
BenWCF
02-19-2011, 07:49 PM
I've got the 3.8 version running and have a quick question:
Is it right that the amounts that my members are posting are meant to go onto my overall total?
I myself had a limit of 500 like the others but now have over 3000.....
blind-eddie
03-01-2011, 04:02 AM
Does anyone have this working on 4.1?
Thanks,
Richie
Just loaded it on a live test site & it seems to work great
http://bigsite.biz/vb4.1
Login to any account but mine of course using the password: 00000000
to test I guess. Postbit vcash shows also.
Change style to darker one for better view.
sticky
03-02-2011, 07:07 PM
Hi, I was hoping it would still be possible to get a max bet limitation put in?
Sharkyman
03-20-2011, 11:01 AM
Quick question.
Where is the page where I can change everyone's starting amounts/give everyone vcash etc?
Cracking mod BTW.
EDIT; Doesn't matter, found it.
AzHousePro
03-25-2011, 04:30 AM
Quick question. I am thinking about upgrading my current forum to 4.1, but I have to be able to run vbookie on the forum. I currently have the 3.5 version working on my 3.8 install. If I upgrade to 4.1 and then install this, will it keep the existing vcash #s for my users?
dartho
03-25-2011, 06:42 AM
should do - backup first as always.
pharlap
03-26-2011, 11:46 PM
Howdo !
Is it possible to have decimal odds instead of fractional ?
And...
Is it possible to have a default value to the "to" odds ? e.g. in the image ,is it poss to make "1" default instead of typing it into each selection.
https://vborg.vbsupport.ru/external/2011/03/6.jpg
dartho
03-28-2011, 10:57 AM
default value should be easy, I'll have a quick look at decimal odds...
[edit:]
To make the "To" odds default to 1, edit the vbookie_event_outcome template, search for:
value="{vb:raw odds2.question}"
and replace with
<vb:if condition="$odds2[question]==''">value="1"<vb:else />value="{vb:raw odds2.question}"</vb:if>
Re: decimal odds - too hard, or to be honest after a quick glance at the code there appears to be no "quick fix" and I can't be bothered putting the time in to change it :)
mentalageof2
03-29-2011, 01:57 AM
@dartho
Hi again, back on page 40 of this thread we had a small discussion about vbookies covering their own books and it turned out that you run it this way on your board. You offered to provide some instructions but discovered some issues running it this way on 4.1.
Were you able to resolve those issues? I'd still greatly appreciate those instructions :)
Cheers!
combs
04-09-2011, 08:29 PM
I just installed this and it won't add on my postbit to any skin other than default.
Kind of silly how it is setup having to go in the plugin, is there any other way to do this or make it show up?
dartho
04-09-2011, 10:21 PM
@mentalageof2 - Sorry, I haven't yet... Things have been pretty busy for me
@sticky - it can (at least could under 3.8) kinda be done, but punters could easily bypass by placing multiple bets. Refer to my note to mentalageof2 above
@EasyEazy - no, sorry ...
@combs - sounds like those custom styles have removed vbulletin template hooks - kind of a silly thing to do
DAMINK
04-10-2011, 06:51 AM
I get a blank page?
First time i installed it was today.
Sounds like a bit of fun if i can get it working that is.
dartho
04-10-2011, 08:48 AM
Looks like you got it worked out?
DAMINK
04-10-2011, 09:12 AM
Looks like you got it worked out?
Yep sure did mate. Not sure what happened actually.
I refreshed the page and it was fine.
Thankyou for the quick reply.
combs
04-10-2011, 03:20 PM
@combs - sounds like those custom styles have removed vbulletin template hooks - kind of a silly thing to do
I am using this: https://vborg.vbsupport.ru/showthread.php?t=236953
How would I add the template hooks back to it? :( , I really like using that setup, just need to add the vcash to it!
dartho
04-10-2011, 09:15 PM
Actually - the hooks are there on that page you linked to. Not sure why you are having issues (could be teh apostrophes around 'posts' in the line before the hook), however you can do it manually. Edit your postbit legacy, search for
<div class="eti_postbit">
{vb:rawphrase 'posts'} : {vb:raw post.posts}
</div>
add
<div class="eti_postbit">
{vb:rawphrase vbookie_cash} : {vb:raw post.vbookie_cash}
</div>
immediately below it. You should also disable the vBookie: Add Cash to Postbit plugin if you've manually added the template edit.
combs
04-11-2011, 03:50 PM
Thanks man, definitely worked. Just had to add the word "VCash" in front of the code like this
<div class="eti_postbit">
Vcash: {vb:rawphrase vbookie_cash} : {vb:raw post.vbookie_cash}
</div>
Cool stuff.
mentalageof2
04-13-2011, 08:46 AM
@mentalageof2 - Sorry, I haven't yet... Things have been pretty busy for me
No worries man, I completely know the feeling. :up:
hawk11220
04-15-2011, 11:44 PM
My vbookie post icon is not showing up. I am getting the dreaded red X and outline for where the image should be.
I checked the properties of the icon, and the path is correct. The image is there. However, it is not showing up.
thoughts?
vbookie_posticon.png is the image. I haven't checked any files yet. I will do that now.
Thanks,
hawk
Wordplay
04-18-2011, 09:41 PM
since upgrading to 4.1.3 i can no longer see usergroup options for vbookie. is nobody else having this issue? i tried re-uploading the product but that didnt help.
ellinofatsa
05-06-2011, 04:36 PM
i have vb 4.1.3 bud i cant make bett
any help how to make to work?
8thos
05-06-2011, 05:57 PM
Does this work for vbcredits yet?
RichieBoy67
05-10-2011, 02:19 AM
Is there any kind of widget for this?
Thanks
stilly
05-14-2011, 10:21 PM
Installed and working fine w/ 4.1.3 other than a style issue when enabling vcash in postbit -
129078
Tried a few things to get the value aligned with vcash, any suggestions to correct this? Using default style.
dartho
05-14-2011, 10:31 PM
Can you drop me a link so I can look?
dartho
05-15-2011, 02:42 AM
It's actually an issue with the Thanks code that is causing the vCash to be out out.
The bit where is says "Thanked 11 Times in 11 Posts" is in a <dd> tag with no preceding <dt> tag. Fix that up and it should be OK. Alternatively, if you change the plugin order so that the vCash gets displayed first that should cover it up.
8thos
05-15-2011, 03:08 AM
Hi dartho. Does this work with vbcredits?
dartho
05-15-2011, 03:16 AM
it did at some stage (at least the support is in there for a version of it) but there are some variables which may mess things up. However, I believe that VBCredits itself has teh facility to integrate with vBookie regardless
Successfulsteps
05-15-2011, 05:38 AM
Is there anyway to import the images for the teams, like this:
This is in an iboard forum and I absolutely love it:
https://vborg.vbsupport.ru/external/2011/05/9.gif
stilly
05-15-2011, 09:25 PM
It's actually an issue with the Thanks code that is causing the vCash to be out out.
The bit where is says "Thanked 11 Times in 11 Posts" is in a <dd> tag with no preceding <dt> tag. Fix that up and it should be OK. Alternatively, if you change the plugin order so that the vCash gets displayed first that should cover it up.
Yep got it worked out with tags. Also called the plugin first. Cheers and thanks.
Diddy Kong
05-21-2011, 05:44 PM
I have installed this but when I click on the vbookie section on my forum it takes me to the homepage on my site.
Any idea how I can get it to work?
dartho
05-21-2011, 09:21 PM
COuld you provide a link
Diddy Kong
05-22-2011, 11:49 AM
<a href="http://www.lfc4life.net/forum/forum.php" target="_blank">http://www.lfc4life.net/forum/forum.php</a>
Chase
05-22-2011, 09:37 PM
I'm using vbookie on 3.8.4
What do I need to do to make this work on 4.1.2?
dartho
05-22-2011, 10:13 PM
I have installed this but when I click on the vbookie section on my forum it takes me to the homepage on my site.
Any idea how I can get it to work?
That's not your Home Page, it's a 404 Page not found error. You haven't uploaded the vbookie files to your forum root ...
dartho
05-22-2011, 10:14 PM
I'm using vbookie on 3.8.4
What do I need to do to make this work on 4.1.2?
After you upgrade vbulletin, upgrade vbookie
TexasTornadoDeb
05-23-2011, 12:01 AM
Is there anyway to import the images for the teams, like this:
This is in an iboard forum and I absolutely love it:
https://vborg.vbsupport.ru/external/2011/05/9.gif
Any way to add the icons for the teams?
dartho
05-23-2011, 01:20 AM
No, it doesn't do such things. You may be able to mess around with template conditionals to achieve something
Diddy Kong
05-23-2011, 10:37 AM
That's not your Home Page, it's a 404 Page not found error. You haven't uploaded the vbookie files to your forum root ...
Do you do that uploading the files to the host that I use?
dartho
05-23-2011, 11:13 AM
yes - to your "forum" directory
Diddy Kong
05-23-2011, 11:57 AM
Thanks.
Having Text Color Issues when Trying to post a new event on a dark skin, can't see text cause it black, just looking to see what template and where I have to edit the option.
dartho
06-06-2011, 03:12 AM
turn on template names in HTML commments in vBulletin Options and then view source to see which templates etc
ashley55
06-06-2011, 10:34 PM
I have searched the entire thread, and read the old threads as well, and I cannot seem to figure out how to set a MAX LIMIT on wagers. We are attempting to keep our "pG Cash" small, so we want to limit the amount allowed to 500. Is this possible?
bobster65
06-07-2011, 01:09 AM
I have searched the entire thread, and read the old threads as well, and I cannot seem to figure out how to set a MAX LIMIT on wagers. We are attempting to keep our "pG Cash" small, so we want to limit the amount allowed to 500. Is this possible?
you could try this... this was for the vB 3.5 version (which worked with all 3.x versions)...
https://vborg.vbsupport.ru/showpost.php?p=1387588&postcount=1679
ashley55
06-07-2011, 08:59 AM
you could try this... this was for the vB 3.5 version (which worked with all 3.x versions)...
https://vborg.vbsupport.ru/showpost.php?p=1387588&postcount=1679
Worked perfectly. Thank you.
turn on template names in HTML commments in vBulletin Options and then view source to see which templates etc
That still doesn't really help me, I know where all the bookie templates are I just don't know where to change the input text color.
dartho
06-08-2011, 09:18 PM
That still doesn't really help me, I know where all the bookie templates are I just don't know where to change the input text color.It was you that asked what template, if you already know which one then edit it, search for the elements you wish to change and change them.
SECTalk.com
06-10-2011, 03:41 PM
Not sure if it's suppose to, but there is no "vBookie" prefix in front of threads which include a vbookie event. Any idea if this is possible? There is always the manual option of adding a prefix but I'd rather not do that.
Thanks
SECTalk.com
06-14-2011, 06:33 PM
Bump..
dartho
06-17-2011, 02:19 AM
As you have worked out, there is no built in support for prefixes. It is no doubt possible, but not something I'm working on
SECTalk.com
06-17-2011, 06:07 AM
I have further noticed that the prefix indeed displays when you are looking at a forum, but not on searches. Is there any way to remove the prefix from the forum view?
Thanks
SECTalk.com
06-17-2011, 06:11 AM
Nevermind, I see that you can disable the plugin thread prefixes under this product.
This can allow users to setup a custom prefix to manually choose when setting up vbookie threads. It isn't perfect, but it will work. :)
tareqbd
06-18-2011, 04:54 AM
Hello, I have installed it with my vb 4.1.3. It's installed well but it's not integrating with vBcredit Deluxe II. Can you help me please.
rootsxrocks
06-18-2011, 06:13 AM
You must use the custom setting the credits setting is for the older version of credits.
there is also a action set that Dark created for this.
Viruseater
07-02-2011, 02:25 PM
EDIT: nevermind, figured it out.
thanks for porting this to 4x!
Brexen
07-05-2011, 09:05 PM
Does anybody link me to vbookie for 4.1.4 i tryed looking for it but cant find it :( please link me to it ...
DS MrSinister
07-06-2011, 02:34 AM
How about the first post mate.
Download version 4.0.9
MagicThemeParks
07-06-2011, 11:51 AM
Just to confirm: Is the style fix referenced in the 2nd post (https://vborg.vbsupport.ru/showpost.php?p=2077906&postcount=428) supposed to be entered before </head> in the "page" template? If so, it was already there and still showing a broken style. Any other suggestions on what we can do to avoid having the vBookie page displaying the header and footer issues?
EDITED: Just reread the posts near the suggested fix and realized it's not the "page" template, but the "VBOOKIE" template that needs that piece of code added. :up:
Dismounted
07-14-2011, 12:16 PM
Just a heads up for those of you interested: dmActivityStream (https://vborg.vbsupport.ru/showthread.php?t=264053) now has a vBookie integration (https://vborg.vbsupport.ru/showthread.php?t=266812). :)
MagicThemeParks
07-29-2011, 09:09 PM
How can you increase the number of "News and Events" displayed on the vbookie.php page?
Edited: Found it. Open vBookie.php and go down to line 406 and change the "4" number in the following line to whatever you'd like.
$newsresult = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "vbookie_news ORDER BY news_id DESC LIMIT 4");
dartho
07-29-2011, 09:50 PM
How can you increase the number of "News and Events" displayed on the vbookie.php page?
Edit vbookie.php search for $newsresult = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "vbookie_news ORDER BY news_id DESC LIMIT 4"); and change the 4 on the end with the number of news items you want disaplyed.
lapiervb
08-06-2011, 09:23 PM
Could this be used to create an NFL Pool?
Jellymedia
08-15-2011, 03:08 PM
Looking for a little support, if you don't mind. Our forum has been cripplingly slow for the last few days and it turns out that this query is tying up the user table in our database for at least 20 seconds each time:
SELECT user.username, user.userid, user.vbookie_cash AS vcash, userban.liftdate, if( customavatar.dateline IS NULL , NULL , 1 ) AS hasAvatar, (
SELECT bet_id
FROM vbookie_bets_placed
WHERE userid = user.userid
AND bet_private = 'N'
AND bet_settled = 'Y'
AND bet_amount_won >0
ORDER BY bet_placed DESC
LIMIT 1
) AS lastwinid
FROM user
LEFT JOIN userban ON user.userid = userban.userid
LEFT JOIN customavatar ON customavatar.userid = user.userid
WHERE user.vbookie_cash >450
AND userban.liftdate IS NULL /* REMOVE THIS FOR REAL DATA */
AND (
SELECT bet_amount_won
FROM vbookie_bets_placed
WHERE userid = user.userid
AND bet_private = 'N'
AND bet_settled = 'Y'
ORDER BY bet_placed DESC
LIMIT 1
) >0/* ^^^^ REMOVE THIS FOR REAL DATA */
ORDER BY user.vbookie_cash DESC
LIMIT 7
Trouble is--or one of the troubles--is that I can't find where this is being executed, so I can't remove/rewrite it. Any idea?
Why not just disable the product?
dartho
08-15-2011, 09:35 PM
That query is not like any in the stock vbookie. You've modified it and added that in your self somewhere along the way.
Why not search through the vbookie.php and the includes/functions_vbookie.php files and also check the plugins associated with vbookie to see if you can track it down? Failing those you could search your database and also grep your files...
dgparent
08-18-2011, 08:00 PM
How the hell do you actually add a event to bet on ??????
bobster65
08-18-2011, 08:52 PM
How the hell do you actually add a event to bet on ??????
create a new thread and check the option to make it a vbookie event. When you submit the thread, you will be taken to the next step which is creating the event.
dgparent
08-18-2011, 11:30 PM
OK I finally figured out how to add a event but now I figure out how to actually bet on it ?? I registered as a new user and I still can't figure this freaking thing out each user is given 1000 by default.
dgparent
08-18-2011, 11:36 PM
Also I have vbseo installed and when you click on the "Bet Statistics" tab you get a 404 error ??
http://www.collegefootballforum.info/vbookie.php?do=stats
This error might be a result of a empty query set, due to the fact no one can bet
dgparent
08-18-2011, 11:41 PM
One other thing this makes no sense, where do you get vBExperience401_20100803.zip ?? I searched every forum here I can't find it , so I can't find \extras\Addons\vBookie.xml either
You can now use also vBExperience as a cash system.
If you have already vBExperience installed, you just need the plugin for it. Download vBExperience401_20100803.zip and install ZIP\extras\Addons\vBookie.xml as a product. After that choose "Custom" as your "Cash/Points System".
dgparent
08-19-2011, 12:17 AM
Ok I am starting a game on my site using this I need to be able to do this
1. Each week I post 15 games with lines to bet on users bet vcash on them
2. I want them all in 1 thread not 15 threads
How do you do that? So users can pick and choose between 15 games each week in 1 thread ? If you start with 30 outcomes will that work ? I don't think so.
Basically I need the ability to add as many games with 2 outcomes as I want to ONE thread.
pharlap
08-19-2011, 10:35 PM
OK I finally figured out how to add a event but now I figure out how to actually bet on it ?? I registered as a new user and I still can't figure this freaking thing out each user is given 1000 by default.
ALTER TABLE user CHANGE COLUMN vbookie_cash vbookie_cash BIGINT(20) UNSIGNED NULL DEFAULT 1000 ;
change 1000 to the start value you want for new users
New Joe
08-24-2011, 04:19 AM
How can I add the VCash to the postbit manually?
Mickie D
08-25-2011, 08:26 PM
Little problem with this.
When I had the original on vb3 it would give and take money from the bookie.
so whatever the members betted, went into the bookies cash, and if they won they would receive the money from the bookie, if they lost the bookie would keep the cash.
My users liked this as it put an edge on the game - nicking a little from there friends.
Now when they play the money goes no where but they win or lose the amount.
Does anyone have any ideas why the bookie is not getting the money before the game ?
Thanks for any help.
Mick
bobster65
08-27-2011, 04:40 AM
Little problem with this.
When I had the original on vb3 it would give and take money from the bookie.
so whatever the members betted, went into the bookies cash, and if they won they would receive the money from the bookie, if they lost the bookie would keep the cash.
My users liked this as it put an edge on the game - nicking a little from there friends.
Now when they play the money goes no where but they win or lose the amount.
Does anyone have any ideas why the bookie is not getting the money before the game ?
Thanks for any help.
Mick
That must have been a customization that someone had done for you as vbookie has never been that way.
talkncaasports
09-02-2011, 05:58 AM
Ok I am starting a game on my site using this I need to be able to do this
1. Each week I post 15 games with lines to bet on users bet vcash on them
2. I want them all in 1 thread not 15 threads
How do you do that? So users can pick and choose between 15 games each week in 1 thread ? If you start with 30 outcomes will that work ? I don't think so.
Basically I need the ability to add as many games with 2 outcomes as I want to ONE thread.
Unless someone knows something I don't, which is probably going to be the case, that is the way to do it.
That is at least the way I have done it in the past.
If you are wanting all your weeks games to be in one thread, just use as many outcomes as you need. You can have multiple winners for each event.
Mickie D
09-04-2011, 05:05 PM
That must have been a customization that someone had done for you as vbookie has never been that way.
You could probably ask 500 of my members that use it regularly, that is how it worked and I never made any customizations, or anyone else.
I would however pay for someone to do that no problem, as it was much more fun for everyone.
Still loving this mod though!
Mick
dartho
09-04-2011, 09:53 PM
Bobster is correct, that was never default behaviour. There are instuctions in the 3.5 version thread on how to make this change, but I ran into an issue when having a quick look at it under 4.0, so it is more than a quick job (and not one I can do at the moment).
BTW - I still use vb3.8 and have that same code modification.
Mickie D
09-04-2011, 10:08 PM
No problem Dartho, thanks for looking.
Can you point me to that information please, I will take a little look.
But I can promise you I never done this modification, very strange?
Regards
Mick
Mickie D
09-04-2011, 10:22 PM
Found it here.
https://vborg.vbsupport.ru/showpost.php?p=926572&postcount=716
Will have a look at it tomorrow.
Regards
Mick
dartho
09-04-2011, 10:39 PM
Ah - I remember now, you're probably using this version whioch would explain why you did not have to modifiy the code: https://vborg.vbsupport.ru/showthread.php?p=2157617#post2157617
Mickie D
09-05-2011, 04:23 PM
That was exactly the one I installed :)
Thought I was going crackers there.
I have just got in from work but seen that the switch uses "vcash" instead of "vCash"
Looking over it now hopefully I can get it going
Mick
Mickie D
09-05-2011, 06:16 PM
I got it working!
It was a very easy fix - you just change the "CASE".
If anyone is interested and all credits to the original add on maker... I done nothing really!
You will need to follow the instructions from this post
https://vborg.vbsupport.ru/showpost.php?p=926572&postcount=716
But when it comes to the edit for function_vbookie.php use this code below
// Additional pay/debit bookie
function vbookie_take_bookie_cash($userid, $amount)
{
global $vbulletin;
$bookie = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid=$userid");
switch ($vbulletin->options['vbookiecash'])
{
case 'vCash':
if($amount > $bookie['vbookie_cash'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=vbookie_cash-$amount WHERE userid=$userid");
}
break;
case 'uCash':
if($amount > $bookie['ucash'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=ucash-$amount WHERE userid=$userid");
}
break;
case 'eBux':
if($amount > $bookie['ebux'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ebux=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ebux=ebux-$amount WHERE userid=$userid");
}
break;
case 'custom':
($hook = vBulletinHook::fetch_hook('vbookie_take_bookie_cas h')) ? eval($hook) : false;
}
}
dartho
09-05-2011, 09:32 PM
Excellent - glad you go it working!
CharlieDelta
09-08-2011, 05:16 PM
I used to have a max limit on my site (although users could get around this by placing multiple bets) - I'll have a look
Hi dartho, is this something you would be interested in doing. Would be of good use for us.
ProFifaLeagues
09-08-2011, 06:07 PM
Hi dartho, is this something you would be interested in doing. Would be of good use for us.
Would also be of use to us too :) :up:
gazzak
09-10-2011, 12:35 PM
If you could build in the feature to take the money from the bookie directly then it would be fantastic.
So what happens if the bookie can't afford to pay out?
Edit: I just tried this and the event will still pay out even if the bookies account hits zero. That is open to abuse. How can we stop the event paying out more than the bookie has on hand?
FReeSTER
09-17-2011, 12:29 PM
this is breaking up my new style just on the Bookie thread.
I did added this {vb:raw headinclude_bottom}
but same.
billybobilou
09-17-2011, 02:33 PM
Bonjours
J'ai une erreur quand je clic sur "Bet statistics":
Warning: mysqli_query(): Empty query in [path]/includes/class_core.php on line 1300
Merci
Hello
I get an error when I click on "Bet statistics":
[QUOTE] Warning: mysqli_query (): Empty query in [path] / includes / class_core.php on line 1300 [/ QUOTE]
thank you
dartho
09-17-2011, 09:25 PM
That should not happen. Do you still get an error after you have created a vBookie event?
starman?
09-19-2011, 05:07 PM
Although vBookie does not have any built-in facility to integrate with any other store hacks, it's a very simple job to hack vBookie itself to integrate it with any store/points system you care to use.
I see vBPlaza / vBux has just been re- released. How would I go about integrating your product with that? Any help appreciated. thanks.
billybobilou
10-06-2011, 11:57 AM
Bonjour dartho, oui ça ce produit a chaque fois
merci
Good morning dartho, yes this this product has every time
thank you
rootsxrocks
10-07-2011, 12:32 AM
Little problem with this.
When I had the original on vb3 it would give and take money from the bookie.
so whatever the members betted, went into the bookies cash, and if they won they would receive the money from the bookie, if they lost the bookie would keep the cash.
My users liked this as it put an edge on the game - nicking a little from there friends.
Now when they play the money goes no where but they win or lose the amount.
Does anyone have any ideas why the bookie is not getting the money before the game ?
Thanks for any help.
Mick
Ah - I remember now, you're probably using this version whioch would explain why you did not have to modifiy the code: https://vborg.vbsupport.ru/showthread.php?p=2157617#post2157617
I got it working!
It was a very easy fix - you just change the "CASE".
If anyone is interested and all credits to the original add on maker... I done nothing really!
You will need to follow the instructions from this post
https://vborg.vbsupport.ru/showpost.php?p=926572&postcount=716
But when it comes to the edit for function_vbookie.php use this code below
// Additional pay/debit bookie
function vbookie_take_bookie_cash($userid, $amount)
{
global $vbulletin;
$bookie = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid=$userid");
switch ($vbulletin->options['vbookiecash'])
{
case 'vCash':
if($amount > $bookie['vbookie_cash'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=vbookie_cash-$amount WHERE userid=$userid");
}
break;
case 'uCash':
if($amount > $bookie['ucash'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=ucash-$amount WHERE userid=$userid");
}
break;
case 'eBux':
if($amount > $bookie['ebux'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ebux=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ebux=ebux-$amount WHERE userid=$userid");
}
break;
case 'custom':
($hook = vBulletinHook::fetch_hook('vbookie_take_bookie_cas h')) ? eval($hook) : false;
}
}
Excellent - glad you go it working!
This is the kind of accountability I was hoping to have while using a second currency with vb credits deluxe, I had hoped it would be something that was worked on. I should have been coming here to look for it I suppose. I need to have limits on the betting or keep the bookies money as a bank and discard any use of the credits for bets.
reeshe
10-07-2011, 02:17 AM
I see how to use experience points with this but is there a way to use vbactivity with this? Thanks in advance
vanquish.securi
10-08-2011, 05:05 AM
Works great on 4.1.7. Marked.
petergharris
10-15-2011, 10:55 AM
I am having a problem as regards the time setting on vbookie.
It used to work perfectly, but at the moment I am having to put on GMT+1 instead of GNT to get the right time for when I want to close the event.
The time at the bottom of the forum is correct so it doesn't have anything to do with that.
Does anyone have any ideas?
DEREKTROTTER
10-22-2011, 05:16 AM
Can you please tell me how to adjust the betting limit for vBookie? I'd like to know this because when I go to the general settings for vbookie, there isn't an option there to adjust it.
rootsxrocks
10-22-2011, 05:25 AM
I would sure like to know how to do that too as well as confirmation on how to make bets pay from the bookie account
dartho
10-22-2011, 05:33 AM
Can you please tell me how to adjust the betting limit for vBookie? I'd like to know this because when I go to the general settings for vbookie, there isn't an option there to adjust it.
Derek - you have not downloaded vBookie or clicked mark as installed?
dartho
10-22-2011, 05:35 AM
Check, might work:
Open vbookie.php.
Find:
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:
foreach ($vbulletin->GPC['option'] AS $option_id => $stake)
{
if ($stake > 0)
{
if ($stake > 100){
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");
}
}
Open your vBulletin database and look at the phrase table.
Find the largest phraseid, then create a new row with a phraseID that's one larger than the largest one so far. The other values are as follows:
languageid : -1
varname : vbookie_exceeded_max_bet
text : You have exceeded the maximum amount of $100 per bet.
phrasetypeid : 1000
product : bookiehack
Obviously, change the $100 max to whatever you want your max to be.
ghaleon7
10-22-2011, 08:27 AM
I see vBPlaza / vBux has just been re- released. How would I go about integrating your product with that? Any help appreciated. thanks.
If at all possible can someone explain to me how to get the vBookie to use vbbux.
zapiy
10-28-2011, 02:50 PM
Hi i have a page full of events with no delete option.. The threads have been fully deleted and when i click the Thread or info links i get this..
No Thread specified. If you followed a valid link, please notify the administrator
Any help please?
dartho
10-28-2011, 09:25 PM
if the threads has been deleted somehow withiut deleting the event, you will need to manually remove it from your database (search vbookie_items table on the threadid)
DEREKTROTTER
11-06-2011, 02:33 AM
@dartho, I installed the add on without pressing 'mark as installed'. It is now marked as installed.
Can you please tell me now how I can adjust the betting limit for vBookie. (I know it is somewhere in the php file.
:) Thanks
dartho
11-06-2011, 06:46 AM
Hi Derek, it wasn't that you hadnt clicked 'Mark As Installed' so much so as hadn't even downloaded it (as 'Coder' of this thread - I can see which people who post in this thread have downloaded the mod) - which usually means you obtained the mod from a pirate site which usually means you aren't licensed. I can now see you have since downloaded so I know this is not the case (although you still aren't showing as 'Marked as Installed')
Anyway - I did actually answer your question on the previous page where you asked it: https://vborg.vbsupport.ru/showthread.php?p=2260040#post2260040
DEREKTROTTER
11-15-2011, 05:59 AM
The betting limit has been adjusted.
I have a very unusual problem, which you probably cannot help me with, but I'll see if you can.
There is an event which just won't go away. It had been on for ages and ages when it was already settled. It doesn't direct to a particular thread. I'm thinking this might be because the thread was deleted, before the event was settled. Am I right?
Thanks.
ChromeDome
11-18-2011, 03:06 AM
I get this error when I surf on one of the vbookie pages:
Database error in vBulletin 4.1.8:
Invalid SQL:
SELECT
SUM(bet_amount_won) AS sumbets
FROM vb_vbookie_bets_placed
WHERE bet_settled='Y' AND userid=1
AND dateline > 315532800
GROUP BY userid;
MySQL Error : Unknown column 'dateline' in 'where clause'
Error Number : 1054
Request Date : Thursday, November 17th 2011 @ 11:01:50 PM
Error Date : Thursday, November 17th 2011 @ 11:01:50 PM
Username : Unregistered
Classname : vB_Database_MySQLi
MySQL Version :
Successfulsteps
12-20-2011, 12:13 AM
I just upgraded to 4.1.9 and keep getting this db error. Can't settle bets nor can we make new ones or create new items to bet on:
Database error in vBulletin 4.1.9:
Invalid SQL:
SELECT
SUM(bet_amount_won) AS sumbets
FROM vbookie_bets_placed
WHERE bet_settled='Y' AND userid=2
AND dateline >
GROUP BY userid;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY userid' at line 6
Error Number : 1064
Request Date : Monday, December 19th 2011 @ 07:10:52 PM
Error Date : Monday, December 19th 2011 @ 07:10:52 PM
Script : http://www.1stdegreefreebies.com/forums/cron.php?rand=1324343450
Referrer : http://www.1stdegreefreebies.com/forums/index.php
IP Address : **left off on purpose**
Username : Unregistered
Classname : vB_Database
MySQL Version :
thenamesgould
12-20-2011, 06:42 AM
Hi dartho, wow, another great mod from you (or ported at least) ... I've just installed this on my forum, and it should go down a treat, I reckon! (When people aren't busy posting in the girlfriend thread).
Just one simple question, where can I edit the template for the bet info? Eg:
https://vborg.vbsupport.ru/external/2011/12/22.jpg
I want to change that odds column where it says (1.10) and (0.83) to $2.10 and $1.83, which I'm correct in saying would be the actual return, wouldn't it? Just to make it a bit simpler for the less seasoned gamblers to use. Should be easy enough, whack in a $ and add one to the numbers, I assume?
Cheers for any help. :)
dartho
12-21-2011, 11:05 AM
edit the vBookie: Show Events in Showthread plugin, search for
$outcome['odds_decimal'] = sprintf("%0.2f", ((float)$outcome['odds_against']/(float)$outcome['odds_for']));
replace with
$outcome['odds_decimal'] = sprintf("%0.2f", ((float)$outcome['odds_against']/(float)$outcome['odds_for'])+1);
then edit the vbookie_outcomebits_nobet and vbookie_outcomebits temapltes and search for
<td class="{vb:raw bgclass}" align="right"> ({vb:raw outcome.odds_decimal}) </td>
and change to
<td class="{vb:raw bgclass}" align="right"> (${vb:raw outcome.odds_decimal}) </td>
thenamesgould
12-22-2011, 06:32 AM
Thanks dartho!!! Works perfectly, of course! :)
thenamesgould
12-25-2011, 11:06 AM
I'm just having a mess around with this, and I'd like the $ change to take effect on bet.odds_decimal as well ... is that possible? This is for the event info screen. I've got the $ sign in there, but can't get the 1 to add on.
Hi dartho,
Please let me know where I can find the yellow word in the pictures to translate in to my language? I use "Search in Phrases" but no thing is change
Thanks
https://vborg.vbsupport.ru/external/2011/12/3.png
https://vborg.vbsupport.ru/external/2011/12/4.png
dartho
12-25-2011, 10:29 PM
@SRSC, they are all phrased an can be changed in Phrase Manager.
The language in the second screen capture you have will not change until new information is posted as those statements are recorded in the database based on phrases at the time they were created.
@thenamesgould - check the vbookie.php file andsearch for ['odds_decimal'] and make changes like you did in the plugin
@SRSC, they are all phrased an can be changed in Phrase Manager.
The language in the second screen capture you have will not change until new information is posted as those statements are recorded in the database based on phrases at the time they were created.
I already changed "OPEN" to new phrase but it not change in the 1st picture? or it will change from new bet created on?
please confirm that
Jakub03
01-04-2012, 04:23 AM
Is it possible to change the name vCash to something else? Instead of in profiles of showing up as vCash i want it to show MPH Chips is this possible to do?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.