View Full Version : vBookie for vBulletin 3.5
Pages :
1
2
[
3]
4
5
6
7
8
9
10
Tracer Gun Kata
02-02-2006, 03:29 PM
Recently upgraded from 3.5.1 to 3.5.3.
All vBookie Data, Bets (current and settled) are intact.
When I try to create a new vBookie event the option to create the event in no longer available (ie.. the checkbox).
I checked the permissions in the admincp which remained the same as they were prior to the vbulletin upgrade.
Anybody have a similiar experience?
What I have done so far (just to make sure) -
Rebuilt BitFields
Turned vBookie On and Off
Set Permissions Off and On
Drago912
02-02-2006, 08:50 PM
Can anyone tell me why my permissions will not stay..........I go to usergroups as well as forum permissions, set them to yes and click save and when I go back and check they are all at no......it wont take.....any ideas?
Can anyone tell me why my permissions will not stay..........I go to usergroups as well as forum permissions, set them to yes and click save and when I go back and check they are all at no......it wont take.....any ideas?
Go back a few pages and you will find the answer. :rolleyes:
Drago912
02-02-2006, 09:24 PM
Got it thanks..........I was reading and reading and gave up before I got to it.......thanks.
shaynehammy
02-03-2006, 07:02 PM
PLEASE, can someone help me. Who supports this or has knowledge of this hack?
All i need to know is why when someone bets cash and presses bet now does it jump to "No Thread specified. If you followed a valid link, please notify the administrator"
The money is laid down in the bet and i have reinstalled this a number of times and reimported all files and checked all templates edits.
Please can someone help me. Its Super 14 rugby season soon and my users are very keen for me to sort this out.
shaynehammy
02-05-2006, 09:43 PM
I have got to the stage (due to the release of the two cash mods) were i am willing to pay anyone that resolves my issue. Please PM me for details.
Andreas
02-06-2006, 11:28 PM
All i need to know is why when someone bets cash and presses bet now does it jump to "No Thread specified. If you followed a valid link, please notify the administrator"
The money is laid down in the bet and i have reinstalled this a number of times and reimported all files and checked all templates edits.
That should not happen.
What is the URL when you get this error?
Can you provide me (PM) an admin account to test this on your board?
shaynehammy
02-07-2006, 03:23 AM
Information has been PM'ed to you. Thanks
shaynehammy
02-07-2006, 06:07 PM
Andreas
Could not find phrase 'edirect_betthanks'.?? Only one other user has had this problem on post 239. Do i need to create a new phrase for it and edit vbookie.php?
Abandoning the event gives Could not find phrase 'edirect_abandon'.
EDIT: Oh. Why is this there part of the phrase missing (above) whe n it should be like below.
Varname $vbphrase[vbookie_redirect_betthanks]
Text Thank you for betting on this <i>vBookie</i> event! You will now be taken back to the event's thread.
Andreas
02-07-2006, 06:33 PM
This is a vBulletin bug in handling phrases, which will be fixed in the next maintenance release, presumably 3.5.4.
Though, your invalid threadid problem has another cause. I'll update the ZIP when I got time to fix it.
shaynehammy
02-07-2006, 06:58 PM
Thanks Andreas. I appreciate the help.
Do you know the cause of my problem and whether its fixable?
Fran07
02-07-2006, 08:31 PM
If I install this hack on my 3.5.3, is it possible to easily update vBulletin to next versions later or are there any complications?
Does it have an option to avoid starting the betting threads?
Thank you in advance.
MPDev
02-08-2006, 02:50 AM
Does this work with the uCash 2.0.0 release just out?
jojo77
02-09-2006, 05:01 AM
I got a bug. I disabled my super moderators to not be able to edit Vbookie events and for the most part they can't. But they are able to settle bets and choose winners of the events. Got a fix anyone?
cdorka
02-09-2006, 11:18 PM
ive got vbadvanced and in the front page the vbookie link in the link bar doesnt work because its going to domain.com/vbookie, instead of domain.com/forum/vbookie.
any way to fix that?
kgirl
02-12-2006, 07:07 PM
Hi,
I've set up Vbookie on VB 3.5.3, and private bets aren't private - anyone can see a private bet another person has made.
I've checked the settings etc, but see nothing about private bets. Any ideas??
shaynehammy
02-15-2006, 03:39 AM
PLease can someone explain to me who to add the Win! feature? I got bets happening and being settled but noone can tell who won.
I kn ow you need to create a new phrase but i just need someone to explain exactly what i need to do.
Thanks.
cuphongle
02-15-2006, 05:57 AM
Does this work with the uCash 2.0.0 release just out?
want to ask this to before installing
Andreas
02-15-2006, 10:14 AM
Important Upgrade Note
If you are upgrading from a previous version, you must check/modify your vBookie settings afterwards as those have changed.
leeman
02-15-2006, 10:22 AM
To upgrade do I just upload the XML and overwrite or ....?
Andreas
02-15-2006, 10:30 AM
Standard upgrade procudeure as with all Hacks:
Upload files, run installer/import XML
dxguru
02-15-2006, 10:42 AM
Will the upgrade have any effect on existing events?
..Open with or without bets
..Closed but not paid out yet
BTW ... thanks for the great work :)
Andreas
02-15-2006, 10:47 AM
Yes, it will delete all your events and turn your 'puter into a rocketlauncher ... NOT.
MPDev
02-15-2006, 11:53 AM
I did the upgrade, but now my current events display:
You may not bet on this event. You have placed 0 bet(s) on this Event.
Edit: Seems $allowbetting is set to 1 and then set to 0 in several places if they meet conditions that they cannot bet. But then you check:
if ($allowbetting)
which I think you want !$allowbetting, no?
Edit 2: Well, I thought so, but changing this produced:
You may bet on this event. You have 0 cash and have placed 0 bet(s) on this Event. You may bet more than once on this Event.
And 0 cash seems to be an issue.
Edit 3: Okay, found the problem, in functions_vbookie.php (change in bold):
switch ($vbulletin->options['vbookiecash'])
{
case 'vcash':
$cash = (int)$vbulletin->userinfo['vbookie_cash'];
Cheertobi
02-15-2006, 12:01 PM
Seems like the grouppermissions are not saved! Cannot allow any usergroup to place a bet or even bet!
Tobi
Andreas
02-15-2006, 12:23 PM
@MPDev
Dang ... I had fixed that already but accidently packaged the wrong file :-/
@Cheertobi
Follow the installation instructions correctly and the perms will be saved
MPDev
02-15-2006, 12:29 PM
Should I redownload the functions_vbookie.php or was that the only "issue"?
Andreas
02-15-2006, 12:30 PM
It was the only issue (that I am aware of)
kylek
02-15-2006, 08:21 PM
"Added support for eBux"
If we had before edited the functions_vbookie.php to get it to work with eBux, is there anything to do or just reupload the files and import the product again?
Cheertobi
02-15-2006, 08:23 PM
Follow the installation instructions correctly and the perms will be saved
Ok, I will check this on friday, but I think I did everything like it is said in the instructions.
Setup your permissions in Usergroups / Usergroup Manager (and, if necessary, in Forums & Moderators / Forum Permissions too)
Das habe ich versucht auf Yes zu setzen und jedesmal stehen die Settings nach dem Speichern wieder auf No. Mhhh, ich schau nochmal genau nach...
Tobi
Andreas
02-15-2006, 08:43 PM
As always, the bitfield XML file must be in place before the product XML is being imported.
If this was not the case, you either have to rebuild the bitfield cache manually - or import the product XML again.
DS MrSinister
02-15-2006, 11:29 PM
thxs for the update. Still cant goto my page 2,3 or 4 of my settled bets. it takes me back to the main page of vbookie.
done! thanks!
Andreas
02-15-2006, 11:37 PM
Report it as a bug then
Would be best if you could include a link to your installation that does have the problem
cdorka
02-16-2006, 12:38 AM
my permissions show me as Yes i can post edit and bet, but in the forum is doesnt give me the field to bet and says i cannot place a bet.
i followed everything right. :confused:
Andreas
02-16-2006, 12:49 AM
<a href="https://vborg.vbsupport.ru/showpost.php?p=900929&postcount=526" target="_blank">https://vborg.vbsupport.ru/showp...&postcount=526</a>
If you downloaded the ZIP before this post, download it again and replace functions_vbookie.php
Otherwise check your vBookie settings.
cdorka
02-16-2006, 12:55 AM
still no dice, uploaded functions_vbookie.php and permissions say Yes on everything.
hmm...
Andreas
02-16-2006, 01:08 AM
Which cash system do you use?
Do you have enough cash to bet?
Did you check the Forum Permissions?
cdorka
02-16-2006, 01:11 AM
im using vcash
i have enough cash
i made a new bet with 3-1 odds and couldnt bet after creating it.
i checked forum permisions many times on forum and through usergroups, it says yes on all three...
Andreas
02-16-2006, 01:16 AM
Then I am at a loss to explain why it does not work.
Feel free to drop me a PM with an ACP login
cdorka
02-16-2006, 01:32 AM
i upgraded, so i replaced the 3 entries in the newthread, navbit and postbit templates
i had to make a vbphrase for the money in the postbit, i think it was vbookie_bcash
Andreas
02-16-2006, 01:44 AM
vbookie_vcash ... yes, that phrase is missing in the XML (due to the fact I created it for product vBulletin, not vBookie ;))
cdorka
02-16-2006, 01:48 AM
thanks for your help. Working good now!
shaynehammy
02-16-2006, 03:28 AM
Redirect problem has gone and all working perfectly now. Thanks Andreas.
cOuNtErFiET
02-16-2006, 03:53 AM
ok im new to this bookie stuff, so idk whats up and i think i need the ucash hooks it says in the readme? where would i get them in the ucash and ushop thread or do i have to have them specially made or what? and will it work with the new ucash thts out?
AlchemyX
02-16-2006, 05:25 AM
It's odd... I try to edit the vBookie permissions in my usergroup manager, but it doesn't update... it just keeps all of everyone's vBookie settings a "No" no matter how many times I try.
You need to rebuild bitfields (page 29 - message number 431)
http://www.path.to.your.forums/admincp/index.php?do=buildbitfields
cuphongle
02-16-2006, 09:19 AM
i installed and everything went great, but when i go into usergroup manager, and give the permission, i checked yes for all of them, and go back in again....its checked no again
cuphongle
02-16-2006, 09:20 AM
nevermind, saw the rebuiild
Andreas
02-16-2006, 12:28 PM
It should never-ever be necessary to rebuilt the bitfield cache manually if you follow the installation instructions correctly ...
MPDev
02-16-2006, 12:42 PM
Yeah, it was strange; I followed the directions expicitly, but still had to rebuild the bitfields as the changes to the settings wouldn't stick.
baerwurz
02-16-2006, 03:09 PM
can be deleted.
sorry
Dawnf1
02-16-2006, 06:08 PM
I have the same problem that cdorka had, and I can't resolve it, I have checked my permissions and everything should be fine.
I rebuilt the bitfields too, whatever that is, in case it helped, which it didnt.
I don't understand what I'm supposed to do with the phrase
vbookie_vcash
which seems to have solved the problem for cdorka - where do I put it?
Andreas
02-16-2006, 06:16 PM
vbookie_vcash should be in phrasegroup GLOBAL
However, if you downloaded the ZIP after post #541, it is already in the XML.
And just FYI: The phrase has nothing to do with not being able to bet (which ist most likely caused by incorrect settings or permissions)
Dawnf1
02-16-2006, 06:27 PM
vbookie_vcash should be in phrasegroup GLOBAL
However, if you downloaded the ZIP after post #541, it is already in the XML.
And just FYI: The phrase has nothing to do with not being able to bet (which ist most likely caused by incorrect settings or permissions)
Ok.
Well, I installed your newer version of the xml with that phrase in, and didn't change anything else, and now it works. So, it must have some effect on it.
Thanks for the help.
teamgofast
02-16-2006, 10:04 PM
this hasnt worked for me since i upgraded to 3.53, ive rebuilt, uninstalled/reinstalled uploaded the new version yada yada yada, and nothing, the new thread and show thread portions do not show up for me. i really wish i hadnt upgraded, this is more important to my small site then any upgrade.. :(
Andreas
02-16-2006, 10:22 PM
Then you did smth. wrong :)
Check your template edits, vBookie settings and permissions.
If it still does not work out, send me a PM with an ACP login.
Frank Butcher
02-16-2006, 11:10 PM
This is going to sound really dumb and please forgive me as I am new to VBB but with the upload folder where is it uploaded to ?
teamgofast
02-16-2006, 11:10 PM
Then you did smth. wrong :)
Check your template edits, vBookie settings and permissions.
If it still does not work out, send me a PM with an ACP login.
here comes the pm, if you remember i had this problem when i first loaded this on v3.5 and i still have your pm from then, it was a rebuild issue is what you told me
teamgofast
02-16-2006, 11:17 PM
This is going to sound really dumb and please forgive me as I am new to VBB but with the upload folder where is it uploaded to ?
that folder should be called includes, its contents go there. same goes for the xml folder, its contents would go in the includes/xml folder
NoRespect
02-17-2006, 02:35 AM
I had 1.05 installed and working fine. Upgraded to 1.06 and no bets paid out after the event was settled. :(
Andreas
02-17-2006, 02:59 AM
Did you check and save your vBookie settings?
Those have changed and MUST be saved after an upgrade.
Frank Butcher
02-17-2006, 07:18 AM
that folder should be called includes, its contents go there. same goes for the xml folder, its contents would go in the includes/xml folder
So I upload "includes" by FTP to my forums directory ?
Thing is there is already a folder there called Includes so surely that is going to overwrite that folder ? or do I just upload in FTP the individual files into the existing Includes directory ?
And what about the "images" folder and the VBookie PHP file ?
Sorry about all these questions but right now I am so stressed I feel on the point of a breakdown and can't do this task without being told how to do it in here
Cheertobi
02-17-2006, 09:03 AM
Got it working now, after rebuilding bitfields!
Thanks for that hack ;)
Tobi
Frank Butcher
02-17-2006, 09:13 AM
Can someone please answer my question :)
Frank Butcher
02-17-2006, 10:43 AM
I think I have it sorted now but I can find nowhere to actually create an event
Have I done something wrong ?
chairman miaow
02-17-2006, 10:58 AM
You create events by posting a message in the forum - there should be a "post a vbookie event" box near where the create a poll option is
Frank Butcher
02-17-2006, 11:05 AM
Aah thanks :)
Yeah I was guessing that they have to be created in the VBookie CP that I screen shotted
Frank Butcher
02-17-2006, 11:12 AM
I have seriously screwed it up :(
In Admin Panel when I create settings for usergroups to use VBookie it automatically sets them back to No so there is no option there so I have majorly messed up somewhere
The VBookie PHP file was that meant to be uploaded to the main forums directory or to another folder?
chairman miaow
02-17-2006, 11:17 AM
You have to re-build the bitfields :
@Everybody who got the same Problem as Bobby_S (setting reverting to No):
The Bitfield XML must be uploaded before the Product XML is being imported - as stated in the documentation.
If you are not sure if you did that:
Check if the File is present and call admincp/index.php?do=buildbitfields
That should fix the Problem.
Frank Butcher
02-17-2006, 11:31 AM
Thanks :) all is fine now :D
One last question sorry, I only installed it on the default skin, is there any way of transferring it to all the others in one go or does each skin have to be done individually ? if the latter then I will just leave it on default
NoRespect
02-18-2006, 06:52 AM
Andreas,
I had a working 1.05 on my server, everything was great. Upgraded to 1.06 and no bets paid out. No biggie. Installed eBux/eStore and then vBookie 1.06 (using eBux).
Everything seemed fine until I paid out my first bet. I (my admin name) recieved ALL the winnings, but the posts says it paid out correctly. It's very odd.
I reuploaded all the files, and reinstalled it...but I haven't paid out anything else yet (scared!).
Ideas?
got1-2
02-18-2006, 10:05 AM
Got it working great..
Now about the typo error in the area at the bottom. of the page Edit Event
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.
I just done a search and replace in Phrase's, and hey presto..all done
Hope this helps...
RGSMDNR
02-18-2006, 11:31 AM
im having an issue with vbookie, i made a test bet, had some members bet on it, and when i settled all bets.. I got all the winnings... that shouldnt be.. should it?
MPDev
02-18-2006, 01:08 PM
For the 1.0.7 update; do you need to reimport the XML orjust update the PHP files?
Andreas
02-18-2006, 01:10 PM
If you want the phrase fix as well, import the XML - otherwise just overwrite the functions file.
Tuxeh
02-18-2006, 03:39 PM
a lot of my bets have repetitive outcomes, for example "who will win the 2006 F1 championship", "who will win the first F1 race in 2006" etc etc. they will all have the same outcome select (schumacher, button, coulthard etc etc etc)
so im wondering if its possible to have templates to select from for the outcomes.
or if thats allready an option, where can i find it (i looked in all the obvious places but didnt see anything)
Thanks for the great mod :)
NoRespect
02-18-2006, 07:59 PM
My vBookie setup uses my eStore/eBux money. I just noticed this (1.07):
From the eStore:
Midge.T - 51,764.96 Points
RainbowTwinkieJuice - 44,649.44 Points
glass1217 - 36,064.51 Points
sharp - 20,914.30 Points
ELTGuy - 20,876.53 Points
TX SVT LIGHTNING - 10,644.81 Points
Nawz King - 10,020.81 Points
Jake - 6,475.07 Points
Amay - 6,032.06 Points
From vBookie bet stats:
Midge.T has a total of 51164.19028
TX SVT LIGHTNING has a total of 10644.81000
Nawz King has a total of 10020.81000
NoRespect has a total of 6010.68438
Amay has a total of 5532.06188
This was done at the same exact time.
Andreas
02-18-2006, 08:27 PM
It is impossible that this was done at the same time, due to the fact that IP is a serial communication protocol.
The points for TX SVT LIGHTNING and Nawz King are the same.
Midge.T and Amay are slightly different, don't know why.
RGSMDNR
02-18-2006, 09:22 PM
im having an issue with vbookie, i made a test bet, had some members bet on it, and when i settled all bets.. I got all the winnings... that shouldnt be.. should it?
any help?
Frank Butcher
02-18-2006, 09:28 PM
Do I have to uninstall the existing version and upload the zip file contents or do I just overwrite existing files with the new bits ?
Andreas
02-18-2006, 10:44 PM
You can uninstall and then install again.
However, you will lose all cash and events then, as uninstall deletes all data the belongs to this hack.
wilburshere
02-19-2006, 07:37 AM
well i just uploaded new files and overwrote old ones and did the same with the product as well cool
baerwurz
02-19-2006, 10:11 AM
Will the vCash been payout automatically?
Or what do I have to do?
Thanks, very nice Hack for me!
Stunner Inc.
02-19-2006, 12:01 PM
I just did the Update and everything went fine. But what I forgot to post when I first saw the problem is that my newer skins don't show the option to make an vBookie event which is usually above/below Add A Poll.
Attached SHOULD be the pics explaining what I mean.
http://img119.imageshack.us/img119/7114/old0ds.jpg
http://img119.imageshack.us/img119/6862/new5nu.jpg
The silver skin is the only skin showing the vBookie Option
The Black skin (and 2 more skins) does not.
Bottom line I wish to know what to add and to what to make ALL of my skins have the vBookie Option:)
TbChampions
02-19-2006, 02:03 PM
The readme file says:
3) In Template newthread
FIND
--------------------------------------------------
$threadmanagement
--------------------------------------------------
ABOVE that ADD
--------------------------------------------------
<if condition="$show['vbookieevent']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_vbookieevent]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postvbookieevent"><input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" $checked[postvbookieevent] />$vbphrase[yes_post_a_vbookieevent_thread]</label></div>
</div>
</fieldset>
</if>
--------------------------------------------------
There is no one line which is:
$threadmanagement
So, I took a guess in following the instructions as precisely as possible, and put the "ABOVE that ADD" coding in the following place in the 2nd of 3 instances of $threadmanagement in the newthread file:
{
PUT CODING HERE
$threadmanagement = '';
}
Of course, this results in an error in my forum when one creates a new thread.
Would someone please instruct me as to where exactly I am to put the coding? Thank you.
JBMoney
02-19-2006, 02:26 PM
Just for clarification, what specifically do I need to do to upgrade from vBookie v1.0.5 to v1.0.7?
Do I just overwrite functions_vbookie.php and make one edit to postbit/postbit_legacy?
My apologies if this has already been answered.
TbChampions
02-19-2006, 03:45 PM
Well, forget the following post. I wondered how I was the only one with this problem, but now I see that the script reads differently if you open it in the admin panel rather than the old-fashioned way I was doing it -- open in notepad, search for the text, add the change, save, upload via FTP.
Sorry.
-------------------------------------------------------------------------
The readme file says:
3) In Template newthread
FIND
--------------------------------------------------
$threadmanagement
--------------------------------------------------
ABOVE that ADD
--------------------------------------------------
<if condition="$show['vbookieevent']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_vbookieevent]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postvbookieevent"><input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" $checked[postvbookieevent] />$vbphrase[yes_post_a_vbookieevent_thread]</label></div>
</div>
</fieldset>
</if>
--------------------------------------------------
There is no one line which is:
$threadmanagement
So, I took a guess in following the instructions as precisely as possible, and put the "ABOVE that ADD" coding in the following place in the 2nd of 3 instances of $threadmanagement in the newthread file:
{
PUT CODING HERE
$threadmanagement = '';
}
Of course, this results in an error in my forum when one creates a new thread.
Would someone please instruct me as to where exactly I am to put the coding? Thank you.
Andreas
02-19-2006, 04:04 PM
No offense, Andreas, but it would appear to be necessary. It's difficult to edit a file when the phrases you tell us to look for don't exist. I was unsure of every edit I made because it didn't match, and not surprisingly, I now get errors in my forum instead of being able to post to or read a thread.
I came here and have spent an hour reading old posts in a 39 page thread, trying to find the correct coding, and have yet to find it.
I appreciate you making this hack and if I get it to work, I think it will be a valuable addition, but I don't see why this hack or any other "shouldn't" be updated to go with the latest version of the forum. Granted, you don't have to give any of your time to update it, but it's certainly not "not necessary."
I said that it is not necessary to update this Hack, because it is not necessary :)
The install instructions were left unchanged (except that I recently replaced the hardcoded text with phrases) since 3.5.0 RC2.
So where is the point in "updating" them when in fact nothing has changed?
Also, $threadmanagement definitly exists in Template newthread.
If it does not, you are either looking somewhere wrong or your template is seriously messed up.
JBMoney
02-19-2006, 04:14 PM
In my case, I need to upgrade for the eBux integration.
JBMoney
02-19-2006, 06:04 PM
So... what specifically do I need to do to upgrade from vBookie v1.0.5 to v1.0.7?
VerkroostJ
02-19-2006, 07:56 PM
Rather a newb question but what is meant by "Import product-bookiehack.xml", specifically the "import" part. I have uploaded the other files and edited the templates as required, but nothing displays/is working at the moment.
barny11
02-19-2006, 11:44 PM
Rather a newb question but what is meant by "Import product-bookiehack.xml", specifically the "import" part. I have uploaded the other files and edited the templates as required, but nothing displays/is working at the moment.
Go into your admin cp, then expand plugin system and select manage products, from the resulting screen select add/import product, then select upload the XML file from your computer after browsing to the xml file on your pc. Then select Import ;)
swissknife
02-20-2006, 08:18 AM
Go into your admin cp, then expand plugin system and select manage products, from the resulting screen select add/import product, then select upload the XML file from your computer after browsing to the xml file on your pc. Then select Import ;)
hi!
i got a problem: i installed it without problems , but in the usergroup-manger i cant allow usergroups to use it. everytime i reload the page , all options are "no" again. what can i do?
thanks
swiss
NoRespect
02-20-2006, 08:26 AM
hi!
i got a problem: i installed it without problems , but in the usergroup-manger i cant allow usergroups to use it. everytime i reload the page , all options are "no" again. what can i do?
thanks
swiss
You need to run:
http://www.ENTERYOURSITE.com/forums/admincp/index.php?do=buildbitfields
swissknife
02-20-2006, 08:39 AM
You need to run:
http://www.ENTERYOURSITE.com/forums/admincp/index.php?do=buildbitfields
thanks, i did that... but i am still not able to create bets. where is my misstake?
NoRespect
02-20-2006, 08:44 AM
thanks, i did that... but i am still not able to create bets. where is my misstake?
Permissions are set for usergroups AND forums.
So you'll need to make sure both.
swissknife
02-20-2006, 09:04 AM
Permissions are set for usergroups AND forums.
So you'll need to make sure both.
thanks a lot!
Webs007
02-20-2006, 09:18 AM
So let me get this straight, if the user wins - would I have to manually go into my payment gateway - i.e paypal - and send them the winnings? - or does it automatically transfer the winnings to them?
i.e if they bet £50 - and they win with a 4/1 - would my paypal automatically send them the £250? - or do I have to do it myself?
Webs007
Andreas
02-20-2006, 09:20 AM
This is all about virtual money (vCash, or uCash/eBux), not real money ...
Webs007
02-20-2006, 09:26 AM
This is all about virtual money (vCash, or uCash/eBux), not real money ...
Though you have in your statement:
"option to use uCash, eBux or any other cash/points-system (via Plugins)"
Can we not use a paypal plugin?
Andreas
02-20-2006, 09:39 AM
Well, if you create a cash-system that uses PayPal - why not.
Webs007
02-20-2006, 09:48 AM
Well that's fairly obvious to be honest, but I don't have the skill set, so there's nothing out there at present that you know of I take it?
Webs007
RGSMDNR
02-20-2006, 11:46 AM
i need some help!!
im having an issue with vbookie, i made a test bet, had some members bet on it, and when i settled all bets.. I got all the winnings... that shouldnt be.. should it?
trackpads
02-20-2006, 03:56 PM
Andreas! Thank you again for the update!
In the next version can you set the Max Bet as a standard option? I would really appreciate it.
Thanks again for all the work!
Stubager
02-20-2006, 05:13 PM
Well.. Look at this. I might have at little problem... Can you help me?
$vbphrase[anon] won 769 on Janica Kostelic for Super G
Andreas
02-20-2006, 05:15 PM
Imagine it to read Anonymous won 769 on Janica Kostelic for Super G ;)
Will be fixed in the next release, but it's not worth to update now just for a phrase.
Stubager
02-20-2006, 05:16 PM
Imagine it to read Anonymous won 769 on Janica Kostelic for Super G ;)
Will be fixed in the next release, but it's not worth to update now just for a phrase.
Okay. When is the next release?
Great hack by the way :)
Andreas
02-20-2006, 05:21 PM
When new major bugs are discovered.
Otherwise this is the final & last release.
Stubager
02-20-2006, 05:25 PM
Can you explain how to remove the bug that I discovered? It is very important for me to get rid of because almost all my users is marked as anonymous. Or can I remove the ability to be anonymous?
Andreas
02-20-2006, 05:32 PM
Fix:
vbookie.php
'<i>$vbphrase[anon]</i>'
to
"<i>$vbphrase[anon]</i>"
Stubager
02-20-2006, 05:40 PM
Thanks!
bashy
02-20-2006, 07:13 PM
Hi
I am at a loss... I have updated and did the edits that need to be done a little while back so that i can use my ebux for the bookies, i have just tried this and it didnt work...
I aint sure what to do as i am a complete coder illiterate
Please can some one help on this 1?
NoRespect
02-20-2006, 07:26 PM
Fix:
vbookie.php
'<i>$vbphrase[anon]</i>'
to
"<a>$vbphrase[anon]</i>"
That added some funky HTML roll-over effects.
I used:
$user = "$vbphrase[anon]</i>";
...to fix it.
Andreas
02-20-2006, 07:32 PM
Typo alert ;)
Edited original post
Stubager
02-20-2006, 08:27 PM
Hi, it's me again. I just want to know how to reset points back to 500 again.
RGSMDNR
02-20-2006, 09:11 PM
i need some help!!
im having an issue with vbookie, i made a test bet, had some members bet on it, and when i settled all bets.. I got all the winnings... that shouldnt be.. should it?
this is the 4th time ive posted this, could i get some help please?
NoRespect
02-20-2006, 09:13 PM
this is the 4th time ive posted this, could i get some help please?
Upgrade to the latest release.
JBMoney
02-20-2006, 10:52 PM
So... what specifically do I need to do to upgrade from vBookie v1.0.5 to v1.0.7?
cdorka
02-21-2006, 11:47 AM
this is the 4th time ive posted this, could i get some help please?
i am having this same problem,
I just upgraded to this new version last week, and over the weekend, the bets I created, all the winnings went directly to me.
anyone have the fix?
VerkroostJ
02-21-2006, 12:05 PM
A rather basic question but important nevertheless. Where should the option be to create a new event for users to bet on. I have installed it, changed all the user and forum premissions so admins should be able to post new events, but when logged in I don't see any such option.
cdorka
02-21-2006, 12:31 PM
A rather basic question but important nevertheless. Where should the option be to create a new event for users to bet on. I have installed it, changed all the user and forum premissions so admins should be able to post new events, but when logged in I don't see any such option.
create newthread page, right below the checkbox to create a poll, there should be a vbookie check box to create a vbookie event.
cdorka
02-21-2006, 08:09 PM
this is the 4th time ive posted this, could i get some help please?
i had the same prob
i didnt see an email about this problem and fix with version 107
1.0.6 was new version
1.0.7 released shortly after
redownload the files and upload them. you should be good to go.
mmh I have the following problem. I setup my permissions in Usergroups / Usergroup Manager e.g. for admin all to yes then I clicked on save and all vBookie permissions are reset back to no.
Any idea what I am doing wrong?
Andreas
02-22-2006, 08:12 AM
You most likely didn't follow the installation instructions correctly
You most likely didn't follow the installation instructions correctly
I thought I did but I think I made a little mess coz I had previous files installed after I reupload everything it works fine, now. :)
Andreas
02-22-2006, 08:27 AM
I have to apology - you most likely did nothing wrong.
Call admincp/index.php?do=buildbitfields
This will take care of teh problem
VerkroostJ
02-22-2006, 09:33 AM
Hi, it's me again. I just want to know how to reset points back to 500 again.
Can I please have the answer to this as well. I would like to be able to rest the cash back at the beginning of each month.
Cheers
virtualraceday
02-23-2006, 05:50 AM
I have to apology - you most likely did nothing wrong.
Call admincp/index.php?do=buildbitfields
This will take care of teh problem
Hi Andreas,
I was just about to post about this problem, thanks so much for the advice......
And thankyou so much for the Mod!!!
dxguru
02-23-2006, 07:41 AM
A quick question ...
If I upgrade from 1.0.5 build 6 to 1.0.7, will there be any effect of my current unsettled events?
Would an alternative be to wait for all events to be settled and then upgrade?
djwins
02-23-2006, 07:46 AM
Is there any way to retain my users old vCash from before the 3.5 upgrade? I haven't updated vBookie yet, so I'm sure it is still in the database.
Yeah, any info for people who have this already in their database?
Any upgrade path for people using the pre-3.5vB version?
VerkroostJ
02-23-2006, 07:59 AM
Thanks for mod; it's very nice.
However, there is a fundamental problem with the odds. When you enter the normal odds format, e.g. 2/1 the odds are also displayed in decimal format, e.g. 2.0.
The problem is that the coversion is not correct. 2/1 is 3.0 in decimal odds, not 2.0 as it currently displays. The conversion formula is divide and add one.
Decimal odds reflect your total payback based on a bet of 1 unit, so if you were to bet £1 at decimal odds of 3.0, if your bet won you would receive £3 back; effectively £2 in winnings and your £1 stake.
Normal odds don't take into account the stake returned, so 2/1 means for every 1 unit bet you will receive 2 units in winnings. However, you will also receive your stake back. Thus, if you were to bet £1 at odds of 2/1, if you bet won you would receive £2 in winnings and your £1 stake; £3 total
RGSMDNR
02-23-2006, 12:30 PM
i had the same prob
i didnt see an email about this problem and fix with version 107
1.0.6 was new version
1.0.7 released shortly after
redownload the files and upload them. you should be good to go.
i have tried that.. didnt work.
virtualraceday
02-23-2006, 10:16 PM
Thanks for mod; it's very nice.
However, there is a fundamental problem with the odds. When you enter the normal odds format, e.g. 2/1 the odds are also displayed in decimal format, e.g. 2.0.
The problem is that the coversion is not correct. 2/1 is 3.0 in decimal odds, not 2.0 as it currently displays. The conversion formula is divide and add one.
Decimal odds reflect your total payback based on a bet of 1 unit, so if you were to bet ?1 at decimal odds of 3.0, if your bet won you would receive ?3 back; effectively ?2 in winnings and your ?1 stake.
Normal odds don't take into account the stake returned, so 2/1 means for every 1 unit bet you will receive 2 units in winnings. However, you will also receive your stake back. Thus, if you were to bet ?1 at odds of 2/1, if you bet won you would receive ?2 in winnings and your ?1 stake; ?3 total
This is correct.........I hope it will be an easy fix :) the payout amounts don't change, the display of the decimal odds just needs to have a "+ 1". Maybe someone who's handy in php can find where this bit of code is and show us how to do it.
An unrelated question, if I want to use vCash, where can I manually add funds to users accounts? Let's say I am running a weekly comp, and I want to reset everyone to 1000 each week for example....
Andreas
02-23-2006, 10:28 PM
2/1 is 2.0.
For every 1 $ placed you win 2 $ + you get your stake back, so that's 3 $ in total.
virtualraceday
02-23-2006, 11:01 PM
2/1 is 2.0.
For every 1 $ placed you win 2 $ + you get your stake back, so that's 3 $ in total.
Hey Andreas,
In sports betting, all decimal pricing includes the "initial stake".
With fraction odds, you get to see "2 parts" in the X/Y format:
5/1
X = 5 = profit
Y = 1 = Initial stake
Total = 6
Because in decimal pricing, there is only "1 part", it includes both X + Y so that the user knows if they bet 1 unit, they will get back X + Y total
I hope this makes sense, I've been gambling too long so this part I am definitely sure of :)
I just want to say thanks so much for this! I'm busy setting up a forum with it in use :D
p.s. I just found the Wiki entry for it, I hope it helps to confirm:
http://en.wikipedia.org/wiki/Fixed-odds_gambling
Andreas
02-23-2006, 11:24 PM
Well, i'ts just a matter of how to skin the cat ;)
Doesn't affect payouts so it isn't a big deal, is it?
* Andreas doesn't have any clue of betting nor did I ever use this Hack, so sorry for my lack of knowlegde.
virtualraceday
02-24-2006, 12:01 AM
Well, i'ts just a matter of how to skin the cat ;)
Doesn't affect payouts so it isn't a big deal, is it?
* Andreas doesn't have any clue of betting nor did I ever use this Hack, so sorry for my lack of knowlegde.
Hey it's a good thing you don't bet...it's no good losing money. Which is why this mod is great because it's all virtual :rolleyes:
Do you know where I can change the code to add the 1? My forum is going to be for gamblers and they are definitely going to complain lol...
Andreas
02-24-2006, 12:11 AM
** No guarantees **
In Plugin vBookie: Show Events in Showthread
$decimal_odds = (float)$outcomes[$i]['odds_against']/(float)$outcomes[$i]['odds_for'];
$outcome['odds_decimal'] = sprintf("%0.2f", ((float)$outcome['odds_against']/(float)$outcome['odds_for']));
In vbookie.php (each bit might appear multiple times)
$decimal_odds = (float)$outcomes[$i]['odds_against']/(float)$outcomes[$i]['odds_for'];
$bet['odds_decimal'] = sprintf("%0.2f", ((float)$bet['bet_odds_against']/(float)$bet['bet_odds_for']));
$outcomes[$i]['odds_decimal'] = sprintf("%0.2f", ((float)$outcomes[$i]['odds_against']/(float)$outcomes[$i]['odds_for']));
Add 1 to all those bits.
virtualraceday
02-24-2006, 01:54 AM
** No guarantees **
In Plugin vBookie: Show Events in Showthread
$decimal_odds = (float)$outcomes[$i]['odds_against']/(float)$outcomes[$i]['odds_for'];
$outcome['odds_decimal'] = sprintf("%0.2f", ((float)$outcome['odds_against']/(float)$outcome['odds_for']));
In vbookie.php (each bit might appear multiple times)
$decimal_odds = (float)$outcomes[$i]['odds_against']/(float)$outcomes[$i]['odds_for'];
$bet['odds_decimal'] = sprintf("%0.2f", ((float)$bet['bet_odds_against']/(float)$bet['bet_odds_for']));
$outcomes[$i]['odds_decimal'] = sprintf("%0.2f", ((float)$outcomes[$i]['odds_against']/(float)$outcomes[$i]['odds_for']));
Add 1 to all those bits.
It worked!!! :)
Thanks so much for your time..... I really appreciate it!
dxguru
02-24-2006, 05:11 AM
A quick question ...
If I upgrade from 1.0.5 build 6 to 1.0.7, will there be any effect of my current unsettled events?
Would an alternative be to wait for all events to be settled and then upgrade?
Anybody, please?
Don't worry ... upgraded anyway.
VerkroostJ
02-24-2006, 09:59 AM
What's the code for adding 1 to the above bits to sort out the odds? I'm afraid I don't really know much in the way of coding.
Cheers.
dxguru
02-24-2006, 10:07 AM
What's the code for adding 1 to the above bits to sort out the odds? I'm afraid I don't really know much in the way of coding.
Cheers.
Place an open bracket '(' after the '=' and ')+1' before the ';' on the end of the line.
dxguru
02-24-2006, 10:09 AM
After upgrading to 1.0.7 I now get repeated ...
Warning: Division by zero in /showthread.php(1909) : eval()'d code on line 78
... when viewing a closed vBookie event thread, and also on new event threads.
Looks like it appears once per outcome.
Please can someone help me this time :)
argash
02-24-2006, 10:32 AM
im lazy and didnt feel like searching through all 643 posts (though I did search the thread and couldnt find anything) but has parimutual or real time odds been implemented or would I need to hack it myself?
Andreas
02-24-2006, 02:18 PM
@dxguru
I don't think I changed anything to the showthread plugins.
What's on line 78?
@argash
I don't even know what this is. So I guess it's not.
dxguru
02-24-2006, 02:37 PM
@dxguru
I don't think I changed anything to the showthread plugins.
What's on line 78?
It actually turned out to be in the Show Events in Showthread plugin
Original code
$outcome['odds_decimal'] = (sprintf("%0.2f", ((float)$outcome['odds_against']/(float)$outcome['odds_for'])))+1;
although I added the (...)+1
Changed this to
if ((float)$outcome['odds_for'] > 0) {
$outcome['odds_decimal'] = (sprintf("%0.2f", ((float)$outcome['odds_against']/(float)$outcome['odds_for'])))+1;
} else {
$outcome['odds_decimal'] = 0;
}
and it seems to be working :)
Andreas
02-24-2006, 02:55 PM
Erm ... the odds should be always > 0.
Doesn't make sense to have an outcome that could never win.
dxguru
02-24-2006, 03:41 PM
I've seen odds of 1:2 on the betting sites before .. ie a $1 winning bet would return you $1.50 including your original bet (that's right isn't it?)
Andreas
02-24-2006, 03:47 PM
Yes, that's correct IMHO.
Though as said before, I don't have the slightest clue of gambling :D
robdawg
02-24-2006, 04:23 PM
anyone having trouble with the permission not saving properly?
vBulletin Version: 3.5.4
Andreas
02-24-2006, 04:37 PM
Yes, that's a bug in the installation routine.
Just import the XML again or call admincp/index.php?do=buildbitfields
robdawg
02-24-2006, 04:42 PM
yeah as soon as I posted that and dug through the forum a little I found that bit, but thanks for the fast response.
RTFM
Thanks. :)
robdawg
02-24-2006, 05:24 PM
Just wondering if you will ever have something with las vegas betting lines where you can change the lines and people bet different lines when they change.
Or a parley system?
Thanks.
argash
02-25-2006, 05:02 AM
@dxguru
I don't think I changed anything to the showthread plugins.
What's on line 78?
@argash
I don't even know what this is. So I guess it's not.
https://vborg.vbsupport.ru/showpost.php?p=755288&postcount=44
That post shows the basic forum of how it would work. Theres a few posts prior to it that go into a bit more detail.
dxguru
02-25-2006, 06:29 AM
Yes, that's correct IMHO.
Though as said before, I don't have the slightest clue of gambling :D
For someone who admits to not having "the slightest clue of gambling" you have done an awesome job Andreas.
Thanks :)
PaceAdvantage
02-25-2006, 09:10 AM
Is there anyway to have the bets settle at the FINAL odds?
Currently, a user is paid at whatever the odds were at the time of the bet. I want to be able to go in after the event is over and edit the odds to reflect what the odds actually were at the END of the event, and have user bets paid off at the FINAL odds, which means every winner should be paid at the final odds, not the odds at the time the bet was made.
This is akin to pari-mutuel wagering ala Horse Racing.
Any idea how to alter the vbookie.php in order to payoff on whatever the FINAL odds were?
Thanks in advance.
dxguru
02-25-2006, 10:54 AM
Is there anyway to have the bets settle at the FINAL odds?
Currently, a user is paid at whatever the odds were at the time of the bet. I want to be able to go in after the event is over and edit the odds to reflect what the odds actually were at the END of the event, and have user bets paid off at the FINAL odds, which means every winner should be paid at the final odds, not the odds at the time the bet was made.
This is akin to pari-mutuel wagering ala Horse Racing.
Any idea how to alter the vbookie.php in order to payoff on whatever the FINAL odds were?
Thanks in advance.
IF this was to be implemented it would definately have to be optional. We don't have this kind of betting that I am aware of and cannot really understand why anyone would want to place a bet on something when they have no control over what odds they are betting on.
Why would you bat on something at odds of 5:1 when you know that after the event you may only be paid 1:1 (or worse)?
bashy
02-25-2006, 11:12 AM
I always thought that once you made a bet at X odds then no matter
how the odds change you will always be paid at X odds....??
Andreas
02-25-2006, 12:59 PM
The users will always be paid with the odds they bet on, no matter if you change the odds or not.
PaceAdvantage
02-25-2006, 03:15 PM
Yes I know this, but I want my users to be able to bet on a horse race using virtual cash....when you bet on horseracing in America, you are never really sure what the final odds will be until betting is closed. There can be major swings if you bet early. I want to simulate the pari-mutuel style of betting in order to run a contest.
My plan was to put up a morning line, have people bet, then when the race is closed, change the odds to the actual OFF odds of the race in question, and then people will be paid in virtual cash the same exact amount of money had they bet on the race in real life.
Aren't there a few lines of code that can be added or changed to vBookie.php to have it calculate payouts based on the final odds instead of what the odds were when the person placed the bet?
argash
02-25-2006, 06:13 PM
Even in pari mutuel style of betting your still paid at the odds you bet on at the time
PaceAdvantage
02-25-2006, 06:22 PM
Not anywhere in the U.S. If I bet on a horse race at 10 minutes to post, and the odds on my horse are 5-1, and when the race is finished and the betting is closed, the final odds are 3-1, I get paid at 3-1.....that's the way it has always been.....
Can anyone help me here? [PRIOR OFFER RECINDED]
With my very limited knowledge of SQL and php coding, this doesn't seem like it should be that difficult a change....
FROGGYJ
02-25-2006, 08:47 PM
Well this seems strange. I uploaded the files, imported the plugin, changed the permissions to the usergroups, but I only made the template change to newthread because I use ebux and don't need the postbit changes and my nav bar is cutom so don't really need that either......but yet when I make a new thread I can't get vbookie to show at the bottom so I can make a vbookie event. Any ideas?
Andreas
02-25-2006, 08:56 PM
Maybe https://vborg.vbsupport.ru/showpost.php?p=909231&postcount=651
?
FROGGYJ
02-25-2006, 09:07 PM
weird I tried that before and nothing....but this time I re-imported it and then rebuil the bitfields and voila. Thanks.
FROGGYJ
02-25-2006, 09:14 PM
oh I found what the problem was. I have a forum for mods only, and I cannot post a vbookie event in there.....however if I try to do it in any public forum it works fine.
FROGGYJ
02-25-2006, 09:19 PM
hey andreas how can I make a link to vbookie.php in my quick links menu options?
I see in the instructions
In Template navbar
FIND
--------------------------------------------------
<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
--------------------------------------------------
BELOW that ADD
--------------------------------------------------
<td class="vbmenu_control"><a href="vbookie.php?$session[sessionurl]">$vbphrase[vbookie]</a></td>
is that the answer? cause I don't have that line in my navbar.
Andreas
02-25-2006, 09:23 PM
You do have, it's just slightly different ... search for calendar.php
PaceAdvantage
02-27-2006, 10:59 PM
OK, I was able to find someone who altered the script for me to do what I required.....so cash offer now off the table....
trigon
03-01-2006, 03:24 AM
OK, I was able to find someone who altered the script for me to do what I required.....so cash offer now off the table....
@Andreas, kann man das auch mit einer Art "Belohnungssystem f?r Messages/Topics" erweitern? Dass zb. jeder, der auf ein best. Thema antwortet, x Punkte/dollars bekommt?
sorry but my German is better then my english. :)
grains
03-02-2006, 12:08 AM
Everytime I update the forum permissions and then go back and view the permissions I set, the changes dont show up... :(
I dont want to have to do this by hand in the DB...
grains
03-02-2006, 12:11 AM
hell...i wouldnt even know how...*sigh*....
please help...
grains
03-02-2006, 12:15 AM
figured it out...read the thread...lol
psybernaut
03-02-2006, 08:38 AM
How hard would it be to add an option to use the bookie's money when settling bets? ie. when you lay a bet the bookie receives the money, and then when you pay out the bets the winnings come out of the bookie's cash.
Some of my users have been taking advantage of a 'loophole' where they make their own events with big odds, bet on them themselves, then collect heaps of winnings. The money appears out of nowhere, so it's easily exploited, and means the site admin needs to keep a close eye on vbookie events. I think it would be more realistic if the bookie was the one who had to pay the winnings :)
NoRespect
03-02-2006, 07:14 PM
Andreas,
Is there a way I can disable the anon bet button?
Thanks!
NitroSimSev
03-02-2006, 10:39 PM
Andreas how can I querry the DB to pull the top 10 people who have the most vcash or ebux?
Oddjob
03-04-2006, 04:12 AM
I have a problem.
My bookie is not allowing people to bet, one a staff member and the other a regular member with no permissions and no other usergroup.
I made a test account and it allowed me to bet.
I dont know whats wrong, all of my settings appear correct.
Oddjob
03-04-2006, 03:54 PM
Any help????????
Steve The Plank
03-04-2006, 07:48 PM
I have a sort've similar problem. My staff and admins can bet, but regular users cannot. Any ideas?
Zowners
03-05-2006, 02:29 AM
i have a small problem :(. I just installed it, BUT when i got to USERGROUP --> USERGROUP MANAGER, and i try to change the vBookie permissions, it always resets itself to everything "no." so even if i check something as yes, when i click "ok" and then return again to that page, it will still be no
ANYONE KNOW WHATS HAPPENING?
Steve The Plank
03-05-2006, 10:49 AM
i have a small problem :(. I just installed it, BUT when i got to USERGROUP --> USERGROUP MANAGER, and i try to change the vBookie permissions, it always resets itself to everything "no." so even if i check something as yes, when i click "ok" and then return again to that page, it will still be no
ANYONE KNOW WHATS HAPPENING?
That happened to me until I uploaded the XML stuff again.
Can someone help with my problem, two posts up?
Oddjob
03-05-2006, 03:20 PM
I have a problem.
My bookie is not allowing people to bet, one a staff member and the other a regular member with no permissions and no other usergroup.
I made a test account and it allowed me to bet.
I dont know whats wrong, all of my settings appear correct.
still looking for help on this........
bamaster
03-05-2006, 05:35 PM
For some reason... and I'm sorry for asking a simple question... but I am unable to locate where to PAY OUT the event.
Please advise.
ON EDIT:
Nevermind. I had the "Accept Bets Until" time set in the future. Once I changed it to a time in the past, it shows up.
:goober:
Hornstar
03-05-2006, 05:43 PM
Do most people allow members to post events or would you keep that more for the staff to do?
And what are the most common things to bet on apart from sport?
Gunshot
03-05-2006, 08:30 PM
I think I got it, but try at your own risk.
Part 1
AdminCP --> Languages & Phrases --> Phrase Manager --> Add New Phrase
Product: vBookie
Varname: vbookie_max_bet_exceeded
Text: Whoops! Looks like you bet more than 100 bucks. Try again but make sure you bet no more than 100 bucks.
Part 2
In vbookie.php
Find this
if ($total_stake > vbookie_get_user_cash())
{
eval(standard_error(fetch_error('vbookie_not_enoug h_cash')));
}
After the above, add the following
if ($total_stake > 100)
{
eval(standard_error(fetch_error('vbookie_max_bet_e xceeded')));
}
Save vbookie.php
That should do it!
this works really well
just make sure you add it to "Front-end error messages"
VBUsers
03-06-2006, 12:19 AM
i have a vbookie event that is no longer going but shows open
Wild Card
Thread | Info FOOTBALL OPEN 01-01-2006 01-07-2006 01-07-2006
i cant click the thread or info. how do i delete it?
Oddjob
03-06-2006, 02:33 AM
still seeking help.........
NoRespect
03-06-2006, 07:39 AM
contribution:
for those who wish to limit the maxi bet amount per item:
in vbookie.php search for:
foreach ($vbulletin->GPC['option'] AS $option_id => $stake)
{
if ($stake > 0)
{
$db->query_write("INSERT INTO " . TABLE_PREFIX . "vbookie_bets_placed (option_id, item_id, userid, bet_amount_placed, bet_odds_against, bet_odds_for, bet_private) VALUES ($option_id, $item_id, " . $vbulletin->userinfo['userid'] . ", $stake, " . $odds_against["$option_id"] . ", " . $odds_for["$option_id"] . ", '$private')");
$db->query_write("UPDATE " . TABLE_PREFIX . "vbookie_item_options SET option_n_bets_placed=option_n_bets_placed+1, option_amount_staked=option_amount_staked+$stake WHERE option_id=$option_id");
}
}
And change it for this code:
foreach ($vbulletin->GPC['option'] AS $option_id => $stake)
{
if ($stake > 0)
{
if ($stake > 10000)
{
$stake = 10000;
}
$db->query_write("INSERT INTO " . TABLE_PREFIX . "vbookie_bets_placed (option_id, item_id, userid, bet_amount_placed, bet_odds_against, bet_odds_for, bet_private) VALUES ($option_id, $item_id, " . $vbulletin->userinfo['userid'] . ", $stake, " . $odds_against["$option_id"] . ", " . $odds_for["$option_id"] . ", '$private')");
$db->query_write("UPDATE " . TABLE_PREFIX . "vbookie_item_options SET option_n_bets_placed=option_n_bets_placed+1, option_amount_staked=option_amount_staked+$stake WHERE option_id=$option_id");
}
}
Where you can change 10000 for desired value for max bet amount :)
That doesn't work right. Because if someone bets 10000 it changes their bet to 5000, and takes the rest of their money. :(
Oddjob
03-06-2006, 03:15 PM
I have a problem.
My bookie is not allowing people to bet, one a staff member and the other a regular member with no permissions and no other usergroup.
I made a test account and it allowed me to bet.
I dont know whats wrong, all of my settings appear correct.
need some help dealing with this.....
DS MrSinister
03-06-2006, 03:42 PM
Ok oddjob i just figure it out..
what you need to do is goto
Admincp --> Forums & Moderators --> Forum Permissions --> check each forum & usergroup which you aloud to hve betting in..
Oddjob
03-06-2006, 04:38 PM
Ok oddjob i just figure it out..
what you need to do is goto
Admincp --> Forums & Moderators --> Forum Permissions --> check each forum & usergroup which you aloud to hve betting in..
I have all that setup correctly.
Its just letting some people bet and some not bet.
DS MrSinister
03-06-2006, 04:51 PM
is it from the same usergroup that people are not aloud to bet or its a random?
if its a random thing maybe tell them to delete the cookie from your site..
Oddjob
03-06-2006, 04:52 PM
is it from the same usergroup that people are not aloud to bet or its a random?
if its a random thing maybe tell them to delete the cookie from your site..
I know of 6 members that cannot place bets, all from different usergroups. Admin, a usergroup named 'site staff' and the registered member group.
DS MrSinister
03-06-2006, 05:04 PM
I just register on your site.. And i cant.. try this should do the trick.
Login your admincp..
Admincp --> Forums & Moderators --> Forum Permissions --> Betting Forum
I see you have 2 sub forums..
Check each group Permissions.. vBookie Event Permissions and see if rthe right options are check.
this is what i had to do to fix my problem...
Oddjob
03-06-2006, 05:49 PM
I just register on your site.. And i cant.. try this should do the trick.
Login your admincp..
Admincp --> Forums & Moderators --> Forum Permissions --> Betting Forum
I see you have 2 sub forums..
Check each group Permissions.. vBookie Event Permissions and see if rthe right options are check.
this is what i had to do to fix my problem...
Nope...all my forum permissions are set correctly for every forum.....
DraculaVN
03-07-2006, 03:01 AM
How point of ucash 2.0 use in vbookies ?
Oddjob
03-07-2006, 03:14 AM
ok i uninstalled then re-installed.....it now appears to be working, new problem though....
i have it set to use ebux but its not showing up my point totals when i try to bet, it only started me out with 500. :ermm:
Oddjob
03-07-2006, 03:38 PM
ok i uninstalled then re-installed.....it now appears to be working, new problem though....
i have it set to use ebux but its not showing up my point totals when i try to bet, it only started me out with 500. :ermm:
any help??????????
Krali
03-08-2006, 10:18 AM
Is it able to use this at first without any cash oder ebux and so on?
Only for users to vote for events, like winners oder 1,2,3 of a formula 1 event?
Nice greetings,
Klaus
Tracer Gun Kata
03-08-2006, 12:47 PM
Anyone managed to create a CMPS Module for vBookie which outputs the latest statistics?
VBUsers
03-10-2006, 01:51 AM
i have a vbookie event that is no longer going but shows open
Wild Card
Thread | Info FOOTBALL OPEN 01-01-2006 01-07-2006 01-07-2006
i cant click the thread or info. how do i delete it?
any one know how i can remove this?
xjussix
03-10-2006, 01:54 PM
I'm having the same problem as Oddjob's having. I upgraded to 1.0.7 because I needed the eBux support but now I can't bet on any events. I uninstalled, reinstalled, rebuilt bitflags but it still says "You may not bet on this event".
Edit: When I choose vCash from the vBookie settings, I can bet on events but as soon as I change it to eBux, I can't.
psybernaut
03-10-2006, 07:42 PM
I'm having the same problem as Oddjob's having. I upgraded to 1.0.7 because I needed the eBux support but now I can't bet on any events. I uninstalled, reinstalled, rebuilt bitflags but it still says "You may not bet on this event".
Edit: When I choose vCash from the vBookie settings, I can bet on events but as soon as I change it to eBux, I can't.
If you're running the latest eBux mod (now called vbbux/vbplaza) you need to install the vbookie hooks that come with it, and change your vbookie setting to use the custom cash type.
Oddjob
03-10-2006, 08:15 PM
I'm having the same problem as Oddjob's having. I upgraded to 1.0.7 because I needed the eBux support but now I can't bet on any events. I uninstalled, reinstalled, rebuilt bitflags but it still says "You may not bet on this event".
Edit: When I choose vCash from the vBookie settings, I can bet on events but as soon as I change it to eBux, I can't.
My problem was solved by uninstalling then reinstalling............
Stone Cold 3:16
03-11-2006, 01:23 AM
I edited the tempeleatses, but i still dont have a option to post a vbookie? Im on 3.5.4
VerkroostJ
03-12-2006, 08:07 AM
Hello,
Is there a way to reset everyones vcash balance to 500, without having to reinstall the whole mod?
Cheers.
MorrisMcD
03-12-2006, 01:32 PM
My vbookie events are defaulting to western time zone when I need them to default to something else... eastern....
My board is set to eastern.. Is there something in vbookie hardcoding it to default to western???
Bluestrike2
03-13-2006, 11:18 PM
Andreas,
On my board for some awful reason whenever I check all three boxes for my admins, it resets it when I update the settings.
Thus I am unable to post. I've searched the thread, and haven't noticed anything similar. Do you have any ideas?
Railen
03-14-2006, 02:32 PM
Andreas,
On my board for some awful reason whenever I check all three boxes for my admins, it resets it when I update the settings.
Thus I am unable to post. I've searched the thread, and haven't noticed anything similar. Do you have any ideas?
https://vborg.vbsupport.ru/showthread.php?t=109293
Found using a search for:
vbookie permissions
BeaLzeBuB
03-14-2006, 03:35 PM
i did the installation as written in readme, but i can't find the settings shown in the screenshots. when i change vBookie settings to "yes" under the usergroup permissions, i cant save these. when i rechechk, they're shown as "no".
also is there a tutorial about how to use vbookie?
Railen
03-14-2006, 04:44 PM
when i change vBookie settings to "yes" under the usergroup permissions, i cant save these. when i rechechk, they're shown as "no".
I can't believe this question. I answered it in the post IMMEDIATELY before yours.
Adam21
03-16-2006, 01:12 AM
It would be great if someone could figure this out...
Can the winnings or losses from each event posted be deducted or added acordingly to the event outome,from the member's vCash who posted that event.anyone???;)
psybernaut
03-16-2006, 02:19 AM
It would be great if someone could figure this out...
Can the winnings or losses from each event posted be deducted or added acordingly to the event outome,from the member's vCash who posted that event.anyone???;)
I modified vbookie to do this with vbBux, it should be fairly easy to do the same thing for vCash. I haven't posted the code because it's a bit of a hack and I was hoping Andreas would add it as a feature for the next update. But he hasn't posted here for ages... does anyone know if he's still supporting this mod?
Anyway, if you're happy to modify php files I can post the code for you.
Adam21
03-16-2006, 03:22 AM
I modified vbookie to do this with vbBux, it should be fairly easy to do the same thing for vCash. I haven't posted the code because it's a bit of a hack and I was hoping Andreas would add it as a feature for the next update. But he hasn't posted here for ages... does anyone know if he's still supporting this mod?
Anyway, if you're happy to modify php files I can post the code for you.
great!please do share that piece of of code.thanks alot!:banana:
EasyTarget
03-16-2006, 03:29 AM
does anyone know if he's still supporting this mod?according the the information at the top of the page this hack isn't supported, so I'd guess that's a no.
psybernaut
03-16-2006, 07:09 AM
Here's the mod to make money bet on vbookie events go to the bookie, and to have any winnings paid out from the bookies money. If the bookie can't afford to pay the winnings, their cash is set to zero. If you're using vbbux, money will be taken from the bank if possible.
Backup your files before making these changes! I've only tested this on my own site (3.5.4), so proceed with caution!
First, open includes/functions_vbookie.php and find:
?>
Above, add:
// psybernaut mod
function vbookie_take_bookie_cash($userid, $amount)
{
global $vbulletin;
$bookie = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid=$userid");
switch ($vbulletin->options['vbookiecash'])
{
case 'vcash':
if($amount > $bookie['vbookie_cash'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=vbookie_cash-$amount WHERE userid=$userid");
}
break;
case 'ucash':
if($amount > $bookie['ucash'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=ucash-$amount WHERE userid=$userid");
}
break;
case 'ebux':
if($amount > $bookie['ebux'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ebux=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ebux=ebux-$amount WHERE userid=$userid");
}
break;
case 'custom':
($hook = vBulletinHook::fetch_hook('vbookie_take_bookie_cas h')) ? eval($hook) : false;
}
}
Next, open vbookie.php and find:
// actually pay the money ;)
vbookie_give_user_cash($bet['userid'], $amount_to_pay);
Below, add:
// psybernaut's mod
vbookie_take_bookie_cash($threadinfo['postuserid'], $amount_to_pay);
Then find:
vbookie_take_user_cash($total_stake);
Below, add:
// psybernaut's mod
vbookie_give_user_cash($threadinfo['postuserid'], $total_stake);
That's it! ...unless you're using vbBux (by setting vbookie to a custom point system and using CMX's hooks), then you need a couple more mods...
Open includes/xml/hooks_bookiehack.xml and find:
<hook>vbookie_take_user_cash</hook>
Below, add:
<hook>vbookie_take_bookie_cash</hook>
Last of all, you need to add a new plugin to hook into vbBux... Go to Plugin System->Add New Plugin and add a plugin with the following details:
Product: vBulletin
Hook Location: vbookie_take_bookie_cash
Title: vBookie With vbPlaza - Take Bookie Cash
Plugin PHP Code:
// take the bookies money
$bookie = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid=$userid");
if($amount > $bookie['vbbux'])
{
$amount = $amount - $bookie['vbbux'];
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbux=0 WHERE userid=$userid");
if($amount > $bookie['vbbank'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbank=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbank=vbbank-$amount WHERE userid=$userid");
}
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbux=vbbux-$amount WHERE userid=$userid");
}
That should do the trick! Well, it works for me at least... YMMV ;)
I've made another fix for timezones that are not a round integer (we live in a +9.5 timezone and it caused some issues that needed fixing). I'd be interested in putting out a new release with this fixe in it and the above mod included in a tidier form (eg. admin option to turn it on/off etc). Can anyone point me to some info on how to go about taking over responsibility for this mod, that's assuming Andreas is willing to hand it over of course... I'm not looking to step on toes :)
EDIT: Updated the vbbux hook to deduct money from the bookie's bank account if they don't have enough cash on hand.
chairman miaow
03-16-2006, 10:32 AM
Excellent....thanks for this.....when (if) you take this over from Andreas , could you add in a maximum bet feature ?
Catsgot9
03-16-2006, 12:07 PM
will that bookie thing work with vcash too, psybernaut?
I do not know how to install vbux/ucash.. but my vbookie seems to be working with vcash.
I would like to have a promotion, see which bookie can make the most virtual dollars
CatsGot9
Adam21
03-16-2006, 12:10 PM
*edited
Catsgot9
03-16-2006, 12:33 PM
I deleted a thread that had a bet in it.. now the bet stays there inactive. How can I remove this from vbookie?
CatsGot9
Adam21
03-16-2006, 12:37 PM
I deleted a thread that had a bet in it.. now the bet stays there inactive. How can I remove this from vbookie?
CatsGot9
i think maybe this post can help u.:)
https://vborg.vbsupport.ru/showpost.php?p=798592&postcount=250
Adam21
03-16-2006, 03:05 PM
Psybernaut:i tried to settle a test bet,the payout was supposed to be more than what the bookie's vcash have in hand.the result is the bookie have a huge enormous value of vcash instead.any ideas?
Adam21
03-16-2006, 03:06 PM
That's it! ...unless you're using vbBux, then you need a couple more mods...
psybernaut:if i'm using vcash,would i still need to carry those other hacks below as well?
Andreas
03-16-2006, 10:35 PM
that's assuming Andreas is willing to hand it over of course... I'm not looking to step on toes :)
This assumption is wrong. I will not hand over this hack to someone else.
psybernaut
03-16-2006, 11:06 PM
This assumption is wrong. I will not hand over this hack to someone else.
ok... like I said, I'm not looking to step on toes. I'd just like to see this great mod moving forward again :)
geo1 - sorry about that problem, vcash is an unsigned int so it wraps to a large number instead of going negative.
Here's a fix that will set the bookies cash to 0 instead of going negative. NOTE: a bookie can exploit this by putting all their cash in the bank (for vbbux/ebux/ucash) before settling bets, so it's not perfect! This applies to all cash systems, just replace the entire vbookie_take_bookie_cash() function.
In includes/functions_vbookie.php, find:
// psybernaut mod
function vbookie_take_bookie_cash($userid, $amount)
{
global $vbulletin;
switch ($vbulletin->options['vbookiecash'])
{
case 'vcash':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=vbookie_cash-$amount WHERE userid=$userid");
break;
case 'ucash':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=ucash-$amount WHERE userid=$userid");
break;
case 'ebux':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ebux=ebux-$amount WHERE userid=$userid");
break;
case 'custom':
($hook = vBulletinHook::fetch_hook('vbookie_take_bookie_cas h')) ? eval($hook) : false;
}
}
Replace with:
// psybernaut mod
function vbookie_take_bookie_cash($userid, $amount)
{
global $vbulletin;
$bookie = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid=$userid");
switch ($vbulletin->options['vbookiecash'])
{
case 'vcash':
if($amount > $bookie['vbookie_cash'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=vbookie_cash-$amount WHERE userid=$userid");
}
break;
case 'ucash':
if($amount > $bookie['ucash'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=ucash-$amount WHERE userid=$userid");
}
break;
case 'ebux':
if($amount > $bookie['ebux'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ebux=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ebux=ebux-$amount WHERE userid=$userid");
}
break;
case 'custom':
($hook = vBulletinHook::fetch_hook('vbookie_take_bookie_cas h')) ? eval($hook) : false;
}
}
If you implemented the hook for vbBux, edit it (the 'vBookie With vbPlaza - Take Bookie Cash' hook) and replace the php code with this:
// take the bookies money
$bookie = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid=$userid");
if($amount > $bookie['vbbux'])
{
$amount = $amount - $bookie['vbbux'];
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbux=0 WHERE userid=$userid");
if($amount > $bookie['vbbank'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbank=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbank=vbbank-$amount WHERE userid=$userid");
}
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbux=vbbux-$amount WHERE userid=$userid");
}
psybernaut:if i'm using vcash,would i still need to carry those other hacks below as well?
No. You only need that part if you're using vbBux.
I'll update my original post to include these changes, so only make this change if you already made the mod previously and need to fix the 'paying out more that you have' issue.
EDIT: Updated the vbbux hook to deduct money from the bookie's bank account if they don't have enough cash on hand.
Catsgot9
03-16-2006, 11:31 PM
The question is... If I want to use the bookie option so they can go broke... will this mod work with vcash? I do not have any other cash methods installed..
Thanks in advance, Psybernaut!
Catsgot9
psybernaut
03-16-2006, 11:33 PM
The question is... If I want to use the bookie option so they can go broke... will this mod work with vcash? I do not have any other cash methods installed..
Thanks in advance, Psybernaut!
Catsgot9
Yes, this mod works with vCash.
Porky
03-17-2006, 12:59 AM
does this work with 3.54?
psybernaut
03-17-2006, 01:05 AM
does this work with 3.54?
Yes.
Adam21
03-17-2006, 02:42 AM
Thanks psybernaut!i'll correct that once i've reach home...:)
djwins
03-17-2006, 05:13 AM
Is there any way to retain my users old vCash from before the 3.5 upgrade? I haven't updated vBookie yet, so I'm sure it is still in the database.
Yeah, any info for people who have this already in their database?
Any upgrade path for people using the pre-3.5vB version?
Adam21
03-17-2006, 09:23 AM
thanks to psybernaut,i've vbookie events paying out from the vbookies themselves.works great!thanks alot!
Baudman
03-18-2006, 02:38 AM
I just installed this hack and can't get it to except my attempts to change the usergroups permissions. I click on a usergroup and set everything to yes and then save it. It says it saves but then I check to see if its set to yes and they arn't. Has anyone else had this proble? or am I doing something wrong?
Andreas
03-18-2006, 03:05 AM
> Has anyone else had this proble?
Everyone has because the install code is "broken".
Just import the XML again and select override
Baudman
03-18-2006, 03:23 AM
> Has anyone else had this proble?
Everyone has because the install code is "broken".
Just import the XML again and select overridethanks I acually found another thread that said to rebuild the bitfields and it worked. My only other question is how do I delete an event from the event list? I have deleted the original thread but it still shows on the list.
Andreas
03-18-2006, 12:25 PM
Should have been deleted too, though as it has not been deleted ... not possible.
VodkaFish
03-18-2006, 03:43 PM
On the main vbookie page, the dropdown to show different events:
Currently showing * Events. Switch to * Events
If you choose "settled", it brings my forum down. mysql gets a too many connections error. I do have a lot of settled events, but I can't understand why one query would bring it down. Either way, just thought I'd report it. I took the option off of my forums for the meantime. I'm using the latest version of vbookie.
Andreas
03-18-2006, 04:18 PM
Edit vbookie.php and replace
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON thread.vbookie_item_id = item.item_id
with
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = item.threadid)
ALTER TABLE vbookie_items ADD INDEX (item_status);
UPDATE vbookie_items, thread SET vbookie_items.threadid=thread.threadid WHERE thread.vbookie_item_id=vbookie_items.item_id;
Execute these queries and check if it does help.
Freesteyelz
03-18-2006, 11:15 PM
I'm currently testing this mod. I think you've done an awesome job, Andreas. :) Is it possible to add (either in XML or SQL Query) variance in the amount of cash (default 500) by Usergroup upon registration and current registries? This is what I'm thinking:
In XML:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD vbookie_cash BIGINT UNSIGNED DEFAULT '500' AFTER pmunread WHERE usergroupid='x'");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD vbookie_cash BIGINT UNSIGNED DEFAULT '1500' AFTER pmunread WHERE usergroupid='y'");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD vbookie_cash BIGINT UNSIGNED DEFAULT '5000' AFTER pmunread WHERE usergroupid='z'");
And:
$db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=500" WHERE usergroupid='x');
$db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=1500" WHERE usergroupid='y');
$db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=5000" WHERE usergroupid='z');
Where "x", "y" and "z" are the specified UserIDs will be set. I realize that there isn't a "usergroupid" TABLE but I'm not sure of the workaround. :)
------------------------
EDITED: I modified the code bit and this part worked in SQL Query. :) Well, sort of. It only changes curent registered members upon usergroupid definition. New registries still inherit default vcash settings:
UPDATE user SET vbookie_cash='500' WHERE usergroupid='x';
UPDATE user SET vbookie_cash='1000' WHERE usergroupid='y';
UPDATE user SET vbookie_cash='5000' WHERE usergroupid='z';
For ALTER TABLE in SQL Query I'm trying to figure out this:
ALTER TABLE vbtest_user ADD vbookie_cash BIGINT UNSIGNED DEFAULT '5000' WHERE usergroupid='z' AFTER pmunread;
I'm getting a syntax error at "WHERE usergroupid='z'". Then again, do I need this portion for new and current registries to work properly?
------------------------
Edited Again: I could set SQL Query for userids such as:
UPDATE vbtest_user SET vbookie_cash='5000' WHERE userid='z';
Although I'd prefer doing it mass in XML or SQL Query. If it's not possible, by setting individual variance in SQL Query will it create a DB problem?
majoreyeswater
03-19-2006, 11:35 AM
Love this mod, adds such value to my board.
Wondering if might be able to get a bit of help.
A member created an event in vBookie, then my some mistake, they deleted the thread before they had closed the event.
The event is now still listed in vBookie, and can't be closed or deleted.
Any help appreciated.
Zowners
03-21-2006, 09:10 PM
^yah i have the same problem :(
hitmanuk2k
03-23-2006, 06:47 PM
Having some trouble. When updating Usergroup settings, it is not saving the vBookie settings. As in, when I select "yes" can post events, it does not change to this, and stays on "no" when the page reloads.
Andreas
03-23-2006, 07:07 PM
As posted half a ton of times already
Import the XML again or rebuild bitfields.
Daniel Thomas
03-25-2006, 03:13 AM
deleted
psybernaut
03-25-2006, 03:19 AM
Hey Andreas, how hard would it be to fix this permissions problem? I haven't looked at the code yet, but if you like I'd be happy look into it and send you an update.
Raven Michaels
03-26-2006, 06:41 AM
For some reason...whenever I edit the admin permissions to be able to add vBookie stuff...I save and then when I look at it again...its back to no...
...anyone one else have that prob?
chairman miaow
03-26-2006, 08:18 PM
Good grief !
:confused:
Andreas
03-26-2006, 11:08 PM
<a href="https://vborg.vbsupport.ru/showpost.php?p=932906&postcount=743" target="_blank">https://vborg.vbsupport.ru/showp...&postcount=743</a>
AKINCI
03-27-2006, 12:00 AM
edit, I found
UPDATE user SET vbookie_cash = ('500')
Thanks, very good hack.
But after 2 billion vcash, it counts not correctly.
How can I put back by sql query all user again to 500 vcash?
Thus I start again from the beginning.
Greets
natralis
03-27-2006, 05:50 AM
All installed and uploaded as instructed however when in my Usergroup manager it will not allow me to change the options to Yes for posting events, and allowing to edit,etc it says updating but then sticks with them disabled.
Any ideas why or possible fix?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.