View Full Version : vBookie - vBulletin Betting Hack
LoOnEyToOnZ
07-22-2004, 11:55 PM
this is correct because it subtracts initial bet from your total.
if you had $500 and bet $100 your new vCash total is $400
then when bet is settled you get what you bet $100 + wininngs $170 (@1.7 to 1 odds)
that is correct way to do it.
I thought the correct way would be for the $100 initial bet to be included within the $170 winning though.... since 1.7 odds usually means that you win only 0.7
romeshomey
07-22-2004, 11:59 PM
I thought the correct way would be for the $100 initial bet to be included within the $170 winning though.... since 1.7 odds usually means that you win only 0.7
No.
Say for instance you made a $10 bet on something with 42-1 odds.
Say you had $500 before making the bet.
If you lose, you would be down $10 and your balance down to $490, but if you win you would win $420 making your balance now $920.
I made a $10 bet on the Ravens to win the Super Bowl in 2000 on 42-1 odds before the season started. $420 was deposited to my account the day after the Super Bowl for my winnings.
So basically if you bet $10 on something on 10-1 odds and win, you would win $100, or if you lost would only lose your initial $10.
da prez
07-23-2004, 12:35 AM
the easiest way to look at it is, if you laid a $50 chip down at vegas roulette wheel on black (1 to 1 odds),
and it came up black, you would get your chip back and another one.
betting in first 3rd 1-12 (3 to 1 odds)
if you bet $50 and you won, you would get first $50 chip and 3 more of them, etc.
romeshomey
07-23-2004, 06:44 PM
Is it possible to retract a bid another user has made?
For example. I had a event set up for Eddie Georges signing. Betting on what team he would sign with.
There was no way to set a date that would end on the day and time of the event so it was left open.
Anyhow, when he signed, I had a bet made by someone for 400 vCash and it was a bet made after the event took place but I wasnt here to end the event when it actually ended.
So, how can I go about taking those winnings he made back?
Would it be possible to add a date and time to when each bet was made, and then to make it possible to edit vCash in the Admin CP under user information like you can for post count?
joshskeety
07-23-2004, 11:17 PM
I get this error message when installing.. It gets to the "do database modifications" part and then I get..
Database error in vBulletin 3.0.1:
Invalid SQL:
CREATE TABLE vb3_vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM
mysql error: Invalid default value for 'group_id'
mysql error number: 1067
Any solutions?
Josh
romeshomey
07-24-2004, 09:10 AM
OK, I figured out how to edit amounts won, etc..
What can I do to add a date stamp to bets that are made so I can see date and time they are placed?
RMS-Chef
07-25-2004, 04:43 AM
OK, I figured out how to edit amounts won, etc..
What can I do to add a date stamp to bets that are made so I can see date and time they are placed?
Again, in the database, you would have to find the bet in question. There is a timestamp in there. This post may help: http://www.respawned.co.uk/forums/showthread.php?t=1832
amairiya
07-25-2004, 06:51 PM
I currently have uShop installed and I am running vB 3.0.3
And I'm having some problems with the modification of init.php. I keep getting parse errors anytime I try to combine these pieces of code.
'stylecache',
// +++ vBookie
'vbookiesettings'
// --- vBookie
), $specialtemplates);
and the one from uShop
// ## <ucs>
'stylecache',
'utt_store_act'
// ## </ucs>
), $specialtemplates);
If anyone has these two hacks installed and working properly, could you please tell me the piece of code that I need to put in the init.php file in order for them to work and not get parse errors? Thanks.
amairiya
07-25-2004, 07:44 PM
nevermind I figured it out myself, thanks!
joshskeety
07-25-2004, 10:53 PM
I get this error message when installing.. It gets to the "do database modifications" part and then I get..
Database error in vBulletin 3.0.1:
Invalid SQL:
CREATE TABLE vb3_vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM
mysql error: Invalid default value for 'group_id'
mysql error number: 1067
Any solutions?
Josh
dynamite
07-26-2004, 09:17 PM
Care to share what you did amairiya?
RMS-Chef
07-26-2004, 10:51 PM
He probibly just made sure the last one did NOT have a comma.
Like:
'stylecache',
'vbookiesettings',
'utt_store_act'
), $specialtemplates);
tjdrico
07-27-2004, 07:34 AM
OK, I figured out how to edit amounts won, etc..
What can I do to add a date stamp to bets that are made so I can see date and time they are placed?
The 'vbookie_bets_placed' table already has this information in the 'bet_placed TIMESTAMP' field.
yobajufa
07-27-2004, 06:22 PM
Is anyone available to do vbookie customization for $.
pm me if you are!
YJ
joshskeety
07-27-2004, 11:07 PM
I get this error message when installing.. It gets to the "do database modifications" part and then I get..
Database error in vBulletin 3.0.1:
Invalid SQL:
CREATE TABLE vb3_vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM
mysql error: Invalid default value for 'group_id'
mysql error number: 1067
Any solutions?
Josh
Is anyone available to do vbookie customization for $.
pm me if you are!
YJ
Should be easy to change the graphic "$" to suit your particular currency.
I changed mine to ? .. take a look here (http://www.thetechguys.co.uk/forum/forumdisplay.php?f=80)
Intex
07-28-2004, 08:00 AM
tjdrico - if you select to use the Petz money and the uCash option, will it automatically increase and decrease both? I'd like to use both at the same time, but wanted to know if this would cause any problems.
xjussix
08-03-2004, 09:03 AM
Thanks for this great hack. :)
I have a little problem unfortunately. At our forum the users can choose between two different styles. Clicking on vBookie link (or anything vBookie related) while using style #2 results in a completely blank page. Then I noticed that this particular style doesn't have those custom templates which style #1 has and it's probably the reason for this problem. In fact, style #1 is the only one which has those custom templates. I do have other styles too but those can't be selected.
Does anyone have any ideas how to fix it? Both styles are child styles of the original vBulletin 3 style.
I installed 3.0.3 fresh, installed the Arcade, Petz, Shoutbox and finally vBookie.
All worked perfectly pre-vbookie but when i try to reach the vBookiepage from the dropdown menu the "main" part of the view goes white, same goes for "Usergroup manager", that page is also blank.
Now - where did I do something wrong, almost completly certain i followed the procedure to the full extent, must've missed somewhere, anyone care to take a guess? Don't fancy reinstalling, but guess I'll have to after all :)
[edit]
Reinstalled VB3 & vBookie, usergrouppages work, vBookie from the nav-menu is white.
Only thing strange in the usergroup manager is that I can't set all 3 options concerning vBookie to Yes.
if i set them all to yes one or two of them turns up as No next time I check administrator permissions :(
tjdrico - we want new version...we want new version :)
Acido
08-03-2004, 10:43 PM
Yes we want :o
Is it just me, or when the odds are 1 to 1, they get the same amount back that they put in? Shouldnt they get double back?
Mr. Brian
08-04-2004, 10:33 PM
Well, I noticed that for handicap betting, for 1/4, 3/4, 1 1/4 hindicap. If win 1/2, or lose 1/2, how to settle using vbookie?
That would be great if vbookie does have this feature. :)
joshskeety
08-05-2004, 01:45 AM
I get this error message when installing.. It gets to the "do database modifications" part and then I get..
Database error in vBulletin 3.0.1:
Invalid SQL:
CREATE TABLE vb3_vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM
mysql error: Invalid default value for 'group_id'
mysql error number: 1067
Any solutions?
Josh
ogetbilo
08-06-2004, 10:09 PM
Very great hack
I installed and clicked INSTALL
One little request: Can you please add a function that adds a desired amount of cash to all of the members? (or at least, can you tell me what SQL query should I do?)
rinkrat
08-06-2004, 11:00 PM
Is there a hack to integrate this with Petz 2.0? If not there should be.
I am getting the following message if I am trying to give permission to the usergroups;
Database error in vBulletin 3.0.3:
Invalid SQL: UPDATE usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Elite Guard',
description = '',
usertitle = '',
opentag = '',
closetag = '',
passwordexpires = '0',
passwordhistory = '0',
attachlimit = '0',
canpostvbookieevent = '1',
caneditothersvbookieevents = '0',
canbet = '1',
avatarmaxwidth = '130',
avatarmaxheight = '200',
avatarmaxsize = '2000000',
profilepicmaxwidth = '130',
profilepicmaxheight = '200',
profilepicmaxsize = '6553500',
pmquota = '50',
pmsendmax = '5',
forumpermissions = '127487',
pmpermissions = '3',
calendarpermissions = '19',
wolpermissions = '1',
adminpermissions = '0',
genericpermissions = '5831',
genericoptions = '30',
arcadepermissions = '19',
petzpermissions = '1'
WHERE usergroupid=2
mysql error: Unknown column 'canpostvbookieevent' in 'field list'
mysql error number: 1054
I think the bug must be in the usergroup.php but I can find it. Any ideas?
Ok I fixed my former problem anyway there is still another if I am trying to open vbookie.php for example like here: http://www.spiritual-connections.com/forums/vbookie.php? I am just getting a blank screen. I checked the whole installation again and again but can't find the bug.
Any help is mostly welcome.
PranK
08-10-2004, 09:35 AM
/me likes!
/me clicks install
bluesteel
08-11-2004, 11:41 AM
Hi guys,
Brilliant add-on! My members love it.
At present I have a problem where events are showing up twice on the events page. (see attachment). I've searched this thread but couldn't find a similar problem.
Any help would be greatly appreciated.
Thanx in advance.
PS Further to this, it works out that the events show for the amount of bets placed on it. eg If 6 bets have been placed on an event, the event will show up 6 times. :(
joshskeety
08-11-2004, 11:50 AM
I get this error message when installing.. It gets to the "do database modifications" part and then I get..
Database error in vBulletin 3.0.1:
Invalid SQL:
CREATE TABLE vb3_vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM
mysql error: Invalid default value for 'group_id'
mysql error number: 1067
Any solutions?
Josh
Ok I fixed my former problem anyway there is still another if I am trying to open vbookie.php for example like here: http://www.spiritual-connections.com/forums/vbookie.php? I am just getting a blank screen. I checked the whole installation again and again but can't find the bug.
Any help is mostly welcome.
Same problem here, Just a blank page, followed the instrunctions to a max, still just blank, how did you solve it, since your page now works?
Same problem here, Just a blank page, followed the instrunctions to a max, still just blank, how did you solve it, since your page now works?
If you followed the instructions perfectly, it would work. That's the way these things go.
Is there a possibility that you have more than one Style available on your forums?
And that the default one is not the one you are looking at?
Most automatic Template installs add the new templates to one style only, requiring the Installee to manually copy and paste the info into other templates.
The fact that nothing is being shown on vBookie.php might suggest that a required template isn't present in the database. The installer only add templates and phrases to the default style (he should if you have another style with the same id then it doesn't work for the default, too), and if you are using a style that's not based on the default you might find that the templates aren't picked up.
Try editing vbookie_install.php and changing "$styleid=$vboptions['styleid'];" (appears twice) to "$styleid=N;" where N is the styleid of your style.
(thanks to Rico for this hint)
Haven't touched templates yet, still using the No.1 one, basic default one.
Changing styleid to 1 doesn't make sense since its default.
All templates are added, same with phrases, databases are made etc... this is just ... :(
Went through the cfg/install, didn't find it.
Going to bring my laptop to work and do a clean install of vb3 and then throw vbookie in there.
If this is the case the installer should work perfectly, an untouched version of vb3 fresh from the factory? :)
joshskeety
08-12-2004, 11:35 PM
I get this error message when installing.. It gets to the "do database modifications" part and then I get..
Database error in vBulletin 3.0.1:
Invalid SQL:
CREATE TABLE vb3_vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM
mysql error: Invalid default value for 'group_id'
mysql error number: 1067
Any solutions?
Josh
Drunkacho
08-13-2004, 07:55 PM
Hey, I installed vBookie and I get this message. How can I fix it. Thanks :)
------------------------------
Warning: set_time_limit(): Cannot set time limit in safe mode in /public_html/forums/vbookie.php on line 20
Unable to add cookies, header already sent.
File: /public_html/forums/vbookie.php
Line: 20
EDIT: Fixed, I had to change line 20 to:
//set_time_limit(0);
slabuda
08-15-2004, 10:00 PM
Installed Vbookie and now my permissions for vbarcade aren't working.
Cbookie installation asks me to change the following lines ..
'stylecache',
'arcadesettings'
), $specialtemplates);
What should i do here? Or does that even effect my permissions.
Thanks.
curly howard
08-16-2004, 04:29 AM
Clicked Install. Great work.
curly howard
08-16-2004, 09:36 AM
EDIT* I found the problem, thanks
turfy
08-16-2004, 04:37 PM
It's possible to have real time odds that change with the bet of user.
Example if all user bet on only two chance, they ar little odd etc...
Perhaps a good idea to futur version ?
joshskeety
08-19-2004, 05:22 PM
I have asked this 6 times now. I also see that other users are asking questions, but not receiving any help. I have waiting patiently for almost a month for some sort of answer, or even a response from the creator or ANYONE that may have seen this SQL error before.
I get this error message when installing.. It gets to the "do database modifications" part and then I get..
Database error in vBulletin 3.0.1:
Invalid SQL:
CREATE TABLE vb3_vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM
mysql error: Invalid default value for 'group_id'
mysql error number: 1067
Any solutions?
Josh
skinny
08-20-2004, 09:53 PM
Great add-on. All my members are loving it! Would it be possible to include an edit function when bets have been settled, because one of my members did it wrong, and we cant edit the results of the bets?
Also, is it possible to simply clear all the bets made, give everyone 500 vcash and start over again?
VodkaFish
08-23-2004, 06:25 PM
I just added it to my largest site and it's an instant hit.
The feedback I've had so far:
- Add vCash to profile, not userbit (something I'm doing).
- More leaders lists then just the top 5 richest. Perhaps a page in itself just for leaders. Overall, last week, last month.
- Categorized leaders.
Suggestions from me:
- Have a "max bet" amount for an event. Here's why: say I want to encourage people playing and I say - new category starting over the next month: whoever gets the highest in the category at the end of the month wins a prize. Well - new members (and members who are unlikely) will be at a huge disadvantage for the prize if I let any amount be bet on these events. Therefore, if I were to say "100 max" or something like that, I can make it a much more even playing field for all involved. Outside events can still be whatever, but these "prize events" need more control over them.
Thanks for listening :)
Okiewan
08-25-2004, 08:00 PM
searched, but can't find anything...
users needing charity aren't getting it (yes, it's on in options).
Any ideas?
N00BIE
08-28-2004, 02:24 AM
Ok i'm trying to install this hack and everything has gone fine up to this point.
i've already installed uShop_&_uCash_095a and the problem i'm having is this part in the INIT.PHP file..
the hack says
FIND
'stylecache'
), $specialtemplates);
REPLACE WITH
'stylecache',
// +++ vBookie
'vbookiesettings'
// --- vBookie
), $specialtemplates);
but the ushop hack has already changed tis part into this
// ## <ucs>
'stylecache',
'utt_store_act'
// ## </ucs>
and if i try to include the other code like this.
// ## <ucs>
'stylecache',
'utt_store_act'
'vbookiesettings'
// ## </ucs>
i get this error
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'
any help on this would be very grateful :)
SnowBot
08-28-2004, 02:47 AM
You missed something out. Try this
// ## <ucs>
'stylecache',
'utt_store_act',
'vbookiesettings'
// ## </ucs>
Im not sure but that should work, i have not got the shop hack installed.
N00BIE
08-28-2004, 07:20 AM
thanx alot that did the trick =]
KevinSHOCK
08-29-2004, 12:04 AM
ok i dont know if this has been covered cause this thread is huge, but i use ucash, and the vbookie works and all but its using its own money system and not the ucash like i selected it to use in the vbookie control panel, help is GREATLY appreciated.
y2krazy
08-29-2004, 11:07 PM
/me clicks install!
KevinSHOCK
08-30-2004, 10:25 PM
ok i dont know if this has been covered cause this thread is huge, but i use ucash, and the vbookie works and all but its using its own money system and not the ucash like i selected it to use in the vbookie control panel, help is GREATLY appreciated.
i hate to be a bother, but i really need this fixed as the members want to use this hack. thanks again
Mombos
08-31-2004, 09:56 PM
just installed 1.0.4 - seems to be working ok not really tested it alot yet seems good though,
although i have one problem though, in the adminCP there is no menu on the left for me to get into the settings for it, any idea what i might have done as i have checked the edited files and they all seem ok, any ideas?
thanks
Rob
apokphp
09-01-2004, 01:39 AM
You didn't edit forums/admincp/index.php correctly, or not at all.
apokphp
09-01-2004, 07:14 AM
Installed. Great hack. Works well on vb 3.0.3 (just took some time finding some of the code that had changed since the code has changed since 3.0.0).
However, it isn't sending pm's or emails to those who have placed bets, to notify them of the bet being settled.
The vbookie_email_betsettledbody template says:
Hello $bbuserinfo[username],
Your bet on ... has been settled. You won:
Yours,
$vboptions[bbtitle] team
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscription information:
Tired of these email notifications? Turn them off in your vBookie settings.
But there are no vBookie settings for members that enable/disable email alerts. Wuttup?
apokphp
09-01-2004, 09:33 AM
Also, how can I place betting limits? I think someone else asked about this previously, but I don't recall seeing a response. I'd like to be able to limit the amount of bets at times, for specific bets. Is this possible?
Mombos
09-01-2004, 12:51 PM
You didn't edit forums/admincp/index.php correctly, or not at all.
i have sorted the problem now
inside admincp/index.php
there is 2 lines which match this one
if (can_administer('canadminstyles'))
i added the construct nav commands at the wrong part of the doc.
all sorted now though
apokphp
09-01-2004, 11:15 PM
Also, there seems to be an error when calculating "Total Amount Staked".
While for the individual outcomes, it calculates it fine...it is in the top summary of each event that it miscalculates. Instead of adding up all that has been staked...it doubles the actual total staked in each outcome.
If you click info, then add up for each outcome, the "Total Amount Staked" column...it should equal the amount in the summary, correct? Instead, the summary has this amount X2 for some reason.
i have sorted the problem now
inside admincp/index.php
there is 2 lines which match this one
if (can_administer('canadminstyles'))
i added the construct nav commands at the wrong part of the doc.
all sorted now though
You shouldn't have 2 instances of if (can_administer('canadminstyles'))...on a fresh vBs admincp/index.php that line is used to show the style settings to those admins with permission to administer styles.
One other point to note is that 3.0.3s includes/functions_showthread.php lacks the // ###################### Start getreputationimage #######################
So, instead, find require_once('./includes/functions_reputation.php'); and add the required bit under that.
KevinSHOCK
09-03-2004, 11:59 PM
can someone please answer my problem i posted, the vbookie cant be used correctly until this is fixed
twoseven
09-04-2004, 12:17 AM
can someone please answer my problem i posted, the vbookie cant be used correctly until this is fixed
kevin i had that problem as well. there are 2 database entries for different points and ucash is pointed at one and vbookie is pointed at the other. i just copied one to the other and it was fixed
KevinSHOCK
09-04-2004, 02:35 AM
kevin i had that problem as well. there are 2 database entries for different points and ucash is pointed at one and vbookie is pointed at the other. i just copied one to the other and it was fixed
can you explain which ones if its not a problem? im really rusty at coding and working through the database, well i mean i havent forgotten but like yeah...im kinda lost :( can i fix this problem with running a query?
Taco John
09-07-2004, 05:49 AM
I've got a pretty important question that I haven't seen addressed...
Does this software account for bets that go push?
RMS-Chef
09-07-2004, 10:11 AM
I've got a pretty important question that I haven't seen addressed...
Does this software account for bets that go push?
Event's can be "Abandoned" and all bets are returned to the users if that's what you mean.
Taco John
09-07-2004, 02:58 PM
I don't want the whole event abandoned... I just want certain outcomes that "push" abandoned. A "push" is a common outcome on many wagers...
Ugh. This thing is going to explode in my face if I can't refund stakes on outcomes that push.
VodkaFish
09-07-2004, 05:31 PM
I don't want the whole event abandoned... I just want certain outcomes that "push" abandoned. A "push" is a common outcome on many wagers...
Ugh. This thing is going to explode in my face if I can't refund stakes on outcomes that push.
The only way to do something like that with the current system would be to separate any events that can be pushed into their own event, and then abandon it if they push.
Taco John
09-07-2004, 05:55 PM
Ugh. I was afraid you would say that.
I don't mean to be negative, but this hack doesn't make sense without a feature that allows an outcome to be a push. I'm using this for a sports forum, and in sports there are often outcomes that go "push" while there is still action that nets wins and losses. This is very common in sports, especially NFL.
There really should be an option for an outcome to go "push" that doesn't wreck the action on all the other bets.
There's no way I can manage all these games if i'm having to have three seperate threads to bet one game...
To see how I am using this in an NFL format, please view this thread:
http://www.orangemane.com/BB/showthread.php?t=16833
It's all together, and consice. Everybody can see how each game is being bet.
"Push" is a standard in gambling. If this hack is going to be used in football forums, "push" outcomes are important to have without having to mess up the other action... and without having to have a dozen different threads to bet a single game. There's only one bet in standard football betting that doesn't go push...
Unfortunately, my users have got action placed already and the NFL season starts this week.
Taco John
09-07-2004, 06:17 PM
Also, for reference, there are 16 games a week in the NFL, with three standard bets...
1. MoneyLine
2. Over/Under
3. Point Spread
To seperate those into three seperate threads per single game is the difference between managing 16 threads a week (opening and closing) and almost 50 threads each week. That's about a hundred threads each week for NFL forum admins to manage when you figure that you've got to close last week's results, and then you've got to open next week's action. That's a huge time investment.
I love the hack, but a "push" outcome is incredibly important.
VodkaFish
09-08-2004, 12:01 AM
I'm sure you thought about this already - but for the meantime you can use half values for spreads and over/unders.
Taco John
09-08-2004, 01:08 AM
Yeah, I thought about that for next week... But for this week, It's difficult to do that without causing a board riot since bets have already been placed.
Hopefully, for the future, a column next to the "pay out" column can be added for pushes.
Taco John
09-09-2004, 03:38 AM
Also, I've got an idea that would be cool as just a side feature...
Real books take 9.1 percent of the winnings at pay-out. It's commonly called "juice" or "vigorous." It's more or less a commission for making the bet. It would be cool if the control panel included an option to turn 'vig' on or off... and have the statistics portion track how much vig the book is making each week and each "season."
It's not as important as the push option, but it would be a cool enhancement that would actually be pretty educational.
Warlord
09-11-2004, 05:52 PM
Instant hit on my forums! Thanks for the great hack!
*Clicks install!
boxingscene
09-12-2004, 04:50 PM
vBookie
Introduction
vBookie is a 'bookmakers' or betting extension to vBulletin. It enables authorised members to post Events and Outcomes that forum members can bet on. Each Outcome has its own set of odds, and odds can be modified through the life of an Event (bets that are placed are stored with the prevailing odds, so even if the odds change, your users are paid at the correct rate).
Once the results are known, Events can be settled and forums members awarded their winnings.
vBookie uses its own vCash by default, but this has no more use than as 'bragging rights'. However, vBookie also comes with a built-in switch to allow it to use either uCash or Petz money instead. That means that all bets are paid for and settled using uCash or Petz money, making betting even more attractive than just for fun on forums with uShop/Petz installed. 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.
Features
master switch to turn vBookie off
option to use uCash
option to use Petz money
settings to restrict the creation of Events to specific user groups
settings to restrict which user groups can bet on Events
settings to restrict which user groups can edit or settle other people's Events
per-Event, specify whether punters may bet on more than one outcome
optional 'charity mode' so that the poorest members of the forum always have something to play with
supplied with a module for vBadvanced
Please click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=65844) if you install this hack, thanks. Please also let me know - send me an email or a PM. If you'd let me know the forum URL too that'd be cool!
vBookie is free, and will remain free. However, if you would like to donate a small amount, feel free. =)
https://vborg.vbsupport.ru/external/2010/02/12.gif (https://www.paypal.com/xclick/business=dc%40kop.org&item_name=vBookie&item_number=1&no_note=1&no_shipping=1&tax=0¤cy_code=GBP&lc=GB)
Updates
1.0.0 -> 1.0.1
- adds the ability to delete Events. See this post (https://vborg.vbsupport.ru/showpost.php?p=519902&postcount=29) for upgrade instructions if you already have 1.0.0
1.0.1 -> 1.0.2
Corrected a minor bug with the charity mode when using uCash. See this post (https://vborg.vbsupport.ru/showpost.php?p=519943&postcount=33) for manual upgrade instructions from 1.0.1.
1.0.2 -> 1.0.3
Corrected a minor bug with the richest people display when using uCash. Just overwrite includes/functions_vbookie.php with the one from the new Zip file.
1.0.3 -> 1.0.4
Corrected some date display problems when using "Detailed" dates. For manual update instructions, see this post (https://vborg.vbsupport.ru/showpost.php?p=520924&postcount=91).
Corrected Petz bug whereby all winnings were paid to the bet's owner rather than individual winners. To upgrade from 1.03 or earlier, see this post (https://vborg.vbsupport.ru/showpost.php?p=523030) or overwrite includes/functions.vbookie.php with the 1.0.4 version.
Problems?
-> Petz - If you are using Petz there is a bug in all versions up to and inclusing 1.0.3. Your players won't get paid their winning, and all payouts will end up in the account of the person that posted the Event. To correct this, please see this post (https://vborg.vbsupport.ru/showpost.php?p=523030). This fix will be incororated into 1.0.4 onwards.
-> If you can't post Events, or can't bet on them make sure you have set your user permissions
-> If you have an SQL error Invalid SQL: UPDATE SET =25 WHERE <25 make sure you are using version 1.0.3 or later.
-> If you have any other general problems, please check the installation/hack instructions and make sure you have carried out all the steps and also check that you made the changes correctly
Anything else, ask in this thread.
Other Stuff
-> If you are using Detailed Date & Time display and have a problem with Event dates appearing as '1 Minute Ago', see this post (https://vborg.vbsupport.ru/showpost.php?p=520924&postcount=91).
-> If you want to use poster 'Reputation' as the currency for vBookie, see this post (https://vborg.vbsupport.ru/showpost.php?p=520086&postcount=44).
About Odds
Odds of "5/1" are "amount won per amount placed". This means that I would win 5 for every 1 placed. Of course, if I win, I get my stake back as well. Odds of "1/5" means that I win 1 for every 5 placed. I'd have to place 25 to win just 5.
Decimal Odds
Decimal odds are just another way of displaying the same information. 2.0 is the same as 2/1. 0.2 is the same as 1/5. vBookie only lets you specify odds in terms of x/y, but if you think in terms of decimal you can still work out what odds to provide. Simply think of your decimal odds as "2.0 / 1.0" or "0.5 / 1.0" and then multiply each side through by 10 or 100 until there are only zeros to the right of the decimal point, then just take the whole number part.
2.0 / 1.0 has no decimals, so this is the same as 2/1
0.5 / 1.0 has a 0.5, so multiply both parts by 10 to get 5.0 / 10.0. Then you can specify your odds as 5 / 10. You might also realise that this is the same as 1/2. The technique is a simple way to work out any odds you may need to specify.
Odds of 0.65 -> 0.65 / 1.0 -> 65.0 / 100.0 or 65/100. Then you can divide through by 5 to get to 13 / 20, although this step isn't necessary.
_______________________________________
I installed this hack on a fresh 3.03 board, I dont have any errors BUT, I dont see anything in the template as far as givimg me an option to create a bet, nothing at all, as if the mod was never installed.
boxingscene
09-12-2004, 05:33 PM
fixed
Acido
09-12-2004, 06:54 PM
Installed. Great hack. Works well on vb 3.0.3 (just took some time finding some of the code that had changed since the code has changed since 3.0.0).
However, it isn't sending pm's or emails to those who have placed bets, to notify them of the bet being settled.
The vbookie_email_betsettledbody template says:
But there are no vBookie settings for members that enable/disable email alerts. Wuttup?I think that email feature is not working in this version :(
Curll
09-15-2004, 08:55 PM
Uhm, when I try to view a forum...
Database error in vBulletin 3.0.3:
Invalid SQL:
SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,
//vbookie
thread.threadid, thread.title AS threadtitle, lastpost, thread.forumid, pollid, vbookie_item_id, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid,
deletionlog.username AS del_username, deletionlog.reason AS del_reason
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
WHERE thread.threadid IN (0)
ORDER BY sticky DESC, lastpost DESC
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 '//vbookie
thread.threadid, thread.title AS threadtitle, last
mysql error number: 1064
Date: Wednesday 15th of September 2004 04:54:50 PM
Script: http://www.xblgamers.com/vb3testing/forumdisplay.php?f=2
Referer: http://www.xblgamers.com/vb3testing/index.php?
Username: Curll
IP Address:
It was a fresh install of vB3.
Okiewan
09-16-2004, 11:30 AM
searched, but can't find anything...
users needing charity aren't getting it (yes, it's on in options).
Any ideas?
Hello? Anyone?
Warlord
09-18-2004, 04:32 PM
Any way to record who bet on what, and create a tally board? (Useful for football pics)
KevinSHOCK
09-23-2004, 01:04 AM
ok i've searched this whole thread, and no one has had the problem i had...and ive waited many days for an answer...please can someone help me out?
problem:
ok i dont know if this has been covered cause this thread is huge, but i use ucash, and the vbookie works and all but its using its own money system and not the ucash like i selected it to use in the vbookie control panel, help is GREATLY appreciated.
thanks to whoever helps me, i need this fixed asap.
djohn
09-23-2004, 12:35 PM
How can i make it so that vBookie link in navbar is only displayed when "Is the vBookie active?" is set to yes?
Wential
09-24-2004, 02:45 PM
Can this hack be set to use PayPal donations as a way of adding to their balance?
bi11i
09-24-2004, 04:36 PM
The fact that nothing is being shown on vBookie.php might suggest that a required template isn't present in the database. The installer only add templates and phrases to the default style (he should if you have another style with the same id then it doesn't work for the default, too), and if you are using a style that's not based on the default you might find that the templates aren't picked up.
Try editing vbookie_install.php and changing "$styleid=$vboptions['styleid'];" (appears twice) to "$styleid=N;" where N is the styleid of your style.
(thanks to Rico for this hint)
hey thanks that was much easier than i thought it was going to be (plus it worked beautifully.)
bi11i
09-24-2004, 04:37 PM
Can this hack be set to use PayPal donations as a way of adding to their balance?wouldn't that be, uh, illegal? (lemme know if you find a way to do it:))
Wential
09-24-2004, 04:42 PM
wouldn't that be, uh, illegal? (lemme know if you find a way to do it:))
It was actually an idea as a way to only give my donating members access to this feature. Since they never get any real money back, it's not illegal. I checked :).
bi11i
09-24-2004, 05:39 PM
I deleted a thread containing an event (which was created by another user.) I'm not unable to delete the event - i only have the 'Thread' and 'Info' options available to me.
Is this a defect or am I doing something wrong?
Lionel
09-26-2004, 02:59 AM
I installed vbookie, but it seems that it is interfering with the private thread hack. After I setup the groups permissions, whenever I run vbookie.php the settings for the other hack switches to "no" and Vbookie settings are not updating for the groups.
Now this is a rather long install. Can someone please give me a pointer which php to look for the settings?
Lionel
09-26-2004, 03:59 AM
Here is my problem. The permissions in usergroup are behaving erratic: the radio buttons do not accept updates or update the wrong ones.
ALLOW GROUP TO READ TITLES/ NOT CONTENT is the other hack name
When I remove the vbookie hack from usergroup, they are fine. Maybe it is a matter of switching lines?
// set default yes permissions (bitfields)
$ug_bitfield = array(
'showgroup' => 1, 'canview' => 1, 'canviewmembers' => 1,
'canviewothers' => 1, 'cagetattachment' => 1, 'cansearch' => 1,
'canmodifyprofile' => 1, 'canthreadrate' => 1, 'canpostattachment' => 1,
'canpostpoll' => 1, 'canvote' => 1, 'canwhosonline' => 1,
// +++ vBookie
'canpostvbookieevent' => 1, 'caneditothersvbookieevents' => 1, 'canbet' => 1,
// --- vBookie
'allowhidden' => 1, 'showeditedby' => 1, 'canseeprofilepic' => 1,
'canusesignature' => 1,
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
'gtpcanreadcontent' => 1
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
);
print_yes_no_row($vbphrase['can_rate_threads'], 'usergroup[canthreadrate]', $ug_bitfield['canthreadrate']);
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
print_yes_no_row($vbphrase['gtp_can_read_content'], 'usergroup[gtpcanreadcontent]', $ug_bitfield['gtpcanreadcontent']);
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
print_table_break();
if ($usergroupid != 1) // Guests can not post attachments
{
print_table_header($vbphrase['attachment_permissions']);
print_yes_no_row($vbphrase['can_upload_attachments'], 'usergroup[canpostattachment]', $ug_bitfield['canpostattachment']);
print_input_row($vbphrase['space_in_bytes_attachlimit'], 'usergroup[attachlimit]', $usergroup['attachlimit']);
print_table_break();
}
print_table_header($vbphrase['poll_permissions']);
print_yes_no_row($vbphrase['can_post_polls'], 'usergroup[canpostpoll]', $ug_bitfield['canpostpoll']);
print_yes_no_row($vbphrase['can_vote_on_polls'], 'usergroup[canvote]', $ug_bitfield['canvote']);
print_table_break();
// +++ vBookie
print_table_header($vbphrase['vbookie_permissions']);
print_yes_no_row($vbphrase['can_post_vbookieevents'], 'usergroup[canpostvbookieevent]', $ug_bitfield['canpostvbookieevent']);
print_yes_no_row($vbphrase['can_edit_others_vbookieevents'], 'usergroup[caneditothersvbookieevents]', $ug_bitfield['caneditothersvbookieevents']);
print_yes_no_row($vbphrase['can_bet_on_vbookieevents'], 'usergroup[canbet]', $ug_bitfield['canbet']);
print_table_break();
// --- vBookie
Lionel
09-26-2004, 02:16 PM
The problem was in the bitfield. They were both using the same bitfield number. I doubled the other hack bitfield, and the permissions are holding and the other hack appears to be fine.
However, I am confused on how Vbookie works. I gave full permission to admin, and when I go to vbookie.php I do not see how to input a bet.
Warlord
09-27-2004, 12:30 AM
Did you read the manual?
(Just create a new topic and check the box that reads Yes, post a vBookie Event with this thread, but try the instructions next time ;))
Warlord
09-27-2004, 12:31 AM
Any way to record who bet on what, and create a tally board? (Useful for football pics)
Anyone wanna tackle this idea?
Lionel
09-27-2004, 12:38 AM
Did you read the manual?
(Just create a new topic and check the box that reads Yes, post a vBookie Event with this thread, but try the instructions next time ;))
was there a manual? Kindly point it to me. Thanks for answering, but I realized that once I was about to post something.
Warlord
09-29-2004, 12:34 AM
was there a manual? Kindly point it to me. Thanks for answering, but I realized that once I was about to post something.
Here (http://www.respawned.co.uk/forums/showthread.php?t=1219) ya go. :)
(It's also linked to in the installation instructions file.)
The Equivocate
10-01-2004, 03:16 AM
For some reason, it's still wanting to use the vBookie points instead of my uShop points. I selected the correct field in the options, but it's still not using uShop points. Any ideas?
The Equivocate
10-01-2004, 07:23 PM
Anyone know how to correct this? I think it has something to do with two different databases being used, but I don't know enough about SQL or PHP to fix it. I can't use this hack until I am able to integrate it into uShop - and my site goes live on Monday.
rinkrat
10-01-2004, 07:33 PM
Be sure uShop is set for uttpoints too.
The Equivocate
10-02-2004, 02:16 AM
Yes, it is set to uttpoints as well...
The Equivocate
10-02-2004, 06:16 PM
How can I make sure that vBookie is also set for uttpoints? Would there be any way to change or create a new table to maybe get them to point to the right place?
GamerJunk.net
10-06-2004, 04:59 AM
Parse error: parse error, unexpected ';', expecting ')' in /home/nintenc/public_html/gamestar/f/includes/init.php on line 955
I keep getting that error, and once I fix one line it will screw up another.
GamerJunk.net
10-06-2004, 05:03 AM
// Defined contants used for forum field.
$_FORUMOPTIONS = array(
'active' => 1,
'allowposting' => 2,
'cancontainthreads' => 4,
'moderatenewpost' => 8,
'moderatenewthread' => 16,
'moderateattach' => 32,
'allowbbcode' => 64,
'allowimages' => 128,
'allowhtml' => 256,
'allowsmilies' => 512,
'allowicons' => 1024,
'allowratings' => 2048,
'countposts' => 4096,
'canhavepassword' => 8192,
'indexposts' => 16384,
'styleoverride' => 32768,
'showonforumjump' => 65536,
'warnall' => 131072,
$_VBOOKIE = array(
'active' => 1,
'ucash' => 2,
'cashon' => 4,
'givetopoor' => 8,
'usepetz' => 16,
$_ARCADE = array(
'active' => 1,
'netplay' => 2,
'awardson' => 4,
'quickreg' => 8,
'autoprune' => 16,
'highonly' => 32,
'vbcodeon' => 64,
'imgcodeon' => 128,
'smilieson' => 256,
'allowemail' => 512,
'challengescores' => 1024,
$_ARCADEUSER = array(
'firstvisit' => 1,
'settingschecked' => 2,
'allowchallenges' => 4,
'allowemails' => 8,
$_GAMESCHECK = array(
'active' => 1,
'netplay' => 2,
'playpanel' => 4,
'challenabled' => 8,
'showaward' => 16,
);
); is on line 953 so I don't know what to do?
GamerJunk.net
10-06-2004, 05:19 AM
[php]// Defined contants used for forum field.
$_FORUMOPTIONS = array(
'active' => 1,
'allowposting' => 2,
'cancontainthreads' => 4,
'moderatenewpost' => 8,
'moderatenewthread' => 16,
'moderateattach' => 32,
'allowbbcode' => 64,
'allowimages' => 128,
'allowhtml' => 256,
'allowsmilies' => 512,
'allowicons' => 1024,
'allowratings' => 2048,
'countposts' => 4096,
'canhavepassword' => 8192,
'indexposts' => 16384,
'styleoverride' => 32768,
'showonforumjump' => 65536,
'warnall' => 131072,
// +++ vBookie
$_VBOOKIE = array(
'active' => 1,
'ucash' => 2,
'cashon' => 4,
'givetopoor' => 8,
'usepetz' => 16
);
// --- vBookie
);
$_ARCADE = array(
'active' => 1,
'netplay' => 2,
'awardson' => 4,
'quickreg' => 8,
'autoprune' => 16,
'highonly' => 32,
'vbcodeon' => 64,
'imgcodeon' => 128,
'smilieson' => 256,
'allowemail' => 512,
'challengescores' => 1024
);
$_ARCADEUSER = array(
'firstvisit' => 1,
'settingschecked' => 2,
'allowchallenges' => 4,
'allowemails' => 8
);
$_GAMESCHECK = array(
'active' => 1,
'netplay' => 2,
'playpanel' => 4,
'challenabled' => 8,
'showaward' => 16
);[/php ok back to the original way it was when I did the hack....before I tried to fix it
GamerJunk.net
10-06-2004, 05:23 AM
Nevermind I fixed it.
The Equivocate
10-06-2004, 08:45 PM
So no one knows why vBookie is using its own cash even though I have uCash selected?
Neal-UK
10-07-2004, 05:24 AM
Installed this hack and it's great. Just one problem, there's a typo in the phrase:
vbookie_allow_multiple_bets_desc
Select this box if you want to allow people to vote more than once on this Event. If you leaev this box unselected, people will not be able to bet for more than one Outcome, nor for the same Outcome more than once.
Changed it on mine, just thought i'd mention it although i'm sure it's mentioned here somewhere!
bi11i
10-07-2004, 03:34 PM
there's actually quite a few typo's in the mod. (and some grammer, too.) a small price to pay for such a cool mod.
So no one knows why vBookie is using its own cash even though I have uCash selected?uh, because you don't have it installed?
snoman
10-07-2004, 08:26 PM
Problem...But It Has Seemed To Be Fixed Before...I Have Everything Uploaded And Installed, But, I Cant Get It To Work, Im Using VBulletin 3.0.3 And VBookie Is The Only Mod Im Using, I Double-Checked Everything In The Instructions, And Everything Seems Fine, I Cant Post A Event, I Click New Thread, But Theres No Option For VBookie, And I Checked The User Permissions And VBookie Is Turned On, Any Suggestions?
bi11i
10-08-2004, 12:01 AM
no option at the bottom of the new thread? you sure you made the appropriate edits to your templates? you using the edited templates? you on as an admin to test?
more info... more info....
snoman
10-08-2004, 02:12 AM
yeah, im admin...no option...im sure i made all appropriate changes...but will go through again...
bi11i
10-08-2004, 04:25 PM
it looks like your templates are messed up (from what little i know.) i would go ahead and revert the view back to normal and then make the changes again (assuming other changed haven't been made to these templates prior to the vbookie hack....)
i'm the champion at installing mods and having to do them over several times to get them to work, because i didn't cut and paste correctly, or i overlooked something....
EvilLS1
10-09-2004, 04:31 AM
Very cool hack! Thank you.
The Equivocate
10-10-2004, 04:56 PM
there's actually quite a few typo's in the mod. (and some grammer, too.) a small price to pay for such a cool mod.
uh, because you don't have it installed?
Why do you assume I don't have it installed? I've already stated the problem -posters earn uCash for posting as normal, but when I tell vBookie to use uCash instead of its own cash, it still uses its own cash for betting - so I have two different currencies going on, when all I want is to use UCash for both.
rex_b
10-11-2004, 06:34 PM
Just making sure
Anyone that has UCash/Arcade already installed. Did you have any problems getting VBookie to work properly as I want to install this afternoon.
Thanks.
bi11i
10-11-2004, 07:50 PM
Anyone that has UCash/Arcade already installed. Did you have any problems getting VBookie to work properly as I want to install this afternoon.i've installed over 20 mods, on vB, snitz, and other boards. This particular mod was the absolute easiest I've EVER done. no problems, no snags, nothing.
vBookie is NICELY and PROFESSIONALLY done. (you like my CAPS?)
rex_b
10-11-2004, 08:39 PM
I installed in 10 minutes and it works perfectly.
GREAT HACK!
mcyates
10-16-2004, 05:05 PM
Screwed up the installation?
Would it be possible to add a modification to this so that when the bet has been settled, a private message is sent out to the winners or the losers telling them what bet they won/lost and how much they have won/lost?
So no one knows why vBookie is using its own cash even though I have uCash selected?
Not sure if this will help you at all, but it did in my case... ucash wasn't working on mine at first. I turned off the ucash button and turned the petz one on and it started drawing points from ucash. (I don't have the petz hack installed.)
Seems like something is reversed on those two settings.. at least on my board. :squareeyed:
Anyway, hope this helps someone.
The Equivocate
10-18-2004, 12:32 AM
Not sure if this will help you at all, but it did in my case... ucash wasn't working on mine at first. I turned off the ucash button and turned the petz one on and it started drawing points from ucash. (I don't have the petz hack installed.)
Seems like something is reversed on those two settings.. at least on my board. :squareeyed:
Anyway, hope this helps someone.
FINALLY! And yes, your solution DID solve my problem - thank you!
skinny
10-18-2004, 08:18 PM
Ive had two problems with this so far, and Im not sure if it the script or down to user error. I've been using vBookie (1.04) for about 2 months and its been excellent. However on two occasions, all bets have been sttled incorrectly, and noone had admitted up to it. Now I'm not sure if there is someone settling the bets incorrectly, or whether the script is playing up now and again.. Has anyone else experienced this?
Bobby S
10-19-2004, 09:29 PM
Thank you.
But like a fecking idiot I've stuffed it by settling on the wrong outcome on an event.
How do I edit it? :nervous:
skinny
10-19-2004, 11:31 PM
Thank you.
But like a fecking idiot I've stuffed it by settling on the wrong outcome on an event.
How do I edit it? :nervous:
Erm... you cant :surprised:
mcyates
10-23-2004, 09:32 AM
Would it be possible to add a modification to this so that when the bet has been settled, a private message is sent out to the winners or the losers telling them what bet they won/lost and how much they have won/lost?
sully02
10-27-2004, 11:25 PM
Screwed up the installation?
I did not find it when searching through the thread, but here are a couple of options I'd like to see:
1] An option to bet against a spread, or to bet over/under the score
2] On the richest members page, round all $ values to two decimal places.
cashpath
11-02-2004, 03:22 AM
Ive had two problems with this so far, and Im not sure if it the script or down to user error. I've been using vBookie (1.04) for about 2 months and its been excellent. However on two occasions, all bets have been sttled incorrectly, and noone had admitted up to it. Now I'm not sure if there is someone settling the bets incorrectly, or whether the script is playing up now and again.. Has anyone else experienced this?
OK I just had this happen on my first ever test of this after installing it on my board.
A few questions..
1) Can anyone settle the bets?? I see no setting asking who can settle the bets.. I'm assuming that anyone on the board can settle the bet and that somebody on my board settled the bet and settled it wrong?
2) Is there anyway to find out who settled the bet?
cashpath
11-06-2004, 08:09 PM
Ok I found out it was a mod that settled.. must be default that mods can settle bets.. ?
How can I make it so that only the admin can settle bets?
TheWolverine
11-07-2004, 10:04 AM
I'm getting this error after having completed all the file edits:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in d:\server\easyphp\www\vbulletin\includes\functions .php on line 1887
Fatal error: Call to undefined function: is_browser() in d:\server\easyphp\www\vbulletin\global.php on line 59
I can't for the life of me find where the error i tho as those errors have nothing to do with any of the dits I'd done. I've gone thru all the edits to make sure I didn't drop a ")" or ";" whilst copying over the code and everything looks fine. I'm really stumped. Anyone any ideas?
The Wolverine :D
TheWolverine
11-07-2004, 11:47 AM
I've narrowed it down to this in the instructions:
OPEN includes/functions.php
FIND
PHP Code:
// get CSS width for outerdivwidth from outertablewidth
BEFORE, ADD
PHP Code:
// +++ vBookie
// declares the vbookie image directory
$stylevar['imgdir_vbookie'] = "images/vbookie";
// --- vBookie
SAVE & CLOSE
When I put that statement in the file it gives me the error I mentioned. The wierd thing is that if I then remove it from the file i also get the same error. Only when I copy the original functions.php file from a fresh vb3.0.3 install over to this install and replace the existing file does it go back to the original state with my forums working. Very peculiar. Anyhow I've omitted it now as I figured it's only the image directory which is not vital for the hack to work and indeed the hack seems to be working fine.
Still can't figure out why that statement is causing so much havoc though. Any ideas?
The Wolverine :D
cashpath
11-07-2004, 02:49 PM
Can someone tell me where in the files for this hack is the following condition variable set?
<if condition="$showsettlebutton">
Here's a suggestion:
Make it possible to 'add a vBookie event to this thread', as we can currently do with polls, after a thread has been created.
:)
TheWolverine
11-11-2004, 07:44 AM
I've sorted my issue out now and it works like a charm :) I have one question though. I want to make use of vCash to hand out cash so I thought I'd program a lil addon in the admin cp. All I'm going to want the addon to do is submit a form with userid and payment and basically add that to what the user currently has in the db. The querying is simple enough, I'm just not sure about creating the form in keeping with the way the form is created for the main vBookie options in the admin cp. So what I mean is I'm unsure as to how the functions print_cp_header, print_form_header, print_table_header etc. work. Anyhow able to explain briefly how the submission of the form works and how the form is constructed with those functions in vbookie_admin.php?
Thanks
The Wolverine :D
cashpath
11-11-2004, 02:45 PM
Obviously support for this hack is gone..
I worked out my problem to there is a line in vbookie.php that gives moderators permission to settle bets.. I just deleted that line.
Bobby S
11-12-2004, 12:08 PM
Obviously support for this hack is gone..
I worked out my problem to there is a line in vbookie.php that gives moderators permission to settle bets.. I just deleted that line.
It would be a pity if support has gone for this excellent mod.
I was hoping to modify the vbookie thus:
Give each user 100 cyber sheckles to bet on EACH event, and keep a running total of their wins/losses. It would allow me to run a footy prediction competition.
Anyone able to help on how to achieve this?
cashpath
11-12-2004, 03:41 PM
The author of this hack hasn't been on in over 2 months..
HarryBO
11-12-2004, 09:52 PM
That´s a very nice Hack. My Users will love this feature!
Is there a way to put "The newest bets" on the vBindex?
sabret00the
11-17-2004, 08:23 PM
is there anyway to make it so that i have to authorise events before their posted?
tjdrico
11-19-2004, 08:55 AM
Hi, yes I unticked the "Support" box because most of my time is currently engaged with other projects.
sabret00the, there's no way of doing that at the moment. It would be quite a simple addition, I'm sure. Basically, just an addition to the event status values (SETTLED, CLOSED etc.) of "PENDING", and altering showthread.php to hide events with a status of PENDING unless the person viewing it was the event's Owner or a forum Administrator. It'd also need a simple way of setting the event's status to "OPEN", which could be hacked into the vbookie.php page.
Cheertobi
11-19-2004, 10:10 AM
Hi,
I really like to install this great hack, does it works with vB 3.0.3?!
Regards,
Tobias
HarryBO
11-20-2004, 02:27 AM
Yes it works! I have vb 3.0.3 too!
cashpath
11-21-2004, 09:29 PM
Can a coder tell me what I would need to edit to make it so admin can see private bets?
trackpads
11-22-2004, 12:46 AM
Me too vb 3.03
Does anyone know how to limit the max amount bet? I recently had to reset the entire system after a few folks got over a billion. Mostly our fault with the odds but I would like to limit every bet to just 100.
thanks and great hack,
-Jason
tjdrico
11-25-2004, 04:02 PM
Does anyone know how to limit the max amount bet? I recently had to reset the entire system after a few folks got over a billion. Mostly our fault with the odds but I would like to limit every bet to just 100.
Edit vbookie.php. Find the following section:
if ($_POST['do'] == 'placebet')
Change this:
$n_bets_to_place = 0;
while (list($k, $v) = each ($option))
{
if ((int)$v > 0)
$n_bets_to_place++;
}
To this:
$n_bets_to_place = 0;
while (list($k, $v) = each ($option))
{
if ((int)$v > 0)
$n_bets_to_place++;
if ((int)$v > 100)
$option[$k] = 100;
}
That should limit the maximum bet for any outcome to 100. Untested.
Excellent!
What would happen though if a user tried to bet more than the maximum? Error screen?
Cheers,
~Regs.
trackpads
11-25-2004, 06:54 PM
Edit vbookie.php. Find the following section:
if ($_POST['do'] == 'placebet')
Change this:
$n_bets_to_place = 0;
while (list($k, $v) = each ($option))
{
if ((int)$v > 0)
$n_bets_to_place++;
}
To this:
$n_bets_to_place = 0;
while (list($k, $v) = each ($option))
{
if ((int)$v > 0)
$n_bets_to_place++;
if ((int)$v > 100)
$option[$k] = 100;
}
That should limit the maximum bet for any outcome to 100. Untested.
THANKS!!! A++
trackpads
11-25-2004, 07:02 PM
Excellent!
What would happen though if a user tried to bet more than the maximum? Error screen?
Cheers,
~Regs.
Nope, it automatically reduces it to 100, nice!
I'll make the change then... thanks!
Cheers,
~Regs.
**Clicked** install. I am going top give this a careful install, as I have V3Arcade and Ucash already installed. Seem like a fantastic hack. Thanks for all your time.
mcyates
11-27-2004, 10:20 AM
**Clicked** install. I am going top give this a careful install, as I have V3Arcade and Ucash already installed. Seem like a fantastic hack. Thanks for all your time.
Is it possible to do the following,
I have a forum dedicated to vbookie and when you look at the forum and see all the posts with the vbookie sign in it, it doesn't tell you if the betting is closed or if it is still open (still taking bets). Is there a way to change the vbookie blue dollar sign to green when thy are still taking bets and to red when the betting is closed.
This will instantly let the members know if betting it closed or open.
Thanks in advance
Install went smooth, appreciate the hack!
I went through the phrases, and changed all "vbookie" phrases to "sportsbook" for our site. When you post an event, the thread still indicates "vbookie" inthe second column of the thread post. Where is that located in the coding, i would like to be consistent with my verbiage.
Thanks!
patriotcow
12-03-2004, 04:06 PM
Does this work with 3.03? :squareeyed:
mcyates
12-03-2004, 04:32 PM
yes it does look:
http://www.myfootballforum.com/vbookie.php?
patriotcow
12-03-2004, 07:18 PM
Ok thanks :nervous:
bi11i
12-03-2004, 07:18 PM
works great with 3.0.3. Does this work with 3.03? :squareeyed:
patriotcow
12-03-2004, 07:46 PM
I use ushop, does it just automatically work with ushop?
I use ushop, does it just automatically work with ushop?
Pretty much. All you have to do is click on the "use ucash" option in the Vbookie admin panel.
mcyates
12-03-2004, 08:11 PM
Pretty much. All you have to do is click on the "use ucash" option in the Vbookie admin panel.
yes very easy to install and very popular with my forum as its a football forum.
Pepelux71
12-03-2004, 10:01 PM
Please check my init.php (vb 3.0.3)
'usergroupcache',
// ## <ucs>
'stylecache',
'utt_store_act'
// ## </ucs>
), $specialtemplates);
}
mcyates
12-03-2004, 10:04 PM
yup same as mine, whats the proble?
here's mine:
// ## <ucs>
'stylecache',
'utt_store_act',
'vbookiesettings'
// ## </ucs>
), $specialtemplates);
}
Pepelux71
12-03-2004, 10:18 PM
i'll use yours in a minute
if it doesn't work i'll post the error message
Pepelux71
12-03-2004, 10:23 PM
God sent you. I had messed up copy-paste and i was receiving errors on init.php and global.php
Shall i also do the Temlates modifications or these are for vBadvanced?
I don't see any vBookie option still in my home page...
Pepelux71
12-03-2004, 10:36 PM
ok...ok...ok... silly question
Everything seems to work perfect
Thank you :)
mcyates
12-03-2004, 11:55 PM
ONE QUESTION:
When i post a vbookie event then look at the page (showthread) I have 3 uncached templates:
vbookie_event_table (1)
vbookie_oddsbits (10)
vbookie_outcomebits (10)
How can i make it so these are cached as each one will be making and extra querie to the database.
Thanks
dethfire
12-06-2004, 04:06 PM
anymore updates on this, I found a few bugs
SHARKY
12-06-2004, 09:32 PM
Hi guys,
Brilliant add-on! My members love it.
At present I have a problem where events are showing up twice on the events page. (see attachment). I've searched this thread but couldn't find a similar problem.
Any help would be greatly appreciated.
Thanx in advance.
PS Further to this, it works out that the events show for the amount of bets placed on it. eg If 6 bets have been placed on an event, the event will show up 6 times. :(
i have the same problem with them showing up more than once is thier a fix for this?
tjdrico
12-07-2004, 03:05 PM
ONE QUESTION:
When i post a vbookie event then look at the page (showthread) I have 3 uncached templates:
vbookie_event_table (1)
vbookie_oddsbits (10)
vbookie_outcomebits (10)
How can i make it so these are cached as each one will be making and extra querie to the database.
Thanks
Open showthread.php and add them to the $globaltemplates array (commented as 'pre-cache templates used by all actions'). I think that's all you need to do.
tjdrico
12-07-2004, 03:06 PM
anymore updates on this, I found a few bugs
I've moved on to other bits and pieces, so haven't made any recent updates. Feel free to fix anything you see that's wrong, and post the information here. If there's anything that's really serious, I'll do an update for it.
tjdrico
12-07-2004, 03:08 PM
i have the same problem with them showing up more than once is thier a fix for this?
I think the problem is likely to be incorrect editing, rather than a problem. Only one other person has reported the same issue, and there have been at least 200 installations, plus more than aren't registered.
I recommend that you go through the hack instructions and verify that you did everything exactly as you should have.
HarryBO
12-12-2004, 01:10 AM
Hi!
I have a little problem on my vbookie! I´ve installed that addon since 1 month! Sometimes it worked perfect & sometimes I can´t settle the events! In the Forum I can see the bookie, but in the vbookie it´s gone!
Any Idea what went wrong?
Celtic_Mad
12-12-2004, 06:43 PM
How do I add vcash to someones username or edit a bet thats already over to tick more winning boxes?
docvader
12-14-2004, 12:19 AM
Celtic, use this to add cash to people. It works fine, and is easy to install. However, you have to add each person's name individually, it would be nice to be able to "mass add" money to people, especially if you have a large foruml
https://vborg.vbsupport.ru/showthread.php?t=65420&highlight=gimme
One question of my own. I added an event during the setup, and not through a thread post, and now I can't seem to delete it. Or find it anywhere. Any ideas???
thanks. Awesome hack.
rich
russbo.com
pgowder
12-14-2004, 01:26 PM
Is there a way to have a betting event like a parlay card? Where they have to get x number of bets right to win the points??
docvader
12-15-2004, 08:11 PM
Well, this is a bit bizarre, and I don't know if it's related, nor where to look, but after I installed this betting thing into my Ushop (and it's working great; my members love it), I get this error when I, the admin, try to log into the ADMIN CP
Wrong username or password. You have used up your failed login quota! Please wait 15 minutes before trying again. Don't forget that the password is case sensitive. Forgotten your password? Click here!
Get that on the first time, with the correct password; got to wait fifteen minutes to attempt it again; usually it's successful after the fifteen minute time period. I don't understand this, as, eventually, I can log in successfully.
Does anyone know what file must have been changed to screw up entry into the admin area?
Rabbitoh Warren
12-17-2004, 11:43 PM
I recently had a vBookie event on a cricket match which was washed out without a ball being bowled, but stupid me incorrectly settled bets using the no outcome option instead of the abandon event option. I want to manually refund users who bet on the event their vCash. Can someone tell me what QUERY I would need to run to make this happen? The gimme thing above didn't work for me. Thanks.
Sadly this Hack is giving me all sorts of problems. I am willing to pay somebody to take my fresh files and add the vBookie code. If you are willing and able to do this, please send me a PM.
Good God! After two days of wrestling with this dude I got it installed with uCash. It turned out that I was missing a "," in my init.php file. :ermm: This is one heck of a Hack!
Thank you!
wcbryant
12-31-2004, 09:23 PM
Has anyone written some basic php page where users could exchange reputation points for vCash? I get constant requests for this, and would love to have something that exchanged on a ratio I could set (even in the code).
Sooner95
01-08-2005, 07:19 PM
is it possible for someone to post the SQL queries (DB Mods), so I can enter them in one at a time using myPhPadmin? seems I got a messy table somewhere...
Sooner95
01-08-2005, 08:09 PM
nevermind.. figured it out, damn shoutbox LOL
Good work..
/me clicks install
bangthebook
01-09-2005, 04:17 AM
Hello all,
I just installed the hack and cant get it running. Is there a user manual with this? maybe I am missing something with posting the events?
Checkout my site and let me know if you see something wrong
www.bangthebook.com/forum
respawned seems to be down so any help would be greatly appreciated
THanks
Ryan
kisersose
01-09-2005, 02:12 PM
Hello all,
I just installed the hack and cant get it running. Is there a user manual with this? maybe I am missing something with posting the events?
Checkout my site and let me know if you see something wrong
www.bangthebook.com/forum
respawned seems to be down so any help would be greatly appreciated
THanks
Ryan
I was just about to post the same question because I just installed and was stumped. Then it hit me.... you probably have to set permissions for members to post vbookie events so not evenyone can do it.
Go to usergroup manager and edit a usergroup... its about halfway down the boxes to allow to post vbookie events. Chea!
Thanks for the hack... and Ryan, your welcome
kisersose
01-09-2005, 02:33 PM
hmm the "POST VBOOKIE EVENT" is not showing on new threads still. I thought that user permissions was enough, but no.
Can anyone tell me if I'm still missing something? and what I would need to correct/edit.
thanx
still no update :(
when we will have the option to edit people's money ? And also...some re-fund options...
:(
Okiewan
01-10-2005, 01:40 AM
still no update :(
when we will have the option to edit people's money ? And also...some re-fund options...
:(
Here here!
Spikeh
01-10-2005, 02:06 PM
Anyone tell me if this will work with the latest version of vB?
skinny
01-10-2005, 04:36 PM
Anyone tell me if this will work with the latest version of vB?
It works fine on the latest version, v3.05
Spikeh
01-10-2005, 09:36 PM
Thanks!
bangthebook
01-12-2005, 02:45 PM
I was just about to post the same question because I just installed and was stumped. Then it hit me.... you probably have to set permissions for members to post vbookie events so not evenyone can do it.
Go to usergroup manager and edit a usergroup... its about halfway down the boxes to allow to post vbookie events. Chea!
Thanks for the hack... and Ryan, your welcome
Thanks. That did it. Now I just have to figure out what changes I need to make so that it will actually post. I did the SEO hacks so my URL's are alittle different. Any ideas what I would nee to change? I did this
http://forum.time2dine.co.nz/showthread.php?t=98
Thanks for the help
Ryan
richiepearce
01-16-2005, 09:27 AM
Hi,
I seem to be having the same problem that a few others have had, but cannot see a fix.
The install seems to have worked OK, but there is no option in the new thread screen to post a vbookie event. I have followed the instructions carefully and cannot see that I have missed anything. Can someone please help with this.
Cheers,
Richie
skinny
01-16-2005, 12:17 PM
Make sure that you have given the usergroup permission to post a vBookie event and also, make sure that you have vBookie turned on via the CP. If you have gone through every step of the installation correctly, then it must be your settings. Also, make sure you're looking in the right place to post an event. When you click on new thread, you should see something like the following:
http://xs11.xs.to/pics/05020/vbookie.gif
richiepearce
01-16-2005, 02:01 PM
Thanks Skinny, it was the forum permissions that needed changing.
teamgofast
01-16-2005, 02:33 PM
still no update :(
when we will have the option to edit people's money ? And also...some re-fund options...
:(
if your just using play cash you can manipulate anyones $$ amount simply by going into phpmyadmin and selecting there user #, there you will be able to add or subtract any amount of $$ you want. im not to sure about the others ucash and what not.
Hope this helps
BullTaco
01-16-2005, 07:04 PM
What a great hack!!! Thank You soooo much!!
I have one really stupid question....my Install went fine...far as I can tell....But I do not see on a new thread where I choose to post a new vbookie event. I have the usergroups I want already premissioned right....I just cant see where I can post an event on a new thread.
Is that just a problem with the new thead style??
Any help would be greatly apprecieted.
Thanks
skinny
01-16-2005, 07:14 PM
What a great hack!!! Thank You soooo much!!
I have one really stupid question....my Install went fine...far as I can tell....But I do not see on a new thread where I choose to post a new vbookie event. I have the usergroups I want already premissioned right....I just cant see where I can post an event on a new thread.
Is that just a problem with the new thead style??
Any help would be greatly apprecieted.
Thanks
Look at the screenshot posted above. When you click on new thread, you'll see underneath the text box, an option to post a vBookie event. I've highlighted it in red. Make sure you tick this when posting a vBookie event.
BullTaco
01-17-2005, 12:53 PM
Well thats my probelm...I do not see that when I click on new thread. I have the usergroups I want checked so they can use it..and I have it turned on in my adminpanel.
I got no errors when I installed it. Everything seems to be working...I just have no option to post a vbookie event.......I even went back and re did the newthread template portion..to make sure I did not do something wrong...
I am at a lost.
BullTaco
01-17-2005, 12:56 PM
Well after much thought....I just went back to all the usergroups to check to make sure I had them set to "allow vbookie events"...they all we're.....so I just updated them...instead of baking out ofthem....and voila.....there they are!!
Thanks so much for the help!
BullTaco
01-17-2005, 01:09 PM
Well...I shouldnt have been so fast....LOL
I can see it in some forums and not in others...I cant see a difference in settings of the forums....is there something in a particuliar forum is to why that would not show up in the newthread ??
xjussix
01-21-2005, 09:53 AM
Any idea why the following code in the end of global.php causes " Warning: Invalid argument supplied for foreach() in /includes/functions.php" after upgrading from 3.0.5 to 3.0.6?
if (DB_QUERIES)
{
$pageendtime = microtime();
$starttime = explode(' ', $pagestarttime);
$endtime = explode(' ', $pageendtime);
$aftertime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
echo "End call of global.php: $aftertime\n";
echo "\n<hr />\n\n";
}
// +++ vBookie
// get general settings for vBookie
$vbookiesettings = convert_bits_to_array($vbookiesettings,$_VBOOKIE);
// --- vBookie
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 02:21, Fri Jan 21st 2005
skinny
01-21-2005, 11:21 AM
Any idea why the following code in the end of global.php causes " Warning: Invalid argument supplied for foreach() in /includes/functions.php" after upgrading from 3.0.5 to 3.0.6?
if (DB_QUERIES)
{
$pageendtime = microtime();
$starttime = explode(' ', $pagestarttime);
$endtime = explode(' ', $pageendtime);
$aftertime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
echo "End call of global.php: $aftertime\n";
echo "\n<hr />\n\n";
}
// +++ vBookie
// get general settings for vBookie
$vbookiesettings = convert_bits_to_array($vbookiesettings,$_VBOOKIE);
// --- vBookie
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 02:21, Fri Jan 21st 2005
I had terrible problems with my functions.php file when I had to edit it. Try making the changes in a simple text editor like notepad or wordpad. I always have to when editing functions.php otherwise it adds spaces into the file which cause errors like you are having.
trackpads
01-21-2005, 12:16 PM
I recommend CuteFTP Pro from globascape. You can open the files on the server and then just click save. Never had a problem that wasnt my fault. It is a great program:
http://www.globalscape.com
-Jason
Roxie
01-22-2005, 01:58 AM
When I edit includes/adminfuctions_forum.php with this code:
// +++ vBookie
print_description_row($vbphrase['vbookie_permissions'], 0, 2, 'thead', 'center');
print_yes_no_row($vbphrase['can_post_vbookieevents'], 'forumpermission[canpostvbookieevent]', $forumpermission['canpostvbookieevent'], $extra);
print_yes_no_row($vbphrase['can_edit_others_vbookieevents'], 'forumpermission[caneditothersvbookieevents]', $forumpermission['caneditothersvbookieevents'], $extra);
print_yes_no_row($vbphrase['can_bet_on_vbookieevents'], 'forumpermission[canbet]', $forumpermission['canbet'], $extra);
// --- vBookie
After this
print_yes_no_row($vbphrase['can_vote_on_polls'], 'forumpermission[canvote]', $forumpermission['canvote'], $extra);
I get the attached. Notice the vbookie settings at the top. I have tried to fix it about 3 times. Any ideas? I'm not sure if it's causing any issues. Everything else seems to work. Although the settings in usergroup manager won't stick sometimes.
Roxie
01-22-2005, 02:38 AM
The problem was in the bitfield. They were both using the same bitfield number. I doubled the other hack bitfield, and the permissions are holding and the other hack appears to be fine.
However, I am confused on how Vbookie works. I gave full permission to admin, and when I go to vbookie.php I do not see how to input a bet.
Thanks. This fixed 1/2 of my issue.
teamgofast
01-24-2005, 12:06 AM
anyone help me with this?
Database error in vBulletin 3.0.6:
Invalid SQL:
CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM
mysql error: Invalid default value for 'group_id'
mysql error number: 1067
i had a template issue and tried to reinstall everything but get this error?
Spikeh
01-24-2005, 11:14 AM
Hey all,
I installed this last night on my fresh install of 3.0.6 and everything seemed to go ok and I think I got everything working. However when I try and alter the setting in the ACP they just revert back to "No".
Anyone else get this problem and know how to sort it?
WiseOwl
01-24-2005, 11:45 AM
If anyone has any information pertaining to my problem please let me know, I would like to install this modification. I have made all file edits and am ready to upload the php files, but before I do I need to get this problem resolved with the install process of this modification...
When attempting to add database modifications after inserting phrases I get this error... whats wrong ?
Database error in vBulletin 3.0.5:
Invalid SQL:
CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM
mysql error: Invalid default value for 'group_id'
mysql error number: 1067
Date: Monday 24th of January 2005 05:06:19 AM
Script: vbookie_install.php
WiseOwl
01-24-2005, 12:23 PM
I noticed "joshskeety" had this problem back in August of 2004 he was looking for assistance 7 diferent times in this thread relating to the same mysql error 1067 that I'am currently having with the install.. also "teamgofast" had the same problem, I don't see a resolution for this anywhere in the 30 pages of this thread..
How do you change the default value of group_id and is that what needs to be changed? any help would be greatly appreciated as to I have already made all file edits and this is the only thing holding me back... thank you
WiseOwl
01-24-2005, 02:46 PM
1067 is...
Error: 1067 is a invalid default value for '%s'
i tried to manually add the table "vbookie_items" but it returns #1067 - Invalid default value for 'item_id' so what's the deal ? can I get some support, or should I just give up on the vbookie ????
Ok I managed to add the table, but 3 of the items are incorrect, my synxtax wasnt right, for the following three items...
item_id MEDIUMINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
item_status ENUM('OPEN', 'CLOSED', 'SETTLED', 'ABANDONED') DEFAULT 'OPEN',
item_allow_multiple_bets ENUM('Y', 'N') DEFAULT 'Y',
can someone explain how to set those three correctly in php my admin manually, because the vbookie_install.php does not install the table correctly..
teamgofast
01-26-2005, 11:22 PM
bump bump got alot of people who want there vbookie back :(
1067 is...
Error: 1067 is a invalid default value for '%s'
i tried to manually add the table "vbookie_items" but it returns #1067 - Invalid default value for 'item_id' so what's the deal ? can I get some support, or should I just give up on the vbookie ????
Ok I managed to add the table, but 3 of the items are incorrect, my synxtax wasnt right, for the following three items...
can someone explain how to set those three correctly in php my admin manually, because the vbookie_install.php does not install the table correctly..
WhiteOx2
01-30-2005, 06:43 PM
Is there a way to stop the editing of events after they have closed?
Because the person hosting the event can change the odds to there favor payout and then change them back again. :(
I have an honest thief on my board. :D
Spikeh
01-30-2005, 07:09 PM
WhiteOx
Your hack works, how did you sort out the settings not saving and reverting back to No in the ACP?
Or anyone else to answer this?
Thanks.
WhiteOx2
01-30-2005, 09:33 PM
Spikeh the hack works fine, I've had it installed on 3.0.3 - 3.0.6
I'm not sure what you mean by your above question.
Also I fixed my above question (kinda) by copying and pasting a bit of code in vbookie.php file. :)
Spikeh
01-31-2005, 09:20 AM
Hey,
Whenever I alter the settings in the ACP and click Save they revert back to No.
EA Junkie
02-02-2005, 05:14 AM
Upgraded vBulletin to 3.0.5 and vBookie no longer works. I've gone back and modified all the code, but continue to get a white screen when clicking on vBookie tab. I run an online sports games site and this hurts our fun...
Help Please!!!
skinny
02-02-2005, 04:59 PM
Upgraded vBulletin to 3.0.5 and vBookie no longer works. I've gone back and modified all the code, but continue to get a white screen when clicking on vBookie tab. I run an online sports games site and this hurts our fun...
Help Please!!!
It has been working fine on my 3.0.6 and did so on 3.0.5. If you are getting a blank screen you've obviously not installed it correctly. Do you have any other hacks installed?
I would suggest uploading the files again, checking the templates once over because there is something not quite right there. You DB should still be intact so you wont lose any data.
docvader
02-02-2005, 05:13 PM
With some hacks, the templates get "lost" during upgrade, leading you to the white screen of death. Upload the install files, and run the install so that it writes the templates and phrases. That should do it. I had a similar problem.
teamgofast
02-03-2005, 12:30 AM
With some hacks, the templates get "lost" during upgrade, leading you to the white screen of death. Upload the install files, and run the install so that it writes the templates and phrases. That should do it. I had a similar problem.
the installer is the problem, it stops at the database tables. I REALLY WANT MY VBOOKIE BACK! lol :ermm:
WhiteOx2
02-03-2005, 07:36 AM
If vBookie is not working after upgrading run the installer again but only re-install the templates, nothing else, everything else should still be in your database. I have had it running since the release of vb 3.0.3 and it's worked every time.
teamgofast
02-04-2005, 11:58 PM
If vBookie is not working after upgrading run the installer again but only re-install the templates, nothing else, everything else should still be in your database. I have had it running since the release of vb 3.0.3 and it's worked every time.
problem i had was i reverted templates by accident so i had to redo everything. so after it failed to reload i emptied the data base and tried a fresh install. it didnt work so now i want it back someone fix the installer!!!!!!! ill pay!!
carolmyt
02-05-2005, 06:12 PM
I don't have a previous version installed. Just to be totally sure, other people have fresh installed the posted version to 3.0.6 with no problems?
nighteyes
02-11-2005, 09:48 AM
Just so you know there's a HUGE FLAW in this hack. A user can just save a copy of the vbookie thread to their computer, point the form to the http:// address of the website and bet at whatever odds they choose.
The solution is not setting odds based on the hidden form variables:
<input type="hidden" name="odds2[1]" value="10">
<input type="hidden" name="odds2[1]" value="1">
But by taking the item id:
<input type="hidden" name="item_id" value="1680" />
And grabbing the current odds from the database itself.
carolmyt
02-13-2005, 06:11 PM
Whoa, huh? How do you do that?
DavidatMPA
02-22-2005, 03:04 AM
Seems to be good, only i can't figure out how to start events, or anything to that effect:
http://www.forums.mpanetwork.com/vbookie.php
I've got it enabled in the member group option.....but still no settings there to allow me to start a new betting thing or anything! confused!
RMS-Chef
02-22-2005, 03:45 AM
Events are created by creating a new thread in an enabled forum.
When creating a new thread, there will be a tick box to make the thread a vBookie Event. If you check that box and submit, it will bring you to the event setup.
Good luck!
RMS-Chef
02-22-2005, 03:50 AM
I don't have a previous version installed. Just to be totally sure, other people have fresh installed the posted version to 3.0.6 with no problems?
I have tested an install with 3.0.6 and I cannot recall any issues with the installer. The only issues I had was with file edits. The "FIND" code was a bit different in most of the steps but you can still figure out where stuff goes by finding something close to what it tells you to look for.
Lizard King
02-22-2005, 06:20 AM
I have it working with 3.0.7
BigIke
02-23-2005, 09:01 AM
I'm running into trouble when I try updating the admin usergroup settings. I get this error:
Database error in vBulletin 3.0.5:
Invalid SQL: UPDATE usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Administrators',
description = '',
usertitle = 'Administrator',
opentag = '',
closetag = '',
passwordexpires = '180',
passwordhistory = '360',
attachlimit = '0',
canpostvbookieevent = '1',
caneditothersvbookieevents = '1',
canbet = '1',
avatarmaxwidth = '150',
avatarmaxheight = '150',
avatarmaxsize = '200000000',
profilepicmaxwidth = '100',
profilepicmaxheight = '100',
profilepicmaxsize = '65535',
pmquota = '50',
pmsendmax = '5',
uttstore_discount = '0',
forumpermissions = '393215',
pmpermissions = '3',
calendarpermissions = '31',
wolpermissions = '31',
adminpermissions = '3',
genericpermissions = '4194239',
genericoptions = '31'
WHERE usergroupid=6
mysql error: Unknown column 'canpostvbookieevent' in 'field list'
mysql error number: 1054
Date: Wednesday 23rd of February 2005 09:58:39 AM
Script: http://s116946478.onlinehome.us/vb/admincp/usergroup.php
Referer: http://s116946478.onlinehome.us/vb/admincp/usergroup.php?s=&do=edit&usergroupid=6
Username: BigVike
IP Address: xx.xxx.xxx.xxx
I read every post in this topic and saw that one person had a similar problem but he fixed it himself :( Oh, btw, I am running version 3.0.5. Thanks for any and all help.
BigIke
02-23-2005, 02:14 PM
anyone have any clues? any help would be appreciated
BigIke
02-23-2005, 10:46 PM
sorry for triple posting but this thread keeps getting buried and people keep passing over it...
dcarr
02-23-2005, 11:28 PM
ok I check my boards and here's the deal. I don't have and have never had those tables in my usergroup database..and have been using bookie for some time now...However, according to the install files..those names belong in the init.php..and that's where I found them. I think you left out some coding..double check and make sure your init.php file is correct. That should fix your problem.
majgik
02-24-2005, 12:07 AM
sounds like a great hack im going to install it tommorow
DS MrSinister
02-26-2005, 07:47 AM
anyone help me with this?
Database error in vBulletin 3.0.6:
Invalid SQL:
CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM
mysql error: Invalid default value for 'group_id'
mysql error number: 1067
i had a template issue and tried to reinstall everything but get this error?
I am getting the same error. can anyone help.
How do i fix this problem..?
I'm running into trouble when I try updating the admin usergroup settings. I get this error:
I read every post in this topic and saw that one person had a similar problem but he fixed it himself :( Oh, btw, I am running version 3.0.5. Thanks for any and all help.
Check to make sure the edits made to init.php have been done correctly.
I am getting the same error. can anyone help.
How do i fix this problem..?
Change the query to:
CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM
DS MrSinister
02-26-2005, 05:30 PM
THank you soo much for your help razz
:banana:
hitmanuk2k
03-05-2005, 08:18 PM
Where does one define the start off amount each user gets? I want 100 not 500.
lefthome
03-09-2005, 11:06 AM
I would like to install this hack. Currently I am using vb 3.06 and will upgrade to vb3.07 this weekend. Does this hack work in vb3.07?
RMS-Chef
03-09-2005, 01:25 PM
I would like to install this hack. Currently I am using vb 3.06 and will upgrade to vb3.07 this weekend. Does this hack work in vb3.07?
Yes it will.
In the file edits the "Find This" will be a bit different for almost every occasion but it's doable.
mykes
03-10-2005, 02:45 AM
I'm using this wonderful hack to run a uCash sportsbook on my site. Problem is, with uCash thief enabled, people steal from users who get paid and aren't online.
Suggestions?
(It'd be nice to have an option to just pay into the bank account, which I think I'm going to hack myself)
A suggestion for the next version, while I'm here:
Point spreads. The lines move, and if you edit the bet, you lose the information of who bet at the previous lines.
Lionel
03-10-2005, 06:38 AM
Easily installed on 3.07 without any problems. However, the vbadvanced module is causing the home page to be blank....
I found out that the problem was being caused by $getbgrow = getrowcolor();
I commented it out and removed it at the last line, then was fine.
Just noticed another problem, the dollar image does not show up. Instead it is the poll image that displays on forumdisplay
sully02
03-12-2005, 07:10 PM
I searched the thread for these but did not find anything concrete, so I'll ask it here. If I inadvertently missed them, my apologies. A couple of ideas for additions:
1] Pool bet: This is most commonly seen in the NCAA Tournament Brackets. Users can pay x amount of vCash/uCash/whatever to get in, and that amount is stored in a "pot" or "pool". At the end of the event, you can choose 1st, 2nd, and 3rd place winners and those guys get a certain percentage of the pot.
2] Push option: I saw this brought up, but did not see anything about having it implemented. Any progress?
Lionel
03-14-2005, 08:21 PM
Can someone please give me a pointer on where to look? The vbookie main page is displaying all, but first event, twice. They are only in database once. Obviously I must have some double code somewhere, but where?
Mystery solved! Although I emptied database after tests, I did not delete those posts. So vbookie was pulling same double old and new
EA Junkie
03-15-2005, 06:05 AM
vBookie was running perfect until I updated vBulletin from version 3.03 to 3.05??? I updated my vbArcade and its working fine, but vBookie doesn't work. I've tried reinstalling from scratch and get a white screen after 2 hours of work tried multiple times. I want my betting back. Any ideas or help is appreciated...
BigIke
03-16-2005, 02:15 AM
I'm not sure where I messed up installing the hack, but whenever I try to post a newthread, the WYSIWYG editor is totally messed up. I looked for a couple of hours and couldn't find any problems in the code. Anyone have any suggestions?
Here is the link to a new thread post: http://s87297490.onlinehome.us/maxruckus/newthread.php?do=newthread&f=11
Thanks for any help
BigIke
03-16-2005, 02:57 AM
wow... i fixed it. It was a problem with my image paths. I feel like an idiot.
iamboard
03-16-2005, 09:02 PM
I'm sorry to ask a stupid question but vBookie isn't played for real cash is it?
I'm sorry to ask a stupid question but vBookie isn't played for real cash is it?
No :)
It uses virtual points, either its own built in system or it can use the points from the ushop hack.
grains
03-17-2005, 04:37 PM
okay...call me retarded, but......how do you add events?? i went to vbookie, but i dont see "add events anywhere"....
grains
03-17-2005, 04:42 PM
Events are created by creating a new thread in an enabled forum.
When creating a new thread, there will be a tick box to make the thread a vBookie Event. If you check that box and submit, it will bring you to the event setup.
Good luck!
there we goo.......thank you! i didnt know what the hell..
Hey guys.
I am having trouble getting this hack running on my system.
I am running the latest version 1.0.4. It says that for this error ensure I am running version 1.0.3 or higher... which I am.
It all seems to work and it allows me to get to the page I need to to enter the bookie event, then when I click ok it comes up with the error below. If I click refresh it actually works and adds the event to my vBookie screen but it doesnt add the event for members to bet on.
Also, when I click on the vBookie screen I see the 5 vBookie events there and shows me that noone has better on them, of course they cant as they dont show up at the top of threads. Also when I scroll over 'Thread' in the vBookie screen it comes up with 'http://www.myafl.com/forum/showthread.php?t=' and as you can see it has no thread number it refers to.... so definitely an issue there somewhere.
REALLY desperate to get this working as the Football season starts tomorrow and I need it running for that.
Any help would be appreciated. Thanks.
=================================================
Database error in vBulletin 3.0.7:
Invalid SQL: UPDATE SET =25 WHERE <25
mysql error: You have an error in your SQL syntax near 'SET =25 WHERE <25' at line 1
mysql error number: 1064
Date: Wednesday 23rd of March 2005 07:33:43 AM
Script: http://www.myafl.com/forum/vbookie.php
Referer: http://www.myafl.com/forum/vbookie.php?t=2163&vbookieeventoptions=0&do=newevent
Username: Ari
=================================================
Caveman2k2
03-25-2005, 06:22 AM
Installed and working! Thanks for a great hack.
kobescoresagain
03-25-2005, 12:04 PM
Tell me if I am right, This doesn't support betting between members. Just betting against the "Ucash" system? If I am correct do you have any future plans on making it where members could play against each other. For instance I run a sports card trading site (www.sccollectors.com/forums ) (shameless plug) and I have a forum set up so they can bet ucash. The problem that I see arising in the future is people not paying up so I will have to take the cash out myself. It would be great to somewhat automate this for users. Something like you make a title you place the odds and the maxium in bets you could receive. Then you let event occur. After event occurs you go to the post click some type of button that picks the winner. The other party envolved gets a pm sent to them to confirm it by going to same link. If both confirm bet is finalized and sent to winner. If one of two denys then a pm is sent to admin and he can make the decision himself. I would find something like this extremely useful. I think many other board owners would also.
Caveman2k2
03-26-2005, 05:12 AM
Hi guys,
Looking for some help on getting the post icon for a vbookie event listed on the forum index to show up the same as it does when viewing the forum it's posted in. On the index page, it shows up as a poll icon, while on the forum it's posted in, it is the "$" sign. I've looked through all the templates, but didn't have much luck. I'm also a php ID-10-T :) so if you can point me in the correct direction, I'd very much appreciate it.
bobbaf3nn
03-29-2005, 02:51 PM
I have a problem with vBookie v1.0.4.
From the AdminCP i can't cahnge the General vBookie Settings. I set the five options to what i want, press update and let it go. I then get the message "vBookie Settings Saved Successfully." The window then refreses and goes back to the general settings page. This is where the rpoblem occurs. All the options have gone back to the default and are all set to no. When i check the forum none of the changes have taken place. So i can't open the vBookie to anyone. Not even those with permission.
Thanks for your time, its very much appreciated. Hope to hear from you soon with a solution. BTW the mod looks great on forums that it works on.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.