View Full Version : vBookie for vBulletin 3.5
Pages :
1
2
3
4
5
6
7
8
[
9]
10
bobster65
08-18-2008, 10:08 PM
Wouldn't it just be a WHERE clause? something like UPDATE user SET vbookie_cash=500 WHERE userid=x
(I'm not a coder but maybe one can chime in and confirm)
Cheers,
Regs.
you are correct Regs :up:
WhisperXBA
08-18-2008, 10:11 PM
Hello, thanks for the quick input, that is what I already tried, I saw the WHERE command while searching for the other SQL entries.
UPDATE user SET vbookie_cash=500 WHERE userid=_____ does not work.
error number: 1054
error desc: Unknown column 'admin' in 'where clause'
--------------
I have gotten one step further by entering:
UPDATE user SET vbookie_cash=500 WHERE userid='accountname'
(adding single quotes around the userid)
However, that doesn`t give me the 1054 error, but will give me an affected rows of zero, no change to the user`s vCash. The userid is spelled correctly, obviously.
milla da killa
08-20-2008, 12:10 PM
no, I already tried the bitfield fix.
edit: I don't have the option for a vbookie even below the poll option.
That's because you didn't change the usergroup permissions or didn't follow the incredibly basic instructions.
bobster65
08-20-2008, 03:49 PM
Hello, thanks for the quick input, that is what I already tried, I saw the WHERE command while searching for the other SQL entries.
UPDATE user SET vbookie_cash=500 WHERE userid=_____ does not work.
error number: 1054
error desc: Unknown column 'admin' in 'where clause'
--------------
I have gotten one step further by entering:
UPDATE user SET vbookie_cash=500 WHERE userid='accountname'
(adding single quotes around the userid)
However, that doesn`t give me the 1054 error, but will give me an affected rows of zero, no change to the user`s vCash. The userid is spelled correctly, obviously.
that is because userid is a NUMBER, not the members name. use WHERE username='accountname'
Please do not PM me with questions about this piece of crap.
There won't be any further development, nor am I willing to give anyone permission to re-use this code.
Thanks for your understanding.
I was wondrin' what makes you think this is a piece of crap... :(
I really love this mod. :)
BTW, a mod with 2000 replies makes sense after all... ;)
Lombardo
08-22-2008, 12:11 PM
When i select "post a vbookie event" and click to post tthread, it just comes up a normal thread and not the options to do my vbookie event, any ideas? Doesn't matter, i've fixed that.
My next problem no matter what date or time i set on an event i can't place any bets, all my permissions are set correctly, i'm 100% sure of that. Any ideas? :(
The times are backwards, my board time is gmt and my bookie is gmt but i have to set it for 4am if i want it to end at 4pm :( how do i fix that
msu2k
08-25-2008, 03:47 PM
Please do not PM me with questions about this piece of crap.
There won't be any further development, nor am I willing to give anyone permission to re-use this code.
Thanks for your understanding.
I don't understand this whatsoever. If you're going to abandon this, why not let someone else try to resurrect it? There are 600+ vBulletin owners that have a use for it apparently, why not throw them a bone? It is an integral part of my forums and probably many others. Hell, charge for it if you want even, it is valuable enough to many of our communities that many would probably be willing to support it financially.
nick-harper
08-29-2008, 12:27 PM
I would be willing to pay for this.
Quads
08-29-2008, 08:39 PM
Seems I have everything working / installed correctly, however I can't seem to post vbookie events in the new threads. I never seem to get this option in the posting of a new thread: https://vborg.vbsupport.ru/attachment.php?attachmentid=33329&d=1123815803
I have created a new user group ("Bookie") and given them access to create events / manage, as well edited forum permissions. I see the vBookie option in the menubar, all works there. However unable to create an event in the thread.
Perhaps something I missed?
I've tried searching through the thread, but at 135 pages, it's quite tough.
Any input would be greatly appreciated.
bobster65
08-29-2008, 09:23 PM
Seems I have everything working / installed correctly, however I can't seem to post vbookie events in the new threads. I never seem to get this option in the posting of a new thread: https://vborg.vbsupport.ru/attachment.php?attachmentid=33329&d=1123815803
I have created a new user group ("Bookie") and given them access to create events / manage, as well edited forum permissions. I see the vBookie option in the menubar, all works there. However unable to create an event in the thread.
Perhaps something I missed?
I've tried searching through the thread, but at 135 pages, it's quite tough.
Any input would be greatly appreciated.
did you rebuild the bit fields so the permissions don't default back to no?
Append this to your forms URL..
/admincp/index.php?do=buildbitfields
Quads
08-29-2008, 09:54 PM
did you rebuild the bit fields so the permissions don't default back to no?
Append this to your forms URL..
/admincp/index.php?do=buildbitfields
:heart:
That was the trick.
Rebuilt bitfields, reset permissions for "Bookie" group, created even, bet.
Much thanks!
Gimmick
08-30-2008, 12:05 PM
Im about to upgrade my 3.6.8 with working vbookie to 3.7.2
any known issues, or should it upgrade fine?
leftwich86
09-01-2008, 06:58 PM
When i select "post a vbookie event" and click to post tthread, it just comes up a normal thread and not the options to do my vbookie event, any ideas? Doesn't matter, i've fixed that.
My next problem no matter what date or time i set on an event i can't place any bets, all my permissions are set correctly, i'm 100% sure of that. Any ideas? :(
The times are backwards, my board time is gmt and my bookie is gmt but i have to set it for 4am if i want it to end at 4pm :( how do i fix that
I'm having the same problem, my permissions stay at yes but when I go to post the event and check the box for it the event never shows up, it just shows up as a regular thread. Any help would be greatly appreciated.
bobster65
09-01-2008, 08:31 PM
I'm having the same problem, my permissions stay at yes but when I go to post the event and check the box for it the event never shows up, it just shows up as a regular thread. Any help would be greatly appreciated.
You didn't apply Paul M's "fix" There are a ton of references to this..
leftwich86
09-02-2008, 01:37 AM
I must be an idiot cause I have no idea what you're referring to...
bobster65
09-02-2008, 02:12 PM
I must be an idiot cause I have no idea what you're referring to...
That's because you didn't read back far enough.... Its the single most talked about subject besides the bitfields..
Step 1. Log into your Admin Control Panel.
Step 2. Scroll down the left hand nav menu until you get to the Plugins & Products Area.... expand it.. click on Plugin Manager. This will then bring up all the plugins that you have installed within vbulletin...
Step 3. Scroll down the list and look for the Product : vBookie area... this area will contain all the plugins associated with vbookie....
Step 4. Find the specific plugin that needs to be modified (vBookie: Redirect to vbookie.php when posting new Event) and then click on [edit]. This will open the plugin so that you can replace the block of code with the block that Paul had in his post (which is located below)
Replace the current plugin code with this:
if ($newpost['postvbookieevent'])
{
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
eval(print_standard_redirect('redirect_postthanks_ moderate', true, false));
}
jesus likes pie
09-06-2008, 05:51 PM
In case anyone wants to make it so only admins can settle bets (I know I needed that and I saw someone else post way back the same thing).
It's an ugly fix in that I didn't add any options to the actual mod. I just hardcoded in so that it would always be like that.
pretty easy.
plugin:
vBookie: Show Events in Showthread
find
if ( ($eventinfo['item_pay_after'] < TIMENOW) )
{
if ($eventinfo['item_status'] == 'CLOSED')
{
if ($show['editevent'])
{
$showsettlebutton = 1; // only show settlement button if it's someone that can edit this event
}
}
else if ($eventinfo['item_status'] == 'SETTLED')
{
$showresults = 1;
}
}
replace with
if ( ($eventinfo['item_pay_after'] < TIMENOW) )
{
if ($eventinfo['item_status'] == 'CLOSED')
{
$userinfo = fetch_userinfo($vbulletin->userinfo['userid']);
if ($show['editevent'] AND ($userinfo['usergroupid'] == "6"))
{
$showsettlebutton = 1; // only show settlement button if it's someone that can edit this event
}
}
else if ($eventinfo['item_status'] == 'SETTLED')
{
$showresults = 1;
}
}
siriuxs
09-07-2008, 03:50 PM
I want install this mod on my vbulletin forum 3.7.3.. it is possible? It is functionally?
SVTCobraLTD
09-09-2008, 10:12 AM
When I click on Bet Statistics in 3.6.10pl2 I get Database error in vBulletin 3.6.10:
Invalid SQL:
;
MySQL Error : Query was empty
Error Number : 1065
Date : Tuesday, September 9th 2008 @ 10:01:05 AM
Script : http://www.xx.com/forums/vbookie.php?do=stats
Referrer : http://www.xx.com/forums/vbookie.php
IP Address : xx
Username : xx
Classname : vB_Database
Also, I did the templete add in "newthread" and have my forums permissions set that admin's can post a new vbookie event yet when I click New Thread, there is no option to add a vbookie event. What am I missing?
SVTCobraLTD
09-12-2008, 01:50 PM
Also, I did the templete add in "newthread" and have my forums permissions set that admin's can post a new vbookie event yet when I click New Thread, there is no option to add a vbookie event. What am I missing?
Anyone have any thoughts on this. I have confirmed that the admin has all the forum permissions checked yes in the forum I am trying to start a vbookie event. Also confirmed all the files are uploaded. Confirmed I did the template edit. But still no box to check to make it a vbookie event. Any advice would be good. Thanks
bobster65
09-12-2008, 01:58 PM
Anyone have any thoughts on this. I have confirmed that the admin has all the forum permissions checked yes in the forum I am trying to start a vbookie event. Also confirmed all the files are uploaded. Confirmed I did the template edit. But still no box to check to make it a vbookie event. Any advice would be good. Thanks
The only two things that I know of that prevent that from showing up are the Template Edits and the vbookie permissions within the usergroup settings. Are you sure that the settings are being saved and no reverting back to NO?
SVTCobraLTD
09-12-2008, 02:20 PM
The only two things that I know of that prevent that from showing up are the Template Edits and the vbookie permissions within the usergroup settings. Are you sure that the settings are being saved and no reverting back to NO?
Yes, I have confirmed that too.
I messed around with the template edit a little. If I remove <if condition="$show['vbookieevent']"> from the "new thread" template edit, it shows up in every forum. It only shows for the user group that I have given access to. So my next question would be how to make it so that only a certain forum can have it posted in??
Would the code be, <if condition="$post[forumid] == X">? the "$post" probably needs to be replaced with something else.
The next problem is that when I do check the box, it just posts a thread as normal. Nothing shows up in the vbookie home page.
MissKalunji
09-12-2008, 04:00 PM
Yes, I have confirmed that too.
I messed around with the template edit a little. If I remove <if condition="$show['vbookieevent']"> from the "new thread" template edit, it shows up in every forum. It only shows for the user group that I have given access to. So my next question would be how to make it so that only a certain forum can have it posted in??
Would the code be, <if condition="$post[forumid] == X">? the "$post" probably needs to be replaced with something else.
The next problem is that when I do check the box, it just posts a thread as normal. Nothing shows up in the vbookie home page.
that if statement that you removed is basically saying IF allowed vbookie show the fieldset that's why when you click it still doesn't show you anything
which is bringing back to (i know you must be tired of seeing) one of the permissions that you missed and something else (stupid) but i have to ask
Did you turn on vbookie from your vbulletin option?
SVTCobraLTD
09-12-2008, 05:25 PM
This should help...
MissKalunji
09-12-2008, 05:31 PM
This should help...
what about the forum permission?
attached screenshot
SVTCobraLTD
09-12-2008, 05:48 PM
That is what the middle picture is of.
I go to admincp > usergroups > forum permissions > "specific forum I want", scroll to administrator and click edit and that is the setting.
If I go to admincp > forums & moderators > forums permission > "specific forum I want", scroll to "administrator" and click edit, it is the same options set.
Unless there is another setting I am missing, it looks like everything is setup right.
SVTCobraLTD
09-12-2008, 05:49 PM
And below is the template edit:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[post_new_thread]</title>
</head>
<body$onload>
$header
$navbar
$postpreview
<form action="newthread.php?do=postthread&f=$forumid" method="post" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.subject.value, $vboptions[postminchars])"</if>>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
<span class="smallfont" style="float:$stylevar[right]"><strong>$vbphrase[forum]</strong>: <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]">$foruminfo[title]</a></span>
$vbphrase[post_new_thread]
$newthread_posting_rules
</td>
</tr>
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">
$usernamecode
$imagereg
<!-- subject field -->
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr>
</table>
<!-- / subject field -->
<!-- message area -->
<div class="smallfont">$vbphrase[message]:</div>
$messagearea
<!-- / message area -->
$posticons
</div>
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="f" value="$forumid" />
<input type="hidden" name="do" value="postthread" />
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<input type="hidden" name="loggedinuser" value="$bbuserinfo[userid]" />
<input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" />
</div>
</td>
</tr>
</table>
<if condition="$show['additional_options']">
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newpost_options')"><img id="collapseimg_newpost_options" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_newpost_options].gif" alt="" border="0" /></a>
$vbphrase[additional_options]
</td>
</tr>
</thead>
<tbody id="collapseobj_newpost_options" style="$vbcollapse[collapseobj_newpost_options]">
<tr valign="top">
<td class="panelsurround" align="center">
<div class="panel">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">
<if condition="$show['podcasturl']">
<!-- podcast stuff -->
<fieldset class="fieldset">
<legend>$vbphrase[podcast_options]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont">$vbphrase[podcast_url]:</td>
<td class="smallfont"> $vbphrase[filesize_bytes]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="podcasturl" value="$podcasturl" size="50" maxlength="255" tabindex="1" title="$vbphrase[podcast_url]" /></td>
<td> <input type="text" class="bginput" name="podcastsize" value="$podcastsize" size="10" tabindex="1" title="$vbphrase[podcast_size]" /></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[subtitle]:</td>
<td class="smallfont"> $vbphrase[explicit]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="podcastsubtitle" value="$podcastsubtitle" size="50" maxlength="255" tabindex="1" title="$vbphrase[subtitle]" /></td>
<td><input type="checkbox" name="podcastexplicit" value="1" tabindex="1" $explicitchecked title="$vbphrase[explicit]" /></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[keywords]:</td>
<td class="smallfont">$vbphrase[author]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="podcastkeywords" value="$podcastkeywords" size="50" maxlength="255" tabindex="1" title="$vbphrase[keywords]" /></td>
<td><input type="text" class="bginput" name="podcastauthor" value="$podcastauthor" size="25" maxlength="255" tabindex="1" title="$vbphrase[author]" /></td>
</tr>
</table>
</fieldset>
<!-- / podcast stuff -->
</if>
<if condition="$show['misc_options']">
<fieldset class="fieldset">
<legend>$vbphrase[miscellaneous_options]</legend>
<div style="padding:$stylevar[formspacer]px">
<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>
<if condition="$show['parseurl']"><div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div></if>
$disablesmiliesoption
</div>
</fieldset>
</if>
$attachmentoption
<if condition="$show['member']">
<fieldset class="fieldset">
<legend>$vbphrase[thread_subscription]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>$vbphrase[notification_type]:<br /><select name="emailupdate" tabindex="1">
<option value="9999" $emailchecked[9999]>$vbphrase[do_not_subscribe]</option>
<option value="0" $emailchecked[0]>$vbphrase[no_email_notification]</option>
<option value="1" $emailchecked[1]>$vbphrase[instant_email_notification]</option>
<option value="2" $emailchecked[2]>$vbphrase[daily_email_notification]</option>
<option value="3" $emailchecked[3]>$vbphrase[weekly_email_notification]</option>
</select></td>
<if condition="$show['subscribefolders']"><td>$vbphrase[folder]:<br /><select name="folderid" tabindex="1">$folderbits</select></td></if>
</tr>
</table>
</fieldset>
</if>
<if condition="$show['poll']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_poll]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postpoll"><input type="checkbox" name="postpoll" value="yes" id="cb_postpoll" tabindex="1" $checked[postpoll] />$vbphrase[yes_post_a_poll_thread]</label></div>
<div><label for="polloptnum">$vbphrase[number_of_poll_options]: <input type="text" class="bginput" size="5" name="polloptions" value="$polloptions" id="polloptnum" tabindex="1" /></label> <if condition="$vboptions['maxpolloptions']">($vbphrase[maximum]: $vboptions[maxpolloptions])</if></div>
</div>
</fieldset>
</if>
<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>
$threadmanagement
</div>
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" name="sbutton" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" />
</div>
</td>
</tr>
</tbody>
</table>
</if>
</form>
<br />
$forumrules
$footer
</body>
</html>
MissKalunji
09-12-2008, 06:05 PM
uhm i don't knwo anymore did you do it the right style?
Did you rebuild your bitfield? (i'm just throwing some stuff to do that maybe you didn't do?)
admincp/index.php?do=buildbitfields
SVTCobraLTD
09-12-2008, 06:57 PM
Got it resolved. It was not working for me but when I logged into my other admin account it worked. I am confused on why it does not work for me though. Both accounts have admin as the primary usergroup.
Now I just gotta get it intergrated with vbcredits
Big thanks to MissKalunji for all your help!
MissKalunji
09-12-2008, 07:12 PM
arf ok lol
you're welcome. good luck
@ vbcredits go on their website they have a plugin for bookie
asimarda260
09-14-2008, 07:18 AM
which template is this??
And below is the template edit:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[post_new_thread]</title>
</head>
<body$onload>
$header
$navbar
$postpreview
<form action="newthread.php?do=postthread&f=$forumid" method="post" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.subject.value, $vboptions[postminchars])"</if>>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
<span class="smallfont" style="float:$stylevar[right]"><strong>$vbphrase[forum]</strong>: <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]">$foruminfo[title]</a></span>
$vbphrase[post_new_thread]
$newthread_posting_rules
</td>
</tr>
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">
$usernamecode
$imagereg
<!-- subject field -->
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr>
</table>
<!-- / subject field -->
<!-- message area -->
<div class="smallfont">$vbphrase[message]:</div>
$messagearea
<!-- / message area -->
$posticons
</div>
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="f" value="$forumid" />
<input type="hidden" name="do" value="postthread" />
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<input type="hidden" name="loggedinuser" value="$bbuserinfo[userid]" />
<input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" />
</div>
</td>
</tr>
</table>
<if condition="$show['additional_options']">
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newpost_options')"><img id="collapseimg_newpost_options" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_newpost_options].gif" alt="" border="0" /></a>
$vbphrase[additional_options]
</td>
</tr>
</thead>
<tbody id="collapseobj_newpost_options" style="$vbcollapse[collapseobj_newpost_options]">
<tr valign="top">
<td class="panelsurround" align="center">
<div class="panel">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">
<if condition="$show['podcasturl']">
<!-- podcast stuff -->
<fieldset class="fieldset">
<legend>$vbphrase[podcast_options]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont">$vbphrase[podcast_url]:</td>
<td class="smallfont"> $vbphrase[filesize_bytes]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="podcasturl" value="$podcasturl" size="50" maxlength="255" tabindex="1" title="$vbphrase[podcast_url]" /></td>
<td> <input type="text" class="bginput" name="podcastsize" value="$podcastsize" size="10" tabindex="1" title="$vbphrase[podcast_size]" /></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[subtitle]:</td>
<td class="smallfont"> $vbphrase[explicit]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="podcastsubtitle" value="$podcastsubtitle" size="50" maxlength="255" tabindex="1" title="$vbphrase[subtitle]" /></td>
<td><input type="checkbox" name="podcastexplicit" value="1" tabindex="1" $explicitchecked title="$vbphrase[explicit]" /></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[keywords]:</td>
<td class="smallfont">$vbphrase[author]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="podcastkeywords" value="$podcastkeywords" size="50" maxlength="255" tabindex="1" title="$vbphrase[keywords]" /></td>
<td><input type="text" class="bginput" name="podcastauthor" value="$podcastauthor" size="25" maxlength="255" tabindex="1" title="$vbphrase[author]" /></td>
</tr>
</table>
</fieldset>
<!-- / podcast stuff -->
</if>
<if condition="$show['misc_options']">
<fieldset class="fieldset">
<legend>$vbphrase[miscellaneous_options]</legend>
<div style="padding:$stylevar[formspacer]px">
<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>
<if condition="$show['parseurl']"><div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div></if>
$disablesmiliesoption
</div>
</fieldset>
</if>
$attachmentoption
<if condition="$show['member']">
<fieldset class="fieldset">
<legend>$vbphrase[thread_subscription]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>$vbphrase[notification_type]:<br /><select name="emailupdate" tabindex="1">
<option value="9999" $emailchecked[9999]>$vbphrase[do_not_subscribe]</option>
<option value="0" $emailchecked[0]>$vbphrase[no_email_notification]</option>
<option value="1" $emailchecked[1]>$vbphrase[instant_email_notification]</option>
<option value="2" $emailchecked[2]>$vbphrase[daily_email_notification]</option>
<option value="3" $emailchecked[3]>$vbphrase[weekly_email_notification]</option>
</select></td>
<if condition="$show['subscribefolders']"><td>$vbphrase[folder]:<br /><select name="folderid" tabindex="1">$folderbits</select></td></if>
</tr>
</table>
</fieldset>
</if>
<if condition="$show['poll']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_poll]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postpoll"><input type="checkbox" name="postpoll" value="yes" id="cb_postpoll" tabindex="1" $checked[postpoll] />$vbphrase[yes_post_a_poll_thread]</label></div>
<div><label for="polloptnum">$vbphrase[number_of_poll_options]: <input type="text" class="bginput" size="5" name="polloptions" value="$polloptions" id="polloptnum" tabindex="1" /></label> <if condition="$vboptions['maxpolloptions']">($vbphrase[maximum]: $vboptions[maxpolloptions])</if></div>
</div>
</fieldset>
</if>
<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>
$threadmanagement
</div>
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" name="sbutton" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" />
</div>
</td>
</tr>
</tbody>
</table>
</if>
</form>
<br />
$forumrules
$footer
</body>
</html>
MissKalunji
09-14-2008, 05:06 PM
newthread
siriuxs
09-14-2008, 08:55 PM
I want traduce some phrase in my language, but some phrase isn't existent... For esample "vBookie Event" phrase not exsist... how is possible? where I can changed it? Thanks
MissKalunji
09-14-2008, 09:07 PM
could be in the templates
siriuxs
09-15-2008, 07:05 AM
Ok. Now functionally on my 3.7.x. It is possible introduce a bet limit?
SVTCobraLTD
09-15-2008, 04:05 PM
When someone bets anonymously it will display this in the phrases... is this something that needs to be edited in the template because the phrase looks like it is setup right.
$vbphrase[anon] won 500 on
ronronmx
09-18-2008, 03:43 AM
Would anyone happen to know how to put a smilie in the outcome box instead of the word "win"? TIA :)
EDIT: Create a new phrase in the Show Thread Phrase Type. Name it whatever you want, and in the text box use <img src="url">
Thats it. :)
Defkalion
09-20-2008, 03:51 AM
I've installed this on 3.6.8 and it seems to be working ok, except this:
A user placed a bet, and in the vbookie page it show the total amount stacked, but it doesn't show anything in the row that says "bet placed by...." etc.
any ideas?
Edit: Ok this is weird: one of my members placed a bet for 200 points and he didn't show up in that row. Now another member placed a bet for 150 points and he shows up in that row just fine.
Edit 2 : nevermind, the first member just checked the private bet option. All is ok :)
kano1977
09-29-2008, 02:34 PM
In installed it and it shows up when i make a new thread and i check the box and submit and it just post the thread and does not take me to where i need to add the event. and idea i am new at this ??
kano
MissKalunji
09-29-2008, 03:40 PM
you probably didn't do the forum permissions
kano1977
09-29-2008, 06:41 PM
I set all the permissions in the forums, It shows up when i make a new thread i click okay and its supposed to go to vBookie New Event page and it doesnt just shows the thread i just posted ?
MissKalunji
09-29-2008, 06:53 PM
did you do this? :
vBookie & 3.6
The posting of vbookie events in 3.6 is broken because the hook used has moved.
To fix this problem, the following plugin must be edited ;
vBookie: Redirect to vbookie.php when posting new Event
Replace the plugin code with this ;
if ($newpost['postvbookieevent'])
{
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
eval(print_standard_redirect('redirect_postthanks_ moderate', true, false));
}
Note: I'm not actually using vbookie atm so I can't comment on any other problems.
Defkalion
09-29-2008, 08:51 PM
Also make sure you do rebuild bitfields from maintenance in admincp.
kano1977
09-30-2008, 02:48 AM
did you do this? :
Thanks for all your help that worked. I am having a one more problem. Seems I am missing a pic..
https://vborg.vbsupport.ru/external/2008/09/3.jpg
where do i do to fix that and can i insert my own pic. I am a noob at all this bare with me ....
MissKalunji
09-30-2008, 03:05 AM
Thanks for all your help that worked. I am having a one more problem. Seems I am missing a pic..
https://vborg.vbsupport.ru/external/2008/09/3.jpg
where do i do to fix that and can i insert my own pic. I am a noob at all this bare with me ....
right click on the image missing property and see where you're supposed to upload it.
Blackhat
09-30-2008, 12:50 PM
Does anyone uses this and vb.3.7.x ?
Blackhat
09-30-2008, 01:55 PM
Ok, I got it installed now with no errors, but I cant make any bets. There are no options when making a thread. Could we try and make this one work again please ? :)
MissKalunji
09-30-2008, 02:54 PM
either you didn't set the forum permissions
or didn't do the newthread template edit
brvheart
10-01-2008, 02:21 PM
will this work on 3.7.x?
MissKalunji
10-01-2008, 03:10 PM
Yes it does.....
MissKalunji
10-01-2008, 03:20 PM
i got an error trying to click on "Bet Statistics"
anyone figured it out?
brvheart
10-01-2008, 04:43 PM
Yes it does.....
thank you :)
Do I need to make any changes? Ran fine on 3.6.x after the change that needed made, but I was getting so many security token errors that I disabled everything until I figure out which ones are causing them.
MissKalunji
10-01-2008, 04:51 PM
no only the plugin one and that's it
siriuxs
10-02-2008, 05:06 PM
It is possible set the limit to the vbcredits to spend for each bet?
DS MrSinister
10-04-2008, 11:36 AM
It is possible set the limit to the vbcredits to spend for each bet?
this is what you need to do.
https://vborg.vbsupport.ru/showpost.php?p=942268&postcount=775
Dunno if this has been posted already, but here are the template edits in a TMS XML file...
brvheart
10-05-2008, 01:33 AM
no only the plugin one and that's it
Unfortunately this is not working on my 3.7.3 board :( and I used to use it a ton :(
Adam21
10-05-2008, 02:35 AM
this still works perfectly fine on 3.73 pl 1!
MissKalunji
10-05-2008, 03:02 AM
Unfortunately this is not working on my 3.7.3 board :( and I used to use it a ton :(
What's your problem?
siriuxs
10-05-2008, 12:59 PM
this is what you need to do.
https://vborg.vbsupport.ru/showpost.php?p=942268&postcount=775
Very thanks! :)
DS MrSinister
10-05-2008, 02:00 PM
Very thanks! :)
very welcome!
brvheart
10-05-2008, 08:50 PM
What's your problem?
Well, the bets we had going until the upgrade worked just fine, but now when you go to post a new thread there is no option to add a book to it - I re-did everything along with the plugin replacement that got it to work on the 3.6.x version...
MissKalunji
10-06-2008, 01:20 AM
did you do the FORUM permissions? The Usergroup permissions? uhm what else...
Macartist6
10-12-2008, 08:17 PM
where do you adjust a group's vCash... for instance I want new users to get 1000 points rather than the default 500
cedar
10-13-2008, 05:16 AM
I installed successfully this on my vBB 3.7.3!But now I have a minor problem : could someone show me the place to edit the "$vbphrase[anon] won ..." to other phrase instead???
BTW, does anyone know some place I can get odds for American football and/or how to convert the odds listed at Yahoo into vBookie odds?
I'm pretty dumb and am probably missing something VERY obvious.
SVTCobraLTD
10-16-2008, 10:06 AM
I installed successfully this on my vBB 3.7.3!But now I have a minor problem : could someone show me the place to edit the "$vbphrase[anon] won ..." to other phrase instead???
I added a new phrase called [anon]. Not sure if that is the way to do it but on 3.6.10, there is no phrase like that.
Macartist6
10-16-2008, 04:42 PM
is there a way to globally add 1000 points to every user???
UltraFanatics
10-17-2008, 04:58 PM
I have installed the mod but when I set the usergroup permissions to yes and save they aren't saving even though it seems like they have.
If I go back to check they are all set to no!
Any ideas?
msu2k
10-17-2008, 05:42 PM
Has anyone had strange bet results where users randomly win enormous amounts of vCash? Like 10 figure amounts? Can't seem to figure out why it's happening, it doesn't happen that often but I get one every couple of months or so.
mcyates
10-17-2008, 05:59 PM
Why do I not get my stakes back????
How come this is not supported its a pretty popular hack and essential for a football (soccer) site!!!
Anyone please :D
chick
10-19-2008, 12:42 AM
Post a vBookie Event
Yes, post a vBookie Event with this thread
Found answer
https://vborg.vbsupport.ru/showpost.php?p=1612805&postcount=2016
Is it possible to add an event after a thread has been posted?
MissKalunji
10-23-2008, 07:05 PM
No. you can't
Maxman1544
10-25-2008, 03:46 AM
I have been using vbookie for awhile and love the mod. We have been using it heavily and recently noticed a slowdown when we settle bets. It is eating up a lot of resources, mysql seems to take 10 minutes to settle each bet. (We are on a dedicated server, which has been optimized).
Anyone have any issues like this? I am wondering if I can schedule the settle bets to not run until later through cron. Or even just prune the database, maybe if there was less history in the database that would take care of the issue?
Thoughts?
Thanks!
chick
10-25-2008, 09:30 AM
one more, can't find this in phrases or templates,.......... where is says vbookie installed how to rid of that... 2 bets have been placed yet it still shows. I saw mention of it here somewhere but can't find the answer.
cedar
10-26-2008, 04:46 PM
If the Event's payout time has been reached there will also be a reminder that the bets should be settled, and there will be checkboxes beside each potentially winning Outcome. This is only shown to the Event's owner or members with permission to edit other persons' Events.
I set all permission correctly (only tech + vbookie group) but all smod and admin can settle the bet!So could I do something to prevent it???Because someone try to settle the wrong side, and it make the bet be chaos...
Gersfan
10-26-2008, 06:32 PM
IS there no plans for this Mod ? It's a massive mod and very popular i don't see why not!
chick
10-26-2008, 09:13 PM
IS there no plans for this Mod ? It's a massive mod and very popular i don't see why not!
I agree, this is quite popular and seems it could be reworked, made easier for admins. Amazing.
I bought bplaza and vbbux but I'm not too happy it's ioncubed (I mean come on for a $50 hack???)
Denver Jackson
10-29-2008, 12:23 PM
Lads please could any of you help me.
Im running vbulletin version 3.7.3 and have downloaded this and heard vbookie works with my version.
Ive installed it all but the only problem i have is when i go to Template navbar and try to find <td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td> it is not there.
Please can any of you help me ??
cedar
10-29-2008, 04:31 PM
Because 3.7.3 has some different code with 3.6.x, so you should search for calendar only, and remove the whole lines between <td ...> and </td>!You are recommended to know a little of html to do it correctly...
@all : why some of my member has a vCash of 18446744073709551416???What's wrong???
Bounce
10-31-2008, 05:48 PM
Anyone got this working on a beta 3.8 yet ?:cool:
Cobra-J82
11-01-2008, 03:34 AM
Its a Pitty such a Good mod with no Support or Update.
Bounce
11-01-2008, 09:14 PM
Its a Pitty such a Good mod with no Support or Update.
Indeed, please someone take over and update this mod :rolleyes:
Maxman1544
11-02-2008, 12:46 AM
With over 12,000 bets placed and 6,000 records in some of the other tables the vbookie queries are hanging my server. Taking 10 minutes to run, it is killing our cpu.
$result = $db->query_read("
SELECT item.item_id, item.item_title, item.threadid, grp.group_title, item.item_status, item.item_created, item.item_open_until, item.item_
FROM " . TABLE_PREFIX . "vbookie_items AS item
LEFT JOIN " . TABLE_PREFIX . "vbookie_groups AS grp ON grp.group_id = item.group_id
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON thread.vbookie_item_id = item.item_id
WHERE item.item_status='".$db->escape_string($type)."'
ORDER BY $orderby item.item_id DESC
LIMIT $limit, $perpage
and this one
// Most bet-on Events
$result = $db->query_read("
SELECT item.item_id, item.item_title, item.threadid, grp.group_title, item.item_status, item.item_created, item.item_open_until, item.item_
LEFT JOIN " . TABLE_PREFIX . "vbookie_groups AS grp ON grp.group_id = item.group_id
ORDER BY item.item_n_bets_placed DESC
LIMIT 5
I wonder if I prune the data if it would help. Any thoughts?
Maxman1544
11-02-2008, 12:55 AM
With over 12,000 bets placed and 6,000 records in some of the other tables the vbookie queries are hanging my server. Taking 10 minutes to run, it is killing our cpu.
$result = $db->query_read("
SELECT item.item_id, item.item_title, item.threadid, grp.group_title, item.item_status, item.item_created, item.item_open_until, item.item_
FROM " . TABLE_PREFIX . "vbookie_items AS item
LEFT JOIN " . TABLE_PREFIX . "vbookie_groups AS grp ON grp.group_id = item.group_id
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON thread.vbookie_item_id = item.item_id
WHERE item.item_status='".$db->escape_string($type)."'
ORDER BY $orderby item.item_id DESC
LIMIT $limit, $perpage
and this one
// Most bet-on Events
$result = $db->query_read("
SELECT item.item_id, item.item_title, item.threadid, grp.group_title, item.item_status, item.item_created, item.item_open_until, item.item_
LEFT JOIN " . TABLE_PREFIX . "vbookie_groups AS grp ON grp.group_id = item.group_id
ORDER BY item.item_n_bets_placed DESC
LIMIT 5
I wonder if I prune the data if it would help. Any thoughts?
http://www.vbulletin.com/forum/showpost.php?p=863873&postcount=85
Seems like the same issue I am having, interesting.
Maxman1544
11-02-2008, 12:28 PM
http://www.vbulletin.com/forum/showpost.php?p=863873&postcount=85
Seems like the same issue I am having, interesting.
Well -- not to keep talking to myself, but just to document this -- we ran that query above and created the index. So far it looks good. The table doesn't get locked when vbookie queries are running.
I will probably purge some of the bet history as well to make the data smaller. But for now things seem better.
msu2k
11-07-2008, 07:14 PM
Its a Pitty such a Good mod with no Support or Update.
Yep, this mod is essential to my site at this point. I would be willing to pay for someone to support and update this mod.
chick
11-10-2008, 02:13 PM
I know I ran across it here but my hands are numb, I can't go though a thousand posts again, how do you incorporate it to work with vbcredits?
solved found it seaching forum https://vborg.vbsupport.ru/showpost.php?p=1637090&postcount=2055
chick
11-10-2008, 02:23 PM
I have the bookie setup in forum ID 69
How would I go about adding the leader-board links from vbookie.php to the top of that forum ID 69
These links Bookie Home | Event Forum | Bet Statistics
Would this be an <if forumID 69 condition?????
Can someone help. That forum 69 needs easier maneuvering for members... they will become confused.
PremierFootball
11-16-2008, 04:59 PM
LOL, all Plugins in the XML are disabled.
Might be a good Idea to enable them ^.^
How do I do that?
I have installed vBookie on my vBulletin 3.5 so it should be working, but there is no option for me to post an event.
PremierFootball
11-16-2008, 05:30 PM
I just rebuilt the bitfields and it works fantastic.
SVTCobraLTD
11-17-2008, 12:23 PM
Is there anyways to change a bet that has been settled. The wrong box was clicked when settling bets. Can this be edited so the right box can be selected and appropriate points are distributed?
MissKalunji
11-17-2008, 02:59 PM
no only through database
I got it installed and working. One problem that I have seen asked a few times on here but didn't see an answer: I want to reset everyone's money each week to 500 (to have weekly contests). How would I go about doing this?
SVTCobraLTD
11-17-2008, 03:19 PM
no only through database
Is this something that can be explain so I can fix it? Will it adjust all the points or just the "WIN" word? Thanks in advance. You can PM me if that is easier.
DJDynasty239
11-17-2008, 07:14 PM
I am not able to post vBookie events...I have the option when posting a new thread, but it just posts a regular thread....weird
merk_aus
11-18-2008, 06:03 AM
just to inform you guys i have a coder on my payroll who is looking into creating a vbookie type script - its not taking over this one and porting it into a newer version it is starting from scratch to go through and create our own bookmaker mod.
PremierFootball
11-18-2008, 07:49 PM
just to inform you guys i have a coder on my payroll who is looking into creating a vbookie type script - its not taking over this one and porting it into a newer version it is starting from scratch to go through and create our own bookmaker mod.
Nice, I look forward to this!
MissKalunji
11-18-2008, 08:08 PM
Is this something that can be explain so I can fix it? Will it adjust all the points or just the "WIN" word? Thanks in advance. You can PM me if that is easier.
if i remember right you would have to go INSIDE the vbookie table for BETS and find the proper bet (you can search by user id or i think the bet id) from there you can edit it you have two choices from switching from which team or you can just do it manually (by editing) the person's point amount and just post a note in the Vbookie thread
father guido
11-19-2008, 02:48 AM
just to inform you guys i have a coder on my payroll who is looking into creating a vbookie type script - its not taking over this one and porting it into a newer version it is starting from scratch to go through and create our own bookmaker mod.
That would be absolutely awesome.
I certainly don't know the story as to why this is no longer supported and the code cannot be reused .......... it is a real shame.
DJDynasty239
11-19-2008, 03:37 AM
Anyone have any suggestions as to why I have the option to post a vBookie event but it just posts a regular post? :(
Mr. Baws
11-25-2008, 11:24 AM
I have installed this on 3.8 b3 and i cant save usergroup permissions it always revert to no.
Bounce
12-06-2008, 08:14 PM
I have installed this on 3.8 b3 and i cant save usergroup permissions it always revert to no.
Rebuild the bitfields
Polish Guy
12-10-2008, 10:54 PM
This was asked on the previous page, but has not been answered yet to my knowledge.
I am looking to reset all the vBookie stats (vCash amounts, bets placed, and totals on the stats page). I do not want to go into my database and redo everything since I'm iffy when it comes to SQL. Is there a way to reset these tables to get this done?
stb74
12-13-2008, 10:27 AM
Has anyone ever came across the vb_vbookie_items - item_title getting updated with "Please your bets please"
bamaster
12-31-2008, 03:01 PM
Post a vBookie Event
Yes, post a vBookie Event with this thread
Found answer
https://vborg.vbsupport.ru/showpost.php?p=1612805&postcount=2016
Exactly what I was looking for. Thanks!
punchbowl
01-02-2009, 06:48 PM
Has anyone had strange bet results where users randomly win enormous amounts of vCash? Like 10 figure amounts? Can't seem to figure out why it's happening, it doesn't happen that often but I get one every couple of months or so.
@all : why some of my member has a vCash of 18446744073709551416???What's wrong???
Me too. Any one else?
Maxman1544
01-06-2009, 05:29 PM
I have installed this on 3.8 b3 and i cant save usergroup permissions it always revert to no.
Is this working for you in 3.8?
If anyone else has this running on 3.8 please let us know, very curious to see if there are any issues.
Thanks!
jonah1892
01-07-2009, 08:19 AM
i am running this on my test 3.8 (testing all my mods i have installed before i make the upgrade) and i am having no problems running vbookie
usergroups are fine, posting is fine, placing bets are fine
SVTCobraLTD
01-07-2009, 05:58 PM
On 3.6.x - How do I edit this to not show $vbphrase[anon] but show the word?
$vbphrase[anon] won
This was asked on the previous page, but has not been answered yet to my knowledge.
I am looking to reset all the vBookie stats (vCash amounts, bets placed, and totals on the stats page). I do not want to go into my database and redo everything since I'm iffy when it comes to SQL. Is there a way to reset these tables to get this done?
You can run the SQL queries in AdminCP in the Maintenance menu.
For a complete vBookie reset run these SQL queries:
Reset everyone's vCash:
UPDATE user SET vbookie_cash=X;
where X= vCash (eg 500)
To totally clear all past events:
DELETE FROM vbookie_news;
DELETE FROM vbookie_bets_placed;
DELETE FROM vbookie_item_options;
DELETE FROM vbookie_items;
DELETE FROM vbookie_groups;
Some other useful vBookies queries people might find useful:
To remove a specific event:
DELETE FROM vbookie_items WHERE item_id = 'X';
replace X with the item id which you can get by mousing over the info link in the affected vbookie event.
To remove a news event:
DELETE FROM vbookie_news WHERE news_id = X';
To Abandon/Mitigate a wrongly settled event:
UPDATE vbookie_items SET item_status='CLOSED' WHERE item_id= 'X';
This will change it from Settled to Closed. Then click the Abandon Event link in the thread. This only returns the original stakes. vCash won as a result of the incorrect settlement is not taken away and changing the winner in the thread has no effect.
Me too. Any one else?
I've encountered the problem with ridiculously large vCash numbers too. Unfortunately there's a way to cheat which I won't go into. It can also occur unintentionally with slaved db servers. You can dramatically reduce it by not permitting events that allow more than one bet.
blue6995
01-12-2009, 08:10 AM
Following an update to vBulletin, the code below used to fix it so you could post vBookie events. It doesn't seem to work with vBulletin v 3.8.0 Any ideas on how I can get back the options to post vBookie events?
Thanks
if ($newpost['postvbookieevent'])
{
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
eval(print_standard_redirect('redirect_postthanks_ moderate', true, false));
}
Maxman1544
01-12-2009, 02:02 PM
Following an update to vBulletin, the code below used to fix it so you could post vBookie events. It doesn't seem to work with vBulletin v 3.8.0 Any ideas on how I can get back the options to post vBookie events?
Thanks
if ($newpost['postvbookieevent'])
{
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
eval(print_standard_redirect('redirect_postthanks_ moderate', true, false));
}
I am having the same problem. If anyone has this working in 3.8 any insight would be appreciated.
I believe that it was posted in here that this works with 3.8.
wicked80
01-12-2009, 08:57 PM
It was working fine for me till 3.7.4 but after upgrading to 3.8.0 it has stopped working and not showing the option to create a vbookie event when i try to create a new thread...
Anyone experiencing the same issues????
JimmiOO
01-14-2009, 04:26 PM
I created a test event then deleted it, the problem i am having now is, when i go into the vbookie the test events is still listed as open but no option to delete it now. How can i get rid of this?
blue6995
01-15-2009, 07:12 AM
vBookie & 3.6
The posting of vbookie events in 3.6 is broken because the hook used has moved.
To fix this problem, the following plugin must be edited ;
vBookie: Redirect to vbookie.php when posting new Event
Replace the plugin code with this ;
if ($newpost['postvbookieevent'])
{
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
eval(print_standard_redirect('redirect_postthanks_ moderate', true, false));
}
Note: I'm not actually using vbookie atm so I can't comment on any other problems.
This used to work prior to vBulletin version 3.8.0. Unfortunately, it doesn't work with v3.8.0
Any ideas on how we can fix this?
Maxman1544
01-15-2009, 01:48 PM
Once I change that plugin as noted above, it now works fine. Thanks for the reminder!
fattony69
01-15-2009, 03:22 PM
The option to make a vbookie event doesn't show up anymore...it seems like this modification is going to die unfortunately unless someone updates it.
blue6995
01-15-2009, 09:31 PM
Once I change that plugin as noted above, it now works fine. Thanks for the reminder!
I doesn't work on mine! Did you do anything different other than copy that code in?
blue6995
01-16-2009, 06:26 AM
I doesn't work on mine! Did you do anything different other than copy that code in?
Doh! I forgot to carry out the template changes. Did that and changed the vBookie: Redirect to vbookie.php when posting new Event, shown in the post below and it works again.
Mr. Baws
01-17-2009, 04:35 PM
Rebuild the bitfields
thanks
christicehurst
01-18-2009, 03:31 AM
Doesn't work on my 3.8.0 - I changed the template edits and permissions but still doesn't show the option to have board make the bets or create a new bet
blue6995
01-18-2009, 05:30 AM
christicehurst, Did you do this?
Originally Posted by Paul M
vBookie & 3.6
The posting of vbookie events in 3.6 is broken because the hook used has moved.
To fix this problem, the following plugin must be edited ;
vBookie: Redirect to vbookie.php when posting new Event
Replace the plugin code with this ;
PHP Code:
if ($newpost['postvbookieevent'])
{
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
eval(print_standard_redirect('redirect_postthanks_ moderate', true, false));
}
christicehurst
01-18-2009, 07:49 PM
It's all worked out, all good.
Gimmick
01-19-2009, 09:31 PM
confirmed working on 3.8?
merk_aus
01-19-2009, 11:03 PM
All of our problems will be solved in coming months I know of 1 fantastic coder who is working on vBSports Bet which is a new revamped version of this created from scratch - but that is still a few months away if this gets confirmed to working on 3.8 install it and just wait for the big announcement :D
blue6995
01-20-2009, 06:51 PM
All of our problems will be solved in coming months I know of 1 fantastic coder who is working on vBSports Bet which is a new revamped version of this created from scratch - but that is still a few months away if this gets confirmed to working on 3.8 install it and just wait for the big announcement :D
Great, I look forward to this
MissKalunji
01-21-2009, 01:30 PM
confirmed working on 3.8?
works on mine
Denver Jackson
01-22-2009, 02:30 PM
Lads when i try to set the vbookie permissions it sets them all back to no.
Any ideas what is up ?
WEBDosser
01-25-2009, 08:32 AM
Lads when i try to set the vbookie permissions it sets them all back to no.
Any ideas what is up ?
rebuild bitfields
admincp/index.php?do=buildbitfields
subnet_rx
01-28-2009, 07:07 PM
In vBookie, the largest bet that can be placed is 2.4 billion. I know this can't be a limitation with the database because vBCredits stores much larger numbers. I've looked that the data types in mySQL and they are BigInts, what else should I check to "upgrade" this to be able to place larger bets?
faraz_9000
01-30-2009, 12:13 PM
do this vbookie will support 3.8.0???
willz121
02-04-2009, 10:27 AM
Right I'm getting to the end of my tether with this one lol
None of my members can bet on the events:
"You may not bet on this event. You have placed 0 bet(s) on this Event."
All members have vCash and also have the forum permissions and usergroup permissions set to yes for "Can bet on vBookie events". I have edited the hook as mentioned above, and rebuilt the bit fields.
Please can you give me some help, its been a real pain so far!
Using board 3.8.1 and vbookie 1.0.7
Thanks in advance!
talkncaasports
02-05-2009, 10:31 AM
Right I'm getting to the end of my tether with this one lol
None of my members can bet on the events:
"You may not bet on this event. You have placed 0 bet(s) on this Event."
All members have vCash and also have the forum permissions and usergroup permissions set to yes for "Can bet on vBookie events". I have edited the hook as mentioned above, and rebuilt the bit fields.
Please can you give me some help, its been a real pain so far!
Using board 3.8.1 and vbookie 1.0.7
Thanks in advance!
I was having the same problem until I created a new forum category and forum (and subforums) specifically for vbookie.
The problem then went away.
have you tried that yet? Not sure what was causing it, but when I created the new forum, and set the permissions and everything, it worked.
talkncaasports
02-05-2009, 10:34 AM
do this vbookie will support 3.8.0???
Yes, as long as you do what is discussed on the pages before this one. (p. 142)
willz121
02-05-2009, 11:38 AM
I was having the same problem until I created a new forum category and forum (and subforums) specifically for vbookie.
The problem then went away.
have you tried that yet? Not sure what was causing it, but when I created the new forum, and set the permissions and everything, it worked.
I've done that and its still not working... I really don't know what the problem could be! It's probably something really simple that I've overlooked, even though I've been through it 3 or 4 times now.
Might have to leave it dead for now. Thanks for your help!
faraz_9000
02-05-2009, 04:57 PM
thnx it works for me:D
fodboldforumdk
02-06-2009, 09:15 AM
Should work fine on my soccer forum now after i changed that PHP code
www.fodboldforum.dk
Thanks for the help - ill return if its dosent work prober'
g0dfather1984
02-06-2009, 09:07 PM
Yeah, I do not have the option to even turn VBookie on in any forums on 3.8.
Am I missing something? I did the plugin update too.
fta2k
02-10-2009, 01:12 AM
K I have vbookie installed... and recently change servers... before the move with 3.6
we then upgraded to 3.7 and vbookie quit... we ugraded to 3.8 and changed the php as previously discussed in this thread... Now vbookie works... BUT, in only one style out of 9 do I get the post vbookie event... But, I get double header and double edit windows... if you noticed, 1 window has post vbookie event and the other does not...
so where can I find the php that controls the "post vbookie event" and where the heck can i edit out the double edit windows and header?
thanks for your help... My head hurts HA!
fta2k
02-14-2009, 06:37 AM
help HAHA
DS MrSinister
02-14-2009, 04:41 PM
@fta2k
try double checking your templates edits.. mainly newthread one and see if that helps.
fukdawrld
02-25-2009, 08:03 PM
Yeah, I do not have the option to even turn VBookie on in any forums on 3.8.
Am I missing something? I did the plugin update too.
I have this exact same issue. I don't even have the vbookie options in my forum permissions or my usergroups to turn them on in the admin CP. I've changed the coding as mentioned previously and reinstalled a few times..till nothing :(
Help please.
bxbigt
02-25-2009, 09:23 PM
I would love to see this on 3.8
Habsy
03-02-2009, 04:42 PM
Me too.
I have had user requests for vBookie but reading up on the issues with 3.8 there is no point installing it until an update is available.
Is there one scheduled?
Me too.
I have had user requests for vBookie but reading up on the issues with 3.8 there is no point installing it until an update is available.
Is there one scheduled?
Read the first post for update schedule...
pgowder
03-05-2009, 02:08 PM
My memberlist isn't sorting vCash anymore.
Any ideas on why?
Is there another way to display the highest scores?
http://www.powwows.com/gathering/members/list/?order=DESC&sort=credits&pp=25
fattony69
03-08-2009, 04:32 AM
I got this to work on on my site. I am running 3.8.1. Normally I had the problem everyone was getting. It is setup, but it wasn't showing up. So randomly, I checked my newthread style and it wasn't there. So just 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>
over:
$threadmanagement
Works fine now.
visitangeles
03-16-2009, 09:42 PM
still is not working for me.
i have all the permissions set.
no way to place a bet - how do you do this?
i have the latest vb 3.8.1
anyone get it working? any ideas?
visitangeles
03-16-2009, 09:43 PM
Is there another vbookie like product?
I have casino .92 - is that it out there?
Hiranmanu
03-17-2009, 07:52 PM
I have this working for 3.8.1 PL1. This works for any forum version with the right modifications done. I will write up exactly what you guys need to do to get it working.
1: Upload all files in upload folder
2: Import product-bookiehack.xml
3: Goto ACP > Plugins & Products > Plugin Manager
4: Edit Redirect to vbookie.php when posting new Event by replacing the entire code with this if ($newpost['postvbookieevent'])
{
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
eval(print_standard_redirect('redirect_postthanks_ moderate', true, false));
}
5: In template Newthread find $threadmanagement. Above that add the following code <if condition="$show['vbookieevent']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_vbookieevent]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postvbookieevent"><input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" $checked[postvbookieevent] />$vbphrase[yes_post_a_vbookieevent_thread]</label></div>
</div>
</fieldset>
</if>
6: Download ICash (https://vborg.vbsupport.ru/showthread.php?t=165962) and install
7: Change ICash Options. Change the Money Row to vbookie_cash
This will definately work for you. I have left off showing the points in the postbit and the link in the navbar. If you need to add these the code is the same as the original.
visitangeles
03-18-2009, 03:05 AM
i must be the only knucklehead on here that didnt figure out that you have to make a bet by making it in a thread! lol.
i thought u set up an event at vbookie homepage.
it works now if i go to forum and then make a new thread.
i must have missed that in the directions or maybe that was common sense.
anyway, thanks. it is working now. :)
plazzman
03-19-2009, 01:38 AM
Does anyone know when Vbookie for 3.8 will be available?
Thanks
JJ the Fox
03-19-2009, 05:00 AM
Does anyone know when Vbookie for 3.8 will be available?
Thanks
Read the top of the thread. There will never be another version. The mod is abandoned.
Hiranmanu
03-19-2009, 06:52 AM
Does anyone know when Vbookie for 3.8 will be available?
Thanks
Just follow my instructions and it will work mate,
https://vborg.vbsupport.ru/showpost.php?p=1770679&postcount=2152
plazzman
03-23-2009, 06:36 AM
Just follow my instructions and it will work mate,
https://vborg.vbsupport.ru/showpost.php?p=1770679&postcount=2152
Awesome thanks. Everything seems to be working fine except for one thing.
It won't let me do #4, the page just blanks out. I've tried it with other computers, and its still the same.
Also, I can't get the function to appear when I'm making a new thread. Could it be because of that?
Hiranmanu
03-23-2009, 09:25 PM
Awesome thanks. Everything seems to be working fine except for one thing.
It won't let me do #4, the page just blanks out. I've tried it with other computers, and its still the same.
Also, I can't get the function to appear when I'm making a new thread. Could it be because of that?
Yeah that is the reason why it does not work. Try to disable your hooks and then try to edit that file, you might have a plugin conflicting that may not allow you to edit the details. To disable hooks just do a search here and you will find out how to do it.
plazzman
03-23-2009, 10:03 PM
Thanks alot, really appreciate it
opsman
03-26-2009, 05:41 AM
Hi All
I have got it working but unless I make registered users able to post vbookie events thay cannot bet at all, is there a way of making them able just to bet without creation, I ticked the option in group permissions but it does not work unless i do the above....
Thanks
tjdrico
03-27-2009, 01:34 PM
Read the top of the thread. There will never be another version. The mod is abandoned.
Ah, that's a shame. I wrote the original mod 5 years ago, but I don't have the latest version of vBulletin (my forum is 3.6.8).
Still, never say "never".
bobster65
03-27-2009, 01:45 PM
Ah, that's a shame. I wrote the original mod 5 years ago, but I don't have the latest version of vBulletin (my forum is 3.6.8).
Still, never say "never".
well, enough people want this mod updated that I am positive that you would receive more than enough in donations to purchase the latest version of vb ;)
btw, thank you for the original mod.. it is by far my favorite all time mod. It deserves a spot in the Hall of Fame of Modifications :up:
blue6995
03-31-2009, 04:48 PM
I have this working with vb 3.8.1, but it won't let me move past Page 1 of the Settled bets or the Closed bets. When I select say Page 2 it just remains on the first page. I am sure I found the solution to this somewhere in here, but can't for the life of me find it again! Any ideas
jonah1892
03-31-2009, 06:14 PM
I have this working for 3.8.1 PL1. This works for any forum version with the right modifications done. I will write up exactly what you guys need to do to get it working.
1: Upload all files in upload folder
2: Import product-bookiehack.xml
3: Goto ACP > Plugins & Products > Plugin Manager
4: Edit Redirect to vbookie.php when posting new Event by replacing the entire code with this if ($newpost['postvbookieevent'])
{
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
eval(print_standard_redirect('redirect_postthanks_ moderate', true, false));
}
5: In template Newthread find $threadmanagement. Above that add the following code <if condition="$show['vbookieevent']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_vbookieevent]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postvbookieevent"><input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" $checked[postvbookieevent] />$vbphrase[yes_post_a_vbookieevent_thread]</label></div>
</div>
</fieldset>
</if>
6: Download ICash (https://vborg.vbsupport.ru/showthread.php?t=165962) and install
7: Change ICash Options. Change the Money Row to vbookie_cash
This will definately work for you. I have left off showing the points in the postbit and the link in the navbar. If you need to add these the code is the same as the original.
that worked a treat, and i'm using vbcredits without any issues
DS MrSinister
04-01-2009, 01:24 PM
I have this working with vb 3.8.1, but it won't let me move past Page 1 of the Settled bets or the Closed bets. When I select say Page 2 it just remains on the first page. I am sure I found the solution to this somewhere in here, but can't for the life of me find it again! Any ideas
to fix that you need to edit vbookie.php file.
https://vborg.vbsupport.ru/showpost.php?p=1352683&postcount=1617
blue6995
04-01-2009, 03:01 PM
to fix that you need to edit vbookie.php file.
https://vborg.vbsupport.ru/showpost.php?p=1352683&postcount=1617
Worked a treat. Thank you so much
opsman
04-02-2009, 05:46 AM
that worked a treat, and i'm using vbcredits without any issues
Higot one small issue I have a member named L'Raine and she can earn points but when someone tries to donate we get a database error with the username having the @ in it, see error below
Invalid SQL:
update frmuser set vbookie_cash = vbookie_cash + '500' where username = 'l'raine';
you can see the ' is causing a problem, this happened when I tried donating manually from admincp
plazzman
04-03-2009, 06:28 AM
Yes, finally got this working. Excellent.
Last question, if I want to write a plugin for richest users (by using vbookie_get_richest), what exactly do I have to write?
merk_aus
04-06-2009, 10:17 AM
Thanks hopefully we can convince a coder to come up with a new version of this so we do not have to continue to edit files
Thanks hopefully we can convince a coder to come up with a new version of this so we do not have to continue to edit files
Apparently, Andreas won't allow it for some reason.
Strik3
04-06-2009, 04:01 PM
Bei mir kommt immer dieser Fehler:
You may not bet on this event. You have placed 0 bet(s) on this Event.
Obwohl ich eingestellt hab des diese Gruppe Wetten darf? An was liegt des?
Ich hab 3.7.4
Andreas
04-09-2009, 05:43 PM
Apparently, Andreas won't allow it for some reason.
The reason is pretty simple: Code Quality.
In order to rework this into a decent quality modification, a major refactoring (ending up in a total rewrite) would be necessary.
Unfortunately I do not have the time to do so.
merk_aus
04-10-2009, 06:50 AM
I meant finding a coder to start one from scratch, they cant stop people from coding one from scratch and it is what im looking into at the moment
merk_aus
04-11-2009, 10:28 AM
Good Evening Ladies and Gentlemen,
It is a fantastic day for those of us who love this fantastic mod, with soooo many downloads and installs it is shame that the mod is no longer ongoing.
In the past I have spoken to a number of coders about recreating this, coding from scratch, and have even paid some deposits however the coders have run off with the money and never done anything about this being set up and updated.
Well after much deliberations, and a number of private messages to Andreas we may have some movement on an update to this product finally.
Despite in the first thread saying that this code will not be ongiven, and there will be no updates from him I must have caught Andreas on a good day because I have been given permission from Andreas to create an updated ported version of vbookie...
I'm fine if you are going to build a free version if it will fully follow vBulletin Code standards, etc. - but I will definitly not give permission for a commercial version.
If you want to build a free version, send me the code when you are done so I can take a look at it - if it meets the conditions set above you'll get permission to release it, otherwise you won't.
Is what I was sent in the Private Message, and although I do not like sharing private messages I thought this shows that we can continue to work on this to port it and add new features.
I am only a beginner when it comes to coding, but can do things it just takes a while and therefore I would like to put the call out there for ideas you would like to see in a new version of vbookie ONLY For 3.8.x - and also put the call out for any coders who would like to help out in the recreation of it.
Reply to this thread or send me a pm to discuss future and hope it gives us all hope of a new improved vbookie - if I am coding myself (to the standards) we are probably looking at a couple of months before its done but if more coders come on and we do our part it could be slightly quicker.
EDIT: I forgot to mention it will be a major code rewrite for it however working of the base of Andreas version.
hexor
04-11-2009, 01:16 PM
Whenever i SET THE USERGROUP OPTIONS FOR A USERGROUP IN VBOOKIE TO YES ..(ALL 3) WHEN I SET ALL 3 OPTIONS OF VBOOKIE TO YES ON THE USERGROUP PERMISSIONS THEY DONT GET SET TO YES ..IT SAYS SAVED SUCCESSFULLY BUT THE NEXT TIME I VIEW THE OPTIONS THEY ARE BACK TO NO OTHER THAN YES AUTOMATICALLY ....IT HAPPENS ONLY ON THE VBOOKIE OPTIONS ..CAN SOMEONE PLEASE HELP ME HERE ? I HAVE INSTALLED VBOOKIE ON 3.8.1 AND EDITED THE PLUGIN CODE AS WELL AND DONE ALL TEMPLATE EDITS PERFECCTLY ...PLEASE HELP ME GUYS ...
Sooner95
04-11-2009, 09:14 PM
Cool merk, I look forward to the next version that works with 3.8
merk_aus
04-12-2009, 08:13 AM
Whenever i SET THE USERGROUP OPTIONS FOR A USERGROUP IN VBOOKIE TO YES ..(ALL 3) WHEN I SET ALL 3 OPTIONS OF VBOOKIE TO YES ON THE USERGROUP PERMISSIONS THEY DONT GET SET TO YES ..IT SAYS SAVED SUCCESSFULLY BUT THE NEXT TIME I VIEW THE OPTIONS THEY ARE BACK TO NO OTHER THAN YES AUTOMATICALLY ....IT HAPPENS ONLY ON THE VBOOKIE OPTIONS ..CAN SOMEONE PLEASE HELP ME HERE ? I HAVE INSTALLED VBOOKIE ON 3.8.1 AND EDITED THE PLUGIN CODE AS WELL AND DONE ALL TEMPLATE EDITS PERFECCTLY ...PLEASE HELP ME GUYS ...
Rebuild the bitfields it is mentioned approx 134 times within the 146 pages
onlinejalsa
04-16-2009, 08:39 PM
hello can anybody tell me how can i assign 500000 points to all the members in the site
merk_aus
04-17-2009, 02:08 PM
Mass Credit Update
That's assuming vb credits integration though doesn't it?
onlinejalsa
04-18-2009, 01:06 AM
hello,
i have one problem. only admin and super mods can do betting. but normal users cant do any betting. i have given permissions for each and every usergroup but still normal user cant bet . how can i make certain user groups to make bet
merk_aus
04-18-2009, 03:06 PM
Same sort of thing you can update through user panel, you didn't specify what credits system you were using so i only said the one i was using - unless you be specific people can't help.
- Does anyone have this actually working 100% properly on 3.8.2?
- Onlinejalsa - have you looked through usergroup permissions and rebuilt the bitfields?
powerful_rogue
04-18-2009, 05:18 PM
Good Evening Ladies and Gentlemen,
It is a fantastic day for those of us who love this fantastic mod, with soooo many downloads and installs it is shame that the mod is no longer ongoing.
In the past I have spoken to a number of coders about recreating this, coding from scratch, and have even paid some deposits however the coders have run off with the money and never done anything about this being set up and updated.
Well after much deliberations, and a number of private messages to Andreas we may have some movement on an update to this product finally.
Despite in the first thread saying that this code will not be ongiven, and there will be no updates from him I must have caught Andreas on a good day because I have been given permission from Andreas to create an updated ported version of vbookie...
Is what I was sent in the Private Message, and although I do not like sharing private messages I thought this shows that we can continue to work on this to port it and add new features.
I am only a beginner when it comes to coding, but can do things it just takes a while and therefore I would like to put the call out there for ideas you would like to see in a new version of vbookie ONLY For 3.8.x - and also put the call out for any coders who would like to help out in the recreation of it.
Reply to this thread or send me a pm to discuss future and hope it gives us all hope of a new improved vbookie - if I am coding myself (to the standards) we are probably looking at a couple of months before its done but if more coders come on and we do our part it could be slightly quicker.
EDIT: I forgot to mention it will be a major code rewrite for it however working of the base of Andreas version.
How about trying to link it up with Ladbooks, William Hill? A bit like the "About Today" mod where you can see the list of sporting events and then just click "Create Vbookie event" and it will automatically create an event using the current odds offered on their webiste.
Also when you go to create a new event in a vbookie forum, abolish the need to create a title, write something and then click on the "Yes, post a vbookie event with this thread" - Make it so it goes straight to the vbookie page - If that makes sense.
merk_aus
04-19-2009, 10:54 AM
it makes sense yes - I will look into it all thanks for the suggestions
shaynehammy
04-22-2009, 09:00 AM
How do igo about getting Vbux to appear in the Vbookie settings? I've purchased VBplaza and cant remember how i got this working last time!
Any help appreciated!
DanielN24
04-22-2009, 06:48 PM
Does anybody have this installed on Version 3.8.2?
DanielN24
04-24-2009, 04:37 AM
I installed this in 3.8.2 but my only problem is that when you check the box "Yes, post a vBookie Event with this thread" it sends you back to the page like you just created a regular thread...
DS MrSinister
04-26-2009, 10:52 PM
I installed this in 3.8.2 but my only problem is that when you check the box "Yes, post a vBookie Event with this thread" it sends you back to the page like you just created a regular thread...
i have it installed.
this post here should help you..
https://vborg.vbsupport.ru/showpost.php?p=1770679&postcount=2152
DanielN24
04-27-2009, 12:01 AM
Thanks!
Now I would like to know how to remove "iCash" from the navbar.. When I went to the navbar template, and did a search for "iCash" it said "not found"...
I would like to replace "icash" to "vbookie"
DanielN24
04-27-2009, 02:28 AM
Nevermind I got it working. Thanks for the help.
DanielN24
04-27-2009, 06:41 AM
Only problem I have now is where the image should be next to the thread it just says "vBookie" the money sign isn't there...
DS MrSinister
04-27-2009, 05:18 PM
Only problem I have now is where the image should be next to the thread it just says "vBookie" the money sign isn't there...
for each style you have installed upload vbookie_posticon.gif to each misc folder.
uprentiss
04-29-2009, 06:12 PM
is this available for 3.8.1???
id really love to have this add-on
uprentiss
04-30-2009, 12:53 AM
ok i read where u got to edit something before it works for 3.8.1
can someonbe be more specific on what im posed to edit n where
DanielN24
04-30-2009, 01:53 AM
ok i read where u got to edit something before it works for 3.8.1
can someonbe be more specific on what im posed to edit n where
Read the posts, I did it and it worked fine.. If you need further help send me a link to your forum or your msn and I will gladly help you.
Dribbles
05-10-2009, 07:28 PM
Hi. I got everything working fine, but when I cancel a bet out, no one who bet gets their money back. Anyone know how to fix this?
markhendo1986
05-11-2009, 09:20 AM
Hi there,
Got this installed and all is up and running. Members are able to post a new event to bet on and are able to bet/settle bets.
However, when members are betting, their vCash doesn't go down and automatically returns to 500 vCash even after betting and losing their cash.
Any ideas how to fix this? I've not been 'giving to the poor' or anything like that...
highblue
05-14-2009, 09:19 PM
Reply to this thread or send me a pm to discuss future and hope it gives us all hope of a new improved vbookie - if I am coding myself (to the standards) we are probably looking at a couple of months before its done but if more coders come on and we do our part it could be slightly quicker.
EDIT: I forgot to mention it will be a major code rewrite for it however working of the base of Andreas version.
If you'd add an option to settle bets with more than one Winner checked in the winning column, then it could be fairly effective for horse racing. We've been using it for horse racing in my forum, but the only bet that can be made is Win. There's no payout for Place or Show unless you create three separate events for the same race, and then there's the issue of three horses paying Show money. If there was an option to click "Number of Winners" and select a number, then I'd click "3" and it would calculate the Show payouts for all three... in the Place event I'd click "2" to get the payouts. Actually, if it had an option to calculate the odds by a percentage like "Pay 50% odds" or "Set Percentage Payout", that would be perfect for the Place or Show payouts in a horse racing event.
Our currency of choice is Reputation Points and it works only if the vCash option or one of the other cash options is selected in CP Admin. If one of those options isn't selected, it doesn't do the calculations. Of course that means having the "vCash 500" icon sitting there useless and meaningless, but it does deduct or add Reputation Points.
There are lots of other options I'd like to see, but this could be a really popular add-on if it's done right and has enough available options. It's got the foundation of one.
EDIT: Another option that needs to be added - desperately needs to be added - is the option to change your bet before the bet cut-off expires. Several people in my forum have accidentally placed the wrong bet and wanted to change it, but they're basically out of luck if they do make the wrong bet. To me it seems that's a necessary option.
Not lazy at all but this thread has 147 pages and I just need short answer:
Does this great mod work on 3.6.7?
THANK YOU! :)
JJ the Fox
05-20-2009, 02:14 AM
Yes.
Yes.
Thank you JJ.
I installed everything but one thing I can't find:
In Template navbar
FIND
--------------------------------------------------
<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
Because below that I am supposed to add:
--------------------------------------------------
BELOW that ADD
--------------------------------------------------
<td class="vbmenu_control"><a href="vbookie.php?$session[sessionurl]">$vbphrase[vbookie]</a></td>
Not sure if it would work without this because to me it looks like a navbar shortcut.
Here is my navbar and I can't figure out where to add that code:
<script type="text/javascript">
<!--
function openChatbox () {
chatbox = window.open('chatbox.php','chatbox','height=330,wi dth=650,directories=no,location=no,menubar=no,resi zable=yes,status=no,toolbar=no,scrollbars=yes');
}
//-->
</script>
<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td> </td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
<if condition="$show['member']">
<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
</div>
</td>
<else />
<td class="alt2" nowrap="nowrap" style="padding:0px">
<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
</td>
</if>
</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>
<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->
<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php?do=process" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
<div style="margin-top:$stylevar[cellpadding]px">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</div>
</form>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
$template_hook[navbar_search_menu]
</table>
</div>
<!-- / header quick search form -->
</if>
<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
$template_hook[navbar_quick_links_menu_pos1]
<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
$template_hook[navbar_quick_links_menu_pos2]
<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
$template_hook[navbar_quick_links_menu_pos3]
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->
<!-- PAGENAV POPUP -->
<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>
<!-- / PAGENAV POPUP -->
</if>
<!-- / PAGENAV POPUP -->
</if>
<if condition="THIS_SCRIPT=='index' OR THIS_SCRIPT=='forumdisplay'">
<br>
<center><script language="javascript" type="text/javascript">
<!--//
document.write('<iframe src="http://bodogticker.bodoglife.com/flashticker/ticker_728x90.php?affiliateID=2589331-10DF6" width="728" height="90" frameborder="0" marginwidth="0" magingheight="0">');
document.write('</iframe>');
//-->
</script></center>
<br>
<!-- rightside column -->
<table border="0" width="100%" class="page" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top">
<!-- / rightside column -->
</if>
$afm_menu
$welcomeheaders
$lgvmessage
Biker_GA
05-20-2009, 02:58 AM
Check your header template.
Check your header template.
Yeah! It was there! THANK YOU!
Now everything looks like installed but when I try to edit usergroup (admin first) and I set vBookie to 'all yes', and click update - nothing happens. :confused:
I went to Forums & Moderators and the same thing happens - I set it to 'yes' but it automatically changes it to 'no'
Biker_GA
05-20-2009, 03:32 AM
It's been eons since I've run this particular modification. Can't remember all the locations you need to set with this one.
It's been eons since I've run this particular modification. Can't remember all the locations you need to set with this one.
Thank you for the response, Biker.
Yeah, I don't know. It doesn't wanna change from 'no' to 'yes' in usergroup and forums & moderators. I checked under vBulletin Options and it says that it's active. I see it in the navbar and when I click on it it looks fine. But I can't make it turn on :(
In usergroup manager it says:
vBookie Event Permissions
Can Post vBookie Events No
Can Edit other people's vBookie Events No
Can Bet on vBookie Events No
and I cannot set it to yes :(
Ok, now I rebuilt bitfields and I was able to edit the usergroup manager.
But when I wanted to test how it works I got this error:
Parse error: syntax error, unexpected '<' in /home/cappersl/public_html/forum/newthread.php(244) : eval()'d code on line 5"
Anyone, please?
Thank you!
Biker_GA
05-20-2009, 12:04 PM
If you look at the top, it does say this mod isn't compatible with 3.6+. ;)
If you look at the top, it does say this mod isn't compatible with 3.6+. ;)
Oh, but it is. I asked in here before I installed it, members confirmed and I checked couple of 3.6.7 PL1 boards and it works just fine. And there is something about this error (probably something in vbookie.php) but I don't know what it is or how to fix it.
Parse error: syntax error, unexpected '<' in /home/cappersl/public_html/forum/newthread.php(244) : eval()'d code on line 5"
Thanks a million to whoever has a suggestion or the instruction on how to fix this issue.
DobieGillis?
05-20-2009, 01:30 PM
Oh, but it is. I asked in here before I installed it, members confirmed and I checked couple of 3.6.7 PL1 boards and it works just fine. And there is something about this error (probably something in vbookie.php) but I don't know what it is or how to fix it.
Parse error: syntax error, unexpected '<' in /home/cappersl/public_html/forum/newthread.php(244) : eval()'d code on line 5"
Thanks a million to whoever has a suggestion or the instruction on how to fix this issue.
mine is working on 3.8.2
A bit different but this is the error I'm getting now every time I try to start new thread:
Parse error: syntax error, unexpected $end in /home/cappersl/public_html/newthread.php(244) : eval()'d code on line 5
I really hope someone could help me here.
THANK YOU IN ADVANCE! :)
A bit different but this is the error I'm getting now every time I try to start new thread:
Parse error: syntax error, unexpected $end in /home/cappersl/public_html/newthread.php(244) : eval()'d code on line 5
I really hope someone could help me here.
THANK YOU IN ADVANCE! :)
I found the error!!! :)
There was "}" missing in "vBookie: Redirect to vbookie.php when posting new Event" plugin at the very end.
sportwiz628
05-21-2009, 12:43 AM
So would this work on my 3.8.2 forum?
Please answer..thanks!
Biker_GA
05-21-2009, 01:06 AM
Extremely doubtful...
sportwiz628
05-21-2009, 01:11 AM
What do you think would happen if I tried it out though.
DS MrSinister
05-21-2009, 09:36 AM
here is the fixed for 3.6 +. make sure you do all the edits and rebuilld bitfields...
https://vborg.vbsupport.ru/showthread.php?p=1035092#post1035092
theybannedme
05-27-2009, 09:20 PM
I have this working for 3.8.1 PL1. This works for any forum version with the right modifications done. I will write up exactly what you guys need to do to get it working.
1: Upload all files in upload folder
2: Import product-bookiehack.xml
3: Goto ACP > Plugins & Products > Plugin Manager
4: Edit Redirect to vbookie.php when posting new Event by replacing the entire code with this if ($newpost['postvbookieevent'])
{
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
eval(print_standard_redirect('redirect_postthanks_ moderate', true, false));
}
5: In template Newthread find $threadmanagement. Above that add the following code <if condition="$show['vbookieevent']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_vbookieevent]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postvbookieevent"><input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" $checked[postvbookieevent] />$vbphrase[yes_post_a_vbookieevent_thread]</label></div>
</div>
</fieldset>
</if>
6: Download ICash (https://vborg.vbsupport.ru/showthread.php?t=165962) and install
7: Change ICash Options. Change the Money Row to vbookie_cash
This will definately work for you. I have left off showing the points in the postbit and the link in the navbar. If you need to add these the code is the same as the original.
Sorry but where exactly does Step #4 go? Thanks!
DS MrSinister
05-28-2009, 12:14 PM
*theybannedme
step 4 is the code replacement
just login to your admincp and goto Plugin & Products under this goto plugin manager and find vBookie: Redirect to vbookie.php when posting new Event and repalce the code with step 4.
powerful_rogue
05-28-2009, 06:52 PM
So would this work on my 3.8.2 forum?
Please answer..thanks!
Works fine on 3.8.2
merk_aus
05-30-2009, 06:40 AM
Ok Guys - I have started recoding this, slowly seem I am only new to coding - I am coding it all up to meet the new standards outlined by vBulletin. I can say that it will not work on vb4.0 when it is released - when the coding is finished it will however work on 3.8.x
Ok so here are some new features etc that will be in the new version:-
+ Ajax Betting Updates
You can open a betting event at 1/1 and when people bet on something the odds will improve for that bet, just like proper betting the odds will move up and down depending on what people are betting on - if someone bets 1000 credits on 1 event obviously that teams odds will become shorter while the other teams will blow out.
+ Ability to cater for Horse Racing
There will be a new selection option where you can select if this is a Horse Racing Event, this would allow you to add a "Place/Show" odds as well, this would also help if you run a motorsport betting system - you would be able to bet on a win or placing.
+ Easier installation
Our aim is to provide an easier installation, with limited template edits, we are hoping to make it a product install only - however as I mentioned I am only new to coding and therefore it would depend on how well things go.
-------------
I am still open to ideas, and am open to anyone with coding knowledge to help me out.
At the moment I am the only one Andreas has given the re-code permission to and my hope is to try and get this set up and running well... to work on 3.8.x and we will have to see what the coding involved with 4.0 is before deciding whether it would work on there.
If you are interested in helping please pm me.
dancue
05-30-2009, 12:27 PM
Ok Guys - I have started recoding this, slowly seem I am only new to coding - I am coding it all up to meet the new standards outlined by vBulletin. I can say that it will not work on vb4.0 when it is released - when the coding is finished it will however work on 3.8.x
Ok so here are some new features etc that will be in the new version:-
+ Ajax Betting Updates
You can open a betting event at 1/1 and when people bet on something the odds will improve for that bet, just like proper betting the odds will move up and down depending on what people are betting on - if someone bets 1000 credits on 1 event obviously that teams odds will become shorter while the other teams will blow out.
+ Ability to cater for Horse Racing
There will be a new selection option where you can select if this is a Horse Racing Event, this would allow you to add a "Place/Show" odds as well, this would also help if you run a motorsport betting system - you would be able to bet on a win or placing.
+ Easier installation
Our aim is to provide an easier installation, with limited template edits, we are hoping to make it a product install only - however as I mentioned I am only new to coding and therefore it would depend on how well things go.
-------------
I am still open to ideas, and am open to anyone with coding knowledge to help me out.
At the moment I am the only one Andreas has given the re-code permission to and my hope is to try and get this set up and running well... to work on 3.8.x and we will have to see what the coding involved with 4.0 is before deciding whether it would work on there.
If you are interested in helping please pm me.
YES!!
About time someone takes this on!! I have mine working for 3.8 already, but I would love to have the new features.
I'll definitely be dropping a few suggestions in this thread when I get them. The ones you mentioned already sound great!
dancue
05-31-2009, 01:06 PM
For starters, I'd like for my users to be able to make bets between other users. If a person wants to bet x amount of money on a certain event, they can post it along with the amount of people (limit) they'd like to bet that amount against.
Whoever creates a bet can send people invites to bet, or anyone can bet depending on what that user wants to do.
highblue
06-01-2009, 11:29 PM
Ok Guys - I have started recoding this, slowly seem I am only new to coding - I am coding it all up to meet the new standards outlined by vBulletin. I can say that it will not work on vb4.0 when it is released - when the coding is finished it will however work on 3.8.x
Ok so here are some new features etc that will be in the new version:-
+ Ajax Betting Updates
You can open a betting event at 1/1 and when people bet on something the odds will improve for that bet, just like proper betting the odds will move up and down depending on what people are betting on - if someone bets 1000 credits on 1 event obviously that teams odds will become shorter while the other teams will blow out.
+ Ability to cater for Horse Racing
There will be a new selection option where you can select if this is a Horse Racing Event, this would allow you to add a "Place/Show" odds as well, this would also help if you run a motorsport betting system - you would be able to bet on a win or placing.
+ Easier installation
Our aim is to provide an easier installation, with limited template edits, we are hoping to make it a product install only - however as I mentioned I am only new to coding and therefore it would depend on how well things go.
-------------
I am still open to ideas, and am open to anyone with coding knowledge to help me out.
At the moment I am the only one Andreas has given the re-code permission to and my hope is to try and get this set up and running well... to work on 3.8.x and we will have to see what the coding involved with 4.0 is before deciding whether it would work on there.
If you are interested in helping please pm me.
Really can't thank you enough for working on this! I sure wish I could write code because I'd be trying to help every step of the way. As it is, about all I can offer are a few suggestions.
I'll just hit the first two off the top of my head... the Edit VBookie Event function should be a clickable button instead of clickable white text. That's already confused a couple of people in my forum, and I'll admit it's not as people-friendly as it could be... more easily visible, that is.
I'd also go back to an earlier suggestion. People should have the option to change their bets before the cut-off date. Particularly in the case of horseracing, that would clean up any problems connected to scratched horses. We ran into that issue last weekend, and it wasn't a problem for me to go into Admin CP and give them their points back, but if they'd been able to change their own bets, it would've saved me some time. Besides, horseracing bettors will often change their minds anyway. ;)
I'm sure I'll have more suggestions as you go along, but those two are at the top of the list right now... sorry, and one other problem. The other day, when a horse scratched out of a race, I tried to change the Number of Outcomes. So I reduced the Number of Outcomes by one and clicked the button to Update Event. Even though it was supposed to reduce the number by one (I assume, since I changed the number), it still showed the same Number of Outcomes as the original setting after I'd clicked Update. In short, reducing the Number of Outcomes had no effect at all. It wasn't a major problem... just a glitch in the original code, I suppose.
Thanks again, and I'll try to come up with some more suggestions. I really think this could be a MOTM because it's definitely got tons of potential. I'd vote for it!
Biker_GA
06-01-2009, 11:34 PM
I'd love to see this mod back on my site. We used to bet on everything! :D
highblue
06-01-2009, 11:51 PM
One of the bettors on my site just brought up a really good and very important point.
vBookie would be more workable for horseracing if the Ajax calculations for a pari-mutuel type of betting system could be disabled. We've got some excellent handicappers in our forum, and if all of them bet on the same horse, or even if most of them bet on the same horse - knowing it's going to win - then the vBookie odds on that race wouldn't even come close to reflecting the real world odds in the race.
In the real world race, that winning horse might go off at 1-1 or better, but in the vBookie race with most of the people betting on it, the horse could go off at 1-20 odds.
So for horseracing purposes, ideally we would have the option to disable the Ajax function that's calculating the odds based on the amounts being bet on the event. It might also be useful to have the option of disabling it for other events too.
New Joe
06-03-2009, 03:43 AM
I downloaded this but it doesn't seem to work,
I clicked on Manage Products in my Admin Panel, then added Import and Imported the product XML, all installed but it doesn't work.
It show in my vBulletin Options but when I go to make a Thread the option isn't there to use the vBookie.
Any ideas why?
markhendo1986
06-03-2009, 08:16 AM
Hi there,
Got this installed and all is up and running. Members are able to post a new event to bet on and are able to bet/settle bets.
However, when members are betting, their vCash doesn't go down and automatically returns to 500 vCash even after betting and losing their cash.
Any ideas how to fix this? I've not been 'giving to the poor' or anything like that...
Is anybody able to help me regarding this problem? I've managed to get this up and running in the past before but for some reason, this just isn't happening...
DS MrSinister
06-03-2009, 12:53 PM
I downloaded this but it doesn't seem to work,
I clicked on Manage Products in my Admin Panel, then added Import and Imported the product XML, all installed but it doesn't work.
It show in my vBulletin Options but when I go to make a Thread the option isn't there to use the vBookie.
Any ideas why?
sounds like you are running vb 3.6 or high.. you need to apply the fix and make the template edits. so it will work..
https://vborg.vbsupport.ru/showthread.php?p=1035092#post1035092
New Joe
06-03-2009, 02:19 PM
sounds like you are running vb 3.6 or high.. you need to apply the fix and make the template edits. so it will work..
https://vborg.vbsupport.ru/showthread.php?p=1035092#post1035092
Done that but it still doesn't show in the options when I go to start a new Thread.
DS MrSinister
06-04-2009, 12:09 AM
did you set the usergroup permissions?
New Joe
06-04-2009, 09:23 AM
did you set the usergroup permissions?
There's nothing showing in the usergroup permissions about it.:(
DS MrSinister
06-05-2009, 05:54 PM
reupload the files
and
rebuild bitfields
admincp/index.php?do=buildbitfields
DobieGillis?
06-08-2009, 09:58 PM
vBookie & 3.6
The posting of vbookie events in 3.6 is broken because the hook used has moved.
To fix this problem, the following plugin must be edited ;
vBookie: Redirect to vbookie.php when posting new Event
Replace the plugin code with this ;
if ($newpost['postvbookieevent'])
{
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
eval(print_standard_redirect('redirect_postthanks_ moderate', true, false));
}
Note: I'm not actually using vbookie atm so I can't comment on any other problems.
you rock!
mike2902
06-10-2009, 02:20 AM
This is good news..Id like to see the ability to put in a spread for games. Or put straight up odds for boxing and the like.
CyprusTM
06-22-2009, 04:29 AM
is this good for Football (soccer) predictions? when will it be available for version 3.8 ?
Id love to use this on my forum for the upcoming season
Cheers
aranthorn
07-06-2009, 02:24 PM
If you want to use vbbux as the cash system, here's what your functions_vbookie.php file should contain.
I just made the edits and tested it out, works fine.
This is a copy of the ENTIRE contents of that file.
<?php
function vbookie_get_user_bet_count($item_id=0)
{
global $vbulletin;
$user_n_bets_placed_result = $vbulletin->db->query_first("
SELECT COUNT(bet_id) AS user_n_bets_placed
FROM " . TABLE_PREFIX . "vbookie_bets_placed
WHERE userid = " . $vbulletin->userinfo['userid'] . " AND item_id = $item_id
");
return (int)$user_n_bets_placed_result['user_n_bets_placed'];
}
function vbookie_get_user_cash()
{
global $vbulletin;
switch ($vbulletin->options['vbookiecash'])
{
case 'vcash':
$cash = (int)$vbulletin->userinfo['vbookie_cash'];
break;
case 'ucash':
$cash = (int)$vbulletin->userinfo['ucash'];
break;
case 'ebux':
$cash = (int)$vbulletin->userinfo['vbbux'];
break;
case 'custom':
($hook = vBulletinHook::fetch_hook('vbookie_get_user_cash') ) ? eval($hook) : false;
}
return $cash;
}
function vbookie_take_user_cash($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=" . $vbulletin->userinfo['userid']);
break;
case 'ucash':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=ucash-$amount WHERE userid=" . $vbulletin->userinfo['userid']);
break;
case 'ebux':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbux=vbbux-$amount WHERE userid=" . $vbulletin->userinfo['userid']);
$cash = (int)$vbulletin->userinfo['ebux'];
break;
case 'custom':
($hook = vBulletinHook::fetch_hook('vbookie_take_user_cash' )) ? eval($hook) : false;
}
}
function vbookie_give_user_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 vbbux=vbbux+$amount WHERE userid=$userid");
$cash = (int)$vbulletin->userinfo['vbbux'];
break;
case 'custom':
($hook = vBulletinHook::fetch_hook('vbookie_give_user_cash' )) ? eval($hook) : false;
}
}
function vbookie_abandon_event($item_id=0)
{
global $vbulletin;
if ((int)$item_id)
{
$q = "UPDATE ". TABLE_PREFIX . "vbookie_items SET item_status='ABANDONED' WHERE item_id=$item_id";
$vbulletin->db->query($q);
// update running totals
$q = "UPDATE " . TABLE_PREFIX . "vbookie_item_options SET option_amount_staked=0, option_n_bets_placed=0 WHERE item_id=$item_id";
$vbulletin->db->query($q);
// update running totals
$q = "UPDATE " . TABLE_PREFIX . "vbookie_items SET item_n_bets_placed=0, item_amount_staked=0 WHERE item_id=$item_id";
$vbulletin->db->query($q);
$result = $vbulletin->db->query_read("SELECT p.userid, p.bet_amount_placed FROM " . TABLE_PREFIX . "vbookie_bets_placed AS p LEFT JOIN " . TABLE_PREFIX . "user AS u ON(u.userid = p.userid) WHERE p.item_id=$item_id");
while ($bet = $vbulletin->db->fetch_array($result))
{
// pay the money back
vbookie_give_user_cash($bet['userid'], $bet['bet_amount_placed']);
}
}
}
function vbookie_get_richest()
{
global $vbulletin;
switch ($vbulletin->options['vbookiecash'])
{
case 'vcash':
$q = "SELECT username, vbookie_cash AS cash FROM " . TABLE_PREFIX . "user ORDER BY cash DESC LIMIT 5";
break;
case 'ucash':
$q = "SELECT username, ucash AS cash FROM " . TABLE_PREFIX . "user ORDER BY cash DESC LIMIT 5";
break;
case 'ebux':
$q = "SELECT username, vbbux AS cash FROM " . TABLE_PREFIX . "user ORDER BY cash DESC LIMIT 5";
break;
case 'custom':
($hook = vBulletinHook::fetch_hook('vbookie_get_richest')) ? eval($hook) : false;
}
return $vbulletin->db->query_read($q);
}
function vbookie_do_charity()
{
global $vbulletin;
if ($vbulletin->options['vbookiegivetopoor'])
{
switch ($vbulletin->options['vbookiecash'])
{
case 'vcash':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=" . $vbulletin->options['vbookiegivetopoor'] . " WHERE vbookie_cash < " . $vbulletin->options['vbookiegivetopoor']);
break;
case 'ucash':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=" . $vbulletin->options['vbookiegivetopoor'] . " WHERE ucash < " . $vbulletin->options['vbookiegivetopoor']);
break;
case 'ebux':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbux=" . $vbulletin->options['vbookiegivetopoor'] . " WHERE vbbux < " . $vbulletin->options['vbookiegivetopoor']);
break;
case 'custom':
($hook = vBulletinHook::fetch_hook('vbookie_do_charity')) ? eval($hook) : false;
}
}
}
function vbookie_delete_event($eventinfo)
{
global $vbulletin;
// if we're deleting an event that has bets on it but hasn't yet been settled,
// we must give people their money back.
if ($eventinfo['item_status'] == 'OPEN' OR $eventinfo['item_status'] == 'CLOSED')
{
// abandon the bet
vbookie_abandon_event($eventinfo['item_id']);
}
$vbulletin->db->query_write("DELETE FROM ". TABLE_PREFIX . "vbookie_bets_placed WHERE item_id=$eventinfo[item_id]");
$vbulletin->db->query_write("DELETE FROM ". TABLE_PREFIX . "vbookie_item_options WHERE item_id=$eventinfo[item_id]");
$vbulletin->db->query_write("DELETE FROM ". TABLE_PREFIX . "vbookie_items WHERE item_id=$eventinfo[item_id]");
// update the thread this was attached to to remove the event.
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "thread SET vbookie_item_id=0 WHERE vbookie_item_id=$eventinfo[item_id]");
}
?>
aranthorn
07-06-2009, 02:26 PM
is this good for Football (soccer) predictions? when will it be available for version 3.8 ?
Id love to use this on my forum for the upcoming season
Cheers
That's exactly what I had to install it for.
Running on 3.7.1 (because I got sick of upgrading vbulletin every 2 weeks)
Viruseater
07-15-2009, 01:47 AM
this has probably been covered but in a thread with 150 pages of replies, and the terrible search engine vb has I can't find this answer.
I've got everything working, except changing the dates of the lines opening. I can't edit or set either. does this make sense? I need to stop an event on aug 1 but it stays at the date i made the event at 1am.
thoughts?
Chase
07-20-2009, 08:22 PM
Any updates on the progress of the rewrite of this script. I really want to use this... but I want a stable version.
Out of curiosity.... does anyone with 3.8.3 installed have it working while using these instructions? https://vborg.vbsupport.ru/showpost.php?p=1770679&postcount=2152. If so, are these the ONLY instructions necessary needed to get this to work on 3.8.3?
Viruseater
07-20-2009, 08:31 PM
Yes, I'm using it with 3.8.3 and it works. Using those instructions. well from someone else, but the same steps, and it's stable.
EDIT: except the iCash. no idea if that works.
ALso, there are two steps missing in that response.
1. you must rebuild the bit fields after install. Put this at the end of your forum URL to do it: admincp/index.php?do=buildbitfields
2. Set the permissions. go to the forums, and permissions and make sure the right groups are assigned to be able to create and edit events.
Finally, the step to include the block where you search for $threadmanagement or whatever is critical. this must be done in ALL your themes or it will only work in the ones you do the hack to. I mean it's the only way to get the vbookie options visible.
I use TMS so I can edit my master template and it flows to all the themes I have. very handy
SMMensans
07-21-2009, 05:01 PM
In the vBookie ReadMe file it gives the following instructions:
In Templates postbit/postbit_legacy
FIND
--------------------------------------------------
$vbphrase[posts]: $post[posts]
--------------------------------------------------
BELOW that ADD
--------------------------------------------------
<if condition="$vboptions['vbookiecashon']">
<br />$vbphrase[vbookie_vcash]: $post[vbookie_cash]
</if>
--------------------------------------------------
When I search the postbit and postbit_legacy templates it does not find the string:
$vbphrase[posts]: $post[posts]
Anyone have any ideas about this?
Running vBulletin 3.8.3
DS MrSinister
07-21-2009, 10:10 PM
it should find it...
try to search for this....
$post[posts]
linfield
07-22-2009, 08:56 PM
Will the orginal vbookie hack work for 3.7? I havent a clue about changing codes etc..
merk_aus
07-23-2009, 02:02 AM
The recoding of vBookie which is being labelled as vBookie 2.0 that I am working on (with the blessing of Andreas) works out of the box on 3.8.3 meaning you download the file, upload the files needed and make just one template edit and install the product and it works.
It is written so it handles numerous points system including vBCredits, vBux, and most other popular points/credits system - without any template/php file edits it is a simple drop down menu to select the cash/credits/points system that you use and an option to change the field in the database if you have named it something else.
It also has the option to change the overall name: where it says vBookie Event you can change that to Virtual Betting etc more or less whatever you want.
So that is the first steps completed it works out of the box and allows some better customisation, now I am turning my focus to be working on adding additional features.
A number of bugs have been fixed including one that almost ruined my website where the users get their money back plus their winnings - in real life betting this does not happen.
I found that if people put 100 credits on an event that was paying 2/1 if that event won they would get the 100 credits they originally bet back, as well as 200 further credits for winning meaning if you have multiple bets available then your users can cheat and bet 100 credits on two outcomes and not lose any credits overall as it was handing money back to them.
So I have fixed this bug to react like real betting... and have already added one feature where you can select if an event is a race eg: Horse Race, Motorsport Race which allows you to enter a win price and place price then when selecting the outcome of the event there are two columns one for the Winning Horse/Driver/Car and one for the Horses/Drivers/Cars that finished with a placing.
So as I mentioned when I first started I am far from being a top notch coder and so work continues on it trying to find and add further features - I am considering entering a final beta stage of what I have at the moment and releasing it as vBookie 2.0 and then continue to work and add further features to release as 2.1, 2.2, 2.3 etc etc.
fodboldforumdk
07-23-2009, 10:55 AM
Hi,
I cant remember how to reset vbookie points back to 500.
Anyone can help me out??
Cheers
MissKalunji
07-23-2009, 11:43 AM
execute this SQL query:
UPDATE user SET vbookie_cash=500;
Awesome stuff merk_aus!
Do you have a paypal account I can send you some money to? Hit me up by PM, I'd like to donate some coin your way.
Cheers,
Regs.The recoding of vBookie which is being labelled as vBookie 2.0 that I am working on (with the blessing of Andreas) works out of the box on 3.8.3 meaning you download the file, upload the files needed and make just one template edit and install the product and it works.
It is written so it handles numerous points system including vBCredits, vBux, and most other popular points/credits system - without any template/php file edits it is a simple drop down menu to select the cash/credits/points system that you use and an option to change the field in the database if you have named it something else.
It also has the option to change the overall name: where it says vBookie Event you can change that to Virtual Betting etc more or less whatever you want.
So that is the first steps completed it works out of the box and allows some better customisation, now I am turning my focus to be working on adding additional features.
A number of bugs have been fixed including one that almost ruined my website where the users get their money back plus their winnings - in real life betting this does not happen.
I found that if people put 100 credits on an event that was paying 2/1 if that event won they would get the 100 credits they originally bet back, as well as 200 further credits for winning meaning if you have multiple bets available then your users can cheat and bet 100 credits on two outcomes and not lose any credits overall as it was handing money back to them.
So I have fixed this bug to react like real betting... and have already added one feature where you can select if an event is a race eg: Horse Race, Motorsport Race which allows you to enter a win price and place price then when selecting the outcome of the event there are two columns one for the Winning Horse/Driver/Car and one for the Horses/Drivers/Cars that finished with a placing.
So as I mentioned when I first started I am far from being a top notch coder and so work continues on it trying to find and add further features - I am considering entering a final beta stage of what I have at the moment and releasing it as vBookie 2.0 and then continue to work and add further features to release as 2.1, 2.2, 2.3 etc etc.
Chase
08-02-2009, 10:16 PM
Is there an update on when version 2.0 will be released?
- random question... but how do you determine the odds of winning? i.e the 10/1 or 2/5? On games like football, soccer, ect. I don't know how this works??
dancue
08-04-2009, 12:05 AM
The recoding of vBookie which is being labelled as vBookie 2.0 that I am working on (with the blessing of Andreas) works out of the box on 3.8.3 meaning you download the file, upload the files needed and make just one template edit and install the product and it works.
It is written so it handles numerous points system including vBCredits, vBux, and most other popular points/credits system - without any template/php file edits it is a simple drop down menu to select the cash/credits/points system that you use and an option to change the field in the database if you have named it something else.
It also has the option to change the overall name: where it says vBookie Event you can change that to Virtual Betting etc more or less whatever you want.
So that is the first steps completed it works out of the box and allows some better customisation, now I am turning my focus to be working on adding additional features.
A number of bugs have been fixed including one that almost ruined my website where the users get their money back plus their winnings - in real life betting this does not happen.
I found that if people put 100 credits on an event that was paying 2/1 if that event won they would get the 100 credits they originally bet back, as well as 200 further credits for winning meaning if you have multiple bets available then your users can cheat and bet 100 credits on two outcomes and not lose any credits overall as it was handing money back to them.
So I have fixed this bug to react like real betting... and have already added one feature where you can select if an event is a race eg: Horse Race, Motorsport Race which allows you to enter a win price and place price then when selecting the outcome of the event there are two columns one for the Winning Horse/Driver/Car and one for the Horses/Drivers/Cars that finished with a placing.
So as I mentioned when I first started I am far from being a top notch coder and so work continues on it trying to find and add further features - I am considering entering a final beta stage of what I have at the moment and releasing it as vBookie 2.0 and then continue to work and add further features to release as 2.1, 2.2, 2.3 etc etc.
Will there be an option to have one on one betting? Let's say you want to bet on something against one person. Example: "I bet you 10K vbcredits that the Orlando Magic will win" I'd love to be able to challenge people this way.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.