View Full Version : Add-On Releases - vBookie for vBulletin 4
dartho
01-04-2012, 01:27 PM
eDIT THE VCASH PHRASE i THINK (oops - caps lock)
EasyEazy
01-07-2012, 10:28 AM
Is there a solution for removing the navbar tab but not the subnav options?
I tried both in the options and the plug in but its removes the sub nav options.
Thanks in advance
Killabee
01-12-2012, 12:13 AM
Running 4.1.9 vbulletin
installed mod and once filling out all information and trying to submit the event i get the following error message.
Database error in vBulletin 4.1.9:
Invalid SQL:
UPDATE vb_user SET credits=6 WHERE credits < 6;
MySQL Error : Unknown column 'credits' in 'where clause'
Error Number : 1054
Request Date : Wednesday, January 11th 2012 @ 06:06:16 PM
Error Date : Wednesday, January 11th 2012 @ 06:06:16 PM
Script : http://***********.com/vbookie.php
Referrer : http://**********.com/vbookie.php
IP Address : *************
Username : *******
Classname : vB_Database_MySQLi
MySQL Version : 5.1.60-community-log
dartho
01-12-2012, 02:29 AM
looks like a vbcredits or otehr money add-on integration issue
Killabee
01-13-2012, 02:35 AM
does this work with vbplaza / vbbux?
dartho
01-13-2012, 05:12 AM
Hooks are there so that others can integrate with it - check with the developers
acast
01-15-2012, 02:16 PM
Edit: It is working the code por Functions_vbookie.php to integrate vbbux in Custom.
<?php
// Last updated version 4.0.7 19-02-2010 10:07
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['ebux'];
break;
case 'vbCredits':
$cash = (int)$vbulletin->userinfo['credits'];
break;
case 'Reputation':
$cash = (int)$vbulletin->userinfo['reputation'];
break;
case 'Custom':
$cash = (int)$vbulletin->userinfo['vbbux'];
break;
}
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 ebux=ebux-$amount WHERE userid=" . $vbulletin->userinfo['userid']);
$cash = (int)$vbulletin->userinfo['ebux'];
break;
case 'vbCredits':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET credits=credits-$amount WHERE userid=" . $vbulletin->userinfo['userid']);
$cash = (int)$vbulletin->userinfo['credits'];
break;
case 'Reputation':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET reputation=reputation-$amount WHERE userid=" . $vbulletin->userinfo['userid']);
$cash = (int)$vbulletin->userinfo['reputation'];
break;
case 'Custom':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbux=vbbux-$amount WHERE userid=" . $vbulletin->userinfo['userid']);
$cash = (int)$vbulletin->userinfo['vbbux'];
break;
}
}
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 ebux=ebux+$amount WHERE userid=$userid");
$cash = (int)$vbulletin->userinfo['ebux'];
break;
case 'vbCredits':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET credits=credits+$amount WHERE userid=$userid");
$cash = (int)$vbulletin->userinfo['credits'];
break;
case 'Reputation':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET reputation=reputation+$amount WHERE userid=$userid");
$cash = (int)$vbulletin->userinfo['reputation'];
break;
case 'Custom':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbux=vbbux+$amount WHERE userid=$userid");
$cash = (int)$vbulletin->userinfo['vbbux'];
break;
}
}
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, ebux AS cash FROM " . TABLE_PREFIX . "user ORDER BY cash DESC LIMIT 5";
break;
case 'vbCredits':
$q = "SELECT username, credits AS cash FROM " . TABLE_PREFIX . "user ORDER BY cash DESC LIMIT 5";
break;
case 'Reputation':
$q = "SELECT username, reputation AS cash FROM " . TABLE_PREFIX . "user ORDER BY cash DESC LIMIT 5";
break;
case 'Custom':
$q = "SELECT username, vbbux AS cash FROM " . TABLE_PREFIX . "user ORDER BY cash DESC LIMIT 5";
break;
}
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 ebux=" . $vbulletin->options['vbookiegivetopoor'] . " WHERE ebux < " . $vbulletin->options['vbookiegivetopoor']);
break;
case 'vbCredits':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET credits=" . $vbulletin->options['vbookiegivetopoor'] . " WHERE credits < " . $vbulletin->options['vbookiegivetopoor']);
break;
case 'Reputation':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET reputation=" . $vbulletin->options['vbookiegivetopoor'] . " WHERE reputation < " . $vbulletin->options['vbookiegivetopoor']);
break;
case 'Custom':
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbux=" . $vbulletin->options['vbookiegivetopoor'] . " WHERE vbbux < " . $vbulletin->options['vbookiegivetopoor']);
break;
}
}
}
function vbookie_delete_event($eventinfo)
{
global $vbulletin;
($hook = vBulletinHook::fetch_hook('vbookie_delete_event')) ? eval($hook) : false;
// 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]");
}
function vbookie_reset_vcash($amount)
{
global $vbulletin;
$q = "UPDATE " . TABLE_PREFIX . "user SET vbookie_cash =".$amount;
return $vbulletin->db->query($q);
}
function vbookie_set_default_vcash($amount)
{
global $vbulletin;
$q = "ALTER TABLE " . TABLE_PREFIX . "user CHANGE COLUMN vbookie_cash vbookie_cash BIGINT(20) UNSIGNED NULL DEFAULT ".$amount;
return $vbulletin->db->query($q);
}
function vbookie_give_users_vcash($amount)
{
global $vbulletin;
$q="UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=vbookie_cash+$amount";
return $vbulletin->db->query($q);
}
// Additional pay/debit bookie
function vbookie_take_bookie_cash($userid, $amount)
{
global $vbulletin;
$bookie = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid=$userid");
switch ($vbulletin->options['vbookiecash'])
{
case 'vCash':
if($amount > $bookie['vbookie_cash'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=vbookie_cash-$amount WHERE userid=$userid");
}
break;
case 'uCash':
if($amount > $bookie['ucash'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ucash=ucash-$amount WHERE userid=$userid");
}
break;
case 'eBux':
if($amount > $bookie['ebux'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ebux=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET ebux=ebux-$amount WHERE userid=$userid");
}
break;
case 'Custom':
if($amount > $bookie['vbbux'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbux=0 WHERE userid=$userid");
}
else
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbux=vbbux-$amount WHERE userid=$userid");
}
break;
}
}
?>
ukgamblingforum
01-23-2012, 10:33 PM
Freshly installed on 4.0.4 - didn't do any template edits as instructed, activated everything, set usergroups ok and i still am not seeing anything under threads to create a bookie event (however i DO see a vbulletin menu up top).
When i go into usergroup perms for admins / supermods (groups who should be able to create events) - vbookie/vbulletin won't save the allow vbulletin options. HELP.!
ProFifaLeagues
01-23-2012, 10:37 PM
Freshly installed on 4.0.4 - didn't do any template edits as instructed, activated everything, set usergroups ok and i still am not seeing anything under threads to create a bookie event (however i DO see a vbulletin menu up top).
When i go into usergroup perms for admins / supermods (groups who should be able to create events) - vbookie/vbulletin won't save the allow vbulletin options. HELP.!
rebuild bit fields.... append this to your forums domain ...
/admincp/index.php?do=buildbitfields __________________:up:
dartho
01-24-2012, 05:08 AM
Freshly installed on 4.0.4 - didn't do any template edits as instructed, activated everything, set usergroups ok and i still am not seeing anything under threads to create a bookie event (however i DO see a vbulletin menu up top).
When i go into usergroup perms for admins / supermods (groups who should be able to create events) - vbookie/vbulletin won't save the allow vbulletin options. HELP.!
You create a new thread, and just around the usual "add poll to thread" check box, there should be an add vbokie event to trhead option
ukgamblingforum
01-24-2012, 09:31 PM
rebuild bit fields.... append this to your forums domain ...
/admincp/index.php?do=buildbitfields __________________:up:
already did that.
nada.
When i installed, it said no template edits necessary.. I'm beginning to think this is not true.. ?
James Bland
01-31-2012, 04:50 PM
---deleted---
fixed.
baileyom2011
02-01-2012, 03:33 PM
already did that.
nada.
When i installed, it said no template edits necessary.. I'm beginning to think this is not true.. ?
You might of tried this already, but I had the same problem, I deleted it in the admincp, the re-installed it from the beginning, and now it's working fine, no idea what happenend, but it might work for you too if you haven't tried already.
ukgamblingforum
02-01-2012, 05:44 PM
trying that now baileymom - thanks for the suggestion. The mods on my forum now taking bets on when i get this fixed. haha :(
sticky
02-02-2012, 07:02 AM
Any way to cap the max bet?
dartho
02-02-2012, 09:54 AM
Any way to cap the max bet?
I belive this works https://vborg.vbsupport.ru/showthread.php?p=1387588#post1387588
It won't stop multiple bets though
razorflowers
02-02-2012, 02:20 PM
Hi dartho,
I'm on vbulletin 4.1.0 and i've this error when i try to place a bet :
Database error in vBulletin 4.1.0:
Invalid SQL:
SELECT
SUM(bet_amount_won) AS sumbets
FROM vbookie_bets_placed
WHERE bet_settled='Y' AND userid=212
AND dateline > 315532800
GROUP BY userid;
MySQL Error : Unknown column 'dateline' in 'where clause'
Error Number : 1054
Request Date : Thursday, February 2nd 2012 @ 10:03:26 AM
Error Date : Thursday, February 2nd 2012 @ 10:03:26 AM
Script : http://www.*********/forum/vbookie.php
Referrer : http://www.*********/forum/parier-vos-points/7940-parier-vos-points-marseille-lyon-ligue-1-a.html
IP Address : **********
Username : ******
Classname : vB_Database
MySQL Version : 5.0.67-community-log
Do you have an idea ?
dartho
02-03-2012, 10:28 AM
Is this a new install or an upgrade?
I'm updating my test site to 4.1.10 now to check for issues.
dartho
02-03-2012, 10:37 AM
Just tested on my site (upgraded to 4.1.10) - no issues that I can see ...
DaninMS
02-05-2012, 08:34 PM
I have 4.1.7 , 5.34 php, 1.3.43 Apache & 5.092 mySQL and I'm getting the deprecated error mentioned awhile back. I saw where he reompiled Apache but wanted to know before I tried anything....
ForceHSS
02-05-2012, 09:36 PM
I have 4.1.7 , 5.34 php, 1.3.43 Apache & 5.092 mySQL and I'm getting the deprecated error mentioned awhile back. I saw where he reompiled Apache but wanted to know before I tried anything....
I'm attaching a screenshot of what I am getting.
check your bb code as both line of that error are to do with
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
DaninMS
02-05-2012, 09:56 PM
Thx for the reply. Where would I check this at ?
dartho
02-05-2012, 10:04 PM
edit the vbookie.php file and search for those line numbers and replace:
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
with
$bbcode_parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());
DaninMS
02-06-2012, 01:30 AM
ah, thank you that seemed to do it !
svaghari
02-07-2012, 04:51 AM
Can someone please confirm that this will work OK with vb version 4.1.9?
ForceHSS
02-07-2012, 06:18 AM
Can someone please confirm that this will work OK with vb version 4.1.9?
yes
svaghari
02-07-2012, 10:41 PM
How can I put multiple bets in one event? I am using this so people can place bets on fighting events which generally have several fights in one event.
Thank you!
dartho
02-08-2012, 12:07 AM
add as many out comes as you like, and people can bet on any or all of them
svaghari
02-13-2012, 04:10 PM
Hey dartho, check ur PM. Quick question for you :)
Adamwingie
02-20-2012, 02:36 AM
When I click bet statistics I get a database error, any help?
Database error in vBulletin 4.1.10:
Invalid SQL:
;
MySQL Error : Query was empty
Error Number : 1065
Request Date : Monday, February 20th 2012 @ 03:36:01 AM
Error Date : Monday, February 20th 2012 @ 03:36:01 AM
Script : http://www.fallscountanywhere.com/vbookie.php?do=stats
Referrer : http://www.fallscountanywhere.com/vbookie.php
IP Address : 78.151.64.250
Username : Adam
Classname : vB_Database
MySQL Version : 5.1.56-log
DS MrSinister
02-20-2012, 03:49 AM
@Adamwingie
Did you install vBExperience vbookie plugin if so which version is it? i know one of the olds casuse this issuse.
what I recommend is just use vcash for now until Phalynx release 4.1.11
dartho
02-20-2012, 04:03 AM
It would seem that means you have not configured your currency system correctly in vBookie ?
[edit - Posted before seeing MrSinister's post. I suggest following his recommendations if possible]
ychromozone
02-21-2012, 01:49 AM
I may be a complete noob, but I installed all of the .php files in their places and the product.
I see the vbookie tab, but when I click on it, it goes back to my CMS.
I see the option to add thread as vbookie event and can create threads with the option. Then I am redirected to my CMS because apparently the /vbookie.php link is broken somehow.
What am I doing wrong? Do I need to install more stuff?
Thanks,
Matt
ForceHSS
02-21-2012, 04:13 AM
I may be a complete noob, but I installed all of the .php files in their places and the product.
I see the vbookie tab, but when I click on it, it goes back to my CMS.
I see the option to add thread as vbookie event and can create threads with the option. Then I am redirected to my CMS because apparently the /vbookie.php link is broken somehow.
What am I doing wrong? Do I need to install more stuff?
Thanks,
Matt
you would be best for the coder to login and have a look at it for you
airborneCAL
02-21-2012, 10:36 PM
Is there a way to automatically create vbookie events based on the current sports schedules somehow?
dartho
02-21-2012, 11:07 PM
probably - if you hired a programmer to do this for you - which unfortunately wouldn't be me ...
dany_danay
02-22-2012, 08:30 AM
great mod.... if you develop more.
svaghari
02-29-2012, 04:54 AM
I am getting the following error at the home VBookie homepage. Everything else seems to work OK, any ideas?
Deprecated: Assigning the return value of new by reference is deprecated in /home/***/***/forums/vbookie.php on line 721
Deprecated: Assigning the return value of new by reference is deprecated in /home/***/***/forums/vbookie.php on line 1441
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at [path]/vbookie.php:721) in [path]/includes/facebook/facebook.php on line 37
dartho
02-29-2012, 05:14 AM
edit vbookie.php and search for:
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
and replace with
$bbcode_parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());
there should be 2 occurrences on those line numbers
svaghari
02-29-2012, 05:14 AM
Does anyone know if there is a way to track the progress of different users over time?
thenamesgould
03-03-2012, 09:44 AM
I just have to say thanks for this brilliant mod ... it's the first weekend of the NRL season, and it's been a very popular addition, created interest, created more posts - it's awesome!!! :D
mmacrypt
03-04-2012, 03:50 AM
I'm updating to 1.11 soon, do we know if Vbookie is good for 11 yet. I'm a few versions behind on VB, so I'll be skipping a few on the way to 11.
sully02
03-05-2012, 08:44 PM
I had the old vBookie on my site, and just installed this one. One little inconvenience I've noticed...
Whenever I create an event to bet on, I get two separate events. One of them is for the actual thread in question, the other appears to be for an event that was created under the old vBookie system, so for every bet I have two separate events on two separate threads.
Any idea how to fix this so the event only shows up once and doesn't access what appears to have been an old event under the old vBookie which is no longer installed on my forum?
Edit - Looks like I found it. Under the thread table is a vbookie_item_id value, if I edit those to all be reset to 0, in theory, it should wipe out this duplication issue.
Edit 2 - So, long story longer, if you're having the same problem I had, run this query:
UPDATE [prefix]_thread SET `vbookie_item_id`=0;
Where [prefix]_ is the table prefix for your vBulletin tables, if you have those.
twolegit
03-06-2012, 03:00 AM
I'm updating to 1.11 soon, do we know if Vbookie is good for 11 yet. I'm a few versions behind on VB, so I'll be skipping a few on the way to 11.
yes vBookie is working perfect on 4.1.11 :) added like 10 events this morning!
sportsfroma2
03-06-2012, 03:16 AM
yup, I just upgraded from vb 4.1.10 to 4.1.11, vbookie is still running great in it.
can't be said enough, thanks dartho!
mmacrypt
03-11-2012, 07:24 PM
Thanks guys, I'm doing the upgrade today.
tehbasmentdwell
03-12-2012, 03:01 PM
Just installed this at my site but the vcash amount is not showing in the postbit, any ideas?
http://img856.imageshack.us/img856/3858/easycapture1u.png (http://img856.imageshack.us/i/easycapture1u.png/)
Everything else seems to be working fine, i've managed to post up a new event and bet on it fine....... just that one problem!
Forum running on vbulletin 4.1.1, installed vbookie version 4.0.9
tehbasmentdwell
03-12-2012, 04:25 PM
Actually, i see what's happening, the vcash amount is appearing on the line above (after the thanked 44 times in 31 posts), what template do i have to edit to fix that? n00b alert :D
tehbasmentdwell
03-12-2012, 06:15 PM
Fixed it by changing the execution order of the plugins, thanks! Marked as installed :)
Jellymedia
03-13-2012, 07:50 PM
Is it possible to add vBookie events to existing threads?
bobster65
03-13-2012, 07:53 PM
Is it possible to add vBookie events to existing threads?
In theory you could create a new thread, make that new thread a vbookie event, then merge the existing thread into the new vbookie thread.
dartho
03-13-2012, 10:29 PM
You can by manually entering in the URL
yoursite.com/vbookie.php?t=nn&do=newevent
where nn is the threadid you wish to add the vbookie event to
thenamesgould
03-20-2012, 11:03 AM
Is there a way to see the whole leaderboard?
I know we can see the top five on the stats page, but it would add to the competitiveness if I could post an entire list after each round of games.
dartho
03-20-2012, 10:59 PM
you could edit the /includes/functions_vbookie.php file, search for [B]function vbookie_get_richest()[B] and in the query statements below, change the "LIMIT 5" bits to a greater number ... (remove "LIMIT 5" to get everyone)
8thos
03-29-2012, 09:27 PM
When does placing wagers for a game close? The beginning of the game?
When do you personally close the wagers?
When should an Event settle? Immediately after the game is over?
pharlap
03-29-2012, 11:36 PM
When does placing wagers for a game close? The beginning of the game?
When do you personally close the wagers?
When should an Event settle? Immediately after the game is over?
1. When you set it to close
2. Its done automatically at the time you set
3. No use settling before the result is known.
Lahoria
04-02-2012, 01:54 PM
hi
I cant create a bet ( first time installion), I guess it has something to do with userpermission, Can someone explain how to do this step by step?
ForceHSS
04-02-2012, 04:49 PM
make a new post you will see the option under Additional Options
Adamwingie
04-09-2012, 01:13 PM
Another problem has presented itself recently, whenever I try and settle a bet I get the following error. Any ideas?
Database error in vBulletin 4.1.10:
Invalid SQL:
UPDATE xperience_stats SET points_misc_vbookie_cash=points_misc_vbookie_cash+ 11474 WHERE userid=8;
MySQL Error : Unknown column 'points_misc_vbookie_cash' in 'field list'
Error Number : 1054
Request Date : Monday, April 9th 2012 @ 03:12:58 PM
Error Date : Monday, April 9th 2012 @ 03:12:58 PM
Script : http://www.fallscountanywhere.com/vbookie.php
Referrer : http://www.fallscountanywhere.com/threads/1994-Arsenal-vs-Man-City?p=5017
IP Address : 78.151.77.19
Username : Adam
Classname : vB_Database
MySQL Version : 5.1.61-cll
ForceHSS
04-09-2012, 02:18 PM
you need to add the missing field
Adamwingie
04-10-2012, 02:44 PM
Nothing has been changed, edited, deleted or messed with in anything.
It was working fine.
ForceHSS
04-10-2012, 08:41 PM
you would be best to delete the plugin and all the files and reinstall again as the error you have above has something to do with another plugin as well as the vbookie one "xperience_stats" maybe a old plugin that was not removed right as this table is not default or part of this plugin
dartho
04-11-2012, 09:31 AM
Speak to who ever created the xperience integration - that is where it is falling over ...
kotlt99
05-01-2012, 03:11 AM
I want to add vcash to all member every month, how to do it automatically ?
bobster65
05-01-2012, 04:21 AM
I want to add vcash to all member every month, how to do it automatically ?
write a function and then create a CRON ENTRY to run that function once a month.
kotlt99
05-01-2012, 10:12 AM
write a function and then create a CRON ENTRY to run that function once a month.
Can you please help me step by step :( ?
Thank you so much
nektar
05-04-2012, 12:01 PM
Is there a way of changing the time intervals for a bet to automatically close?
For example I would like to be able to set 21:45 as time.
Thank you.
owning_y0u
05-11-2012, 09:44 AM
Getting the following error 4.1.12
Deprecated: Assigning the return value of new by reference is deprecated in vbookie.php on line 721
Deprecated: Assigning the return value of new by reference is deprecated in vbookie.php on line 1441
dartho
05-11-2012, 12:52 PM
Getting the following error 4.1.12
Deprecated: Assigning the return value of new by reference is deprecated in vbookie.php on line 721
Deprecated: Assigning the return value of new by reference is deprecated in vbookie.php on line 1441
Edit the vbookie.php file, search for
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
and replace with
$bbcode_parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());
The 2 occurrences will be on lines 721 and 1441
New Joe
05-11-2012, 12:55 PM
Edit the vbookie.php file, search for
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
and replace with
$bbcode_parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());
The 2 occurrences will be on lines 721 and 1441
Should we all do this if using or upgrading to 4.1.12?
palalu
05-11-2012, 01:50 PM
dartho, can u teach me how to add the 'points' if i post something in a thread? like u said.. i must write a plugin.. how? im so newbie T_T please dont be mad lol
dartho
05-11-2012, 11:00 PM
I'm a bit too busy for anythjing but basic support at the moment.
By the way, your status suggests that you haven't even downloaded this script?
palalu
05-15-2012, 10:37 AM
download vbookie 4.0.9
admincp--manage product--import the file (product-bookiehack-4.0.9)
when i click vbookie menu.. got eror 404..
my vbulletin version is 4.1.11 its compatible? or im wrong?
dartho
05-15-2012, 08:56 PM
404 error means file not found which would suggest you either did not upload the files, or they were uploaded to the incorrect directory. Did you upload the contents of the upload directory in the zip to your forum root?
Pandemikk
05-17-2012, 04:43 AM
Should we all do this if using or upgrading to 4.1.12?
It's more of your PHP version instead of your vB version. There is no functional change because the version of PHP that shows you that warning already assigns instantiated classes by reference.
Anyone know if this works flawlessly on 4.1.12?
UK CHI3F
05-23-2012, 06:44 AM
Yes we had it on 4.1.12 and it was working fine,
Unfortunately we have finished the 4.2 upgrade and all the navigation bar options have disappeared, ie blog, articles etc.
Appears on all other tabs just not bookie.
Trevor Hannant
05-23-2012, 03:28 PM
Yes we had it on 4.1.12 and it was working fine,
Unfortunately we have finished the 4.2 upgrade and all the navigation bar options have disappeared, ie blog, articles etc.
Appears on all other tabs just not bookie.
Find this near the bottom of vbookie.php:
$templater = vB_Template::create('VBOOKIE');
and add these lines above:
$navbits = construct_navbits($navbits);
$navbar = render_navbar_template($navbits);
And add a new link to vbookie.php in the Navigation Manager and the relevant sub-nav until the product gets updated
UK CHI3F
05-27-2012, 01:27 PM
Thanks for the promp reply, and apologies for the delay in my reply
Find this near the bottom of vbookie.php:
Code:
$templater = vB_Template::create('VBOOKIE');
and add these lines above:
Code:
$navbits = construct_navbits($navbits);
$navbar = render_navbar_template($navbits);
And add a new link to vbookie.php in the Navigation Manager and the relevant sub-nav until the product gets updated
Worked like a charm, thank you very much
VieNoc
05-28-2012, 04:21 PM
Find this near the bottom of vbookie.php:
$templater = vB_Template::create('VBOOKIE');
and add these lines above:
$navbits = construct_navbits($navbits);
$navbar = render_navbar_template($navbits);
And add a new link to vbookie.php in the Navigation Manager and the relevant sub-nav until the product gets updated
Thanks :up:
sutto
05-29-2012, 05:26 AM
Find this near the bottom of vbookie.php:
$templater = vB_Template::create('VBOOKIE');
and add these lines above:
$navbits = construct_navbits($navbits);
$navbar = render_navbar_template($navbits);
And add a new link to vbookie.php in the Navigation Manager and the relevant sub-nav until the product gets updated
Followed these steps, however I don't quite understand how to add the subnav aswell.
The nav is there and is working, however I just don't see any other options.
cheers
mentalageof2
05-30-2012, 06:36 AM
Hi all,
After an upgrade to 4.2.0 I've now got this message when trying to install plugins:
A conflict was detected in the bitfields. You cannot continue with the installation of this product until this has been fixed. The conflicts found were:
Bitfield Collision: canwrtmembers = canpostvbookieevent
A quick look through /includes/xml/bitfield_vbulletin.xml shows:
<bitfield name="canwrtmembers" group="forum_viewing_permissions" phrase="can_wrt_members" install="5,6,7">67108864</bitfield>
And in /includes/bitfield_bookiehack.xml:
<bitfield name="canpostvbookieevent" group="vbookie_permissions" phrase="can_post_vbookieevents" install="2,5,6,7">67108864</bitfield>
So direct conflict with a core vb permissions bitfield in the new version by the look of it.
Have had to disable my vBookie for now to get vbseo running again, so any advice greatly appreciated.
Cheers
J
nektar
05-30-2012, 06:42 AM
I'm having the same problem.
I tried to update one plugin and I got this message:
A conflict was detected in the bitfields. You cannot continue with the installation of this product until this has been fixed. The conflicts found were:
Bitfield Collision: canwrtmembers = canpostvbookieevent
dartho
05-30-2012, 10:46 AM
I think that bitfield file is left over from vb3! vBookie 4 has never used bitfields for permissions, feel free to delete it (/includes/xml/bitfield_bookiehack.xml)
nektar
05-30-2012, 12:40 PM
I think that bitfield file is left over from vb3! vBookie 4 has never used bitfields for permissions, feel free to delete it (/includes/xml/bitfield_vbulletin.xml)
Excuse me but can you please be more precise on what to delete?
Delete /includes/xml/bitfield_vbulletin.xml file???
Thank you.
mentalageof2
05-31-2012, 04:53 AM
I think that bitfield file is left over from vb3! vBookie 4 has never used bitfields for permissions, feel free to delete it (/includes/xml/bitfield_vbulletin.xml)
Thanks mate, resolved, looks like a good clean-out is required on the board in question. (yay!)
nektar
05-31-2012, 04:57 AM
Thanks mate, resolved, looks like a good clean-out is required on the board in question. (yay!)
Can you tell me how you resolved it?
Thank you.
dartho
05-31-2012, 05:04 AM
You need to delete the /includes/xml/bitfield_bookiehack.xml file.
nektar
05-31-2012, 05:26 AM
You need to delete the /includes/xml/bitfield_vbulletin.xml file.
Are you sure?
I deleted it and then tried to install a product and I got the following error: (part of it as it is quite big)
Fatal error: Could not open [path]/includes/xml/bitfield_vbulletin.xml in [path]/includes/class_bitfield_builder.php on line 130
nektar
05-31-2012, 05:36 AM
I deleted /bitfield_bookiehack.xml and it seems to be ok now.
I guess this is what you meant since the one you propose to delete is a vbulletin file...
dartho
05-31-2012, 05:48 AM
OOPS.. yes - bitfield_bookiehack.xml - bad copy and paste on me behalf there. I'll edit my above posts.
New Joe
06-09-2012, 06:05 AM
does this work with vb4.2.0?
Or do I have to do any fixes from some of the above posts?
Will dartho be up dating this for 4.2.0?
thenamesgould
06-09-2012, 12:57 PM
Followed these steps, however I don't quite understand how to add the subnav aswell.
The nav is there and is working, however I just don't see any other options.
cheers
I'm not sure how to add the subnav parts either (assuming this is the links to the vBookie Home, Your Bets, Bet Statistics, Books part that goes below the vBookie tab).
Can anyone help with some explanation on how to do it? Pleeeease? :)
sitwi
06-09-2012, 08:15 PM
I get this error when I surf on one of the vbookie pages:
Database error in vBulletin 4.1.8:
Invalid SQL:
SELECT
SUM(bet_amount_won) AS sumbets
FROM vb_vbookie_bets_placed
WHERE bet_settled='Y' AND userid=1
AND dateline > 315532800
GROUP BY userid;
MySQL Error : Unknown column 'dateline' in 'where clause'
Error Number : 1054
Request Date : Thursday, November 17th 2011 @ 11:01:50 PM
Error Date : Thursday, November 17th 2011 @ 11:01:50 PM
Username : Unregistered
Classname : vB_Database_MySQLi
MySQL Version :
I realise this was over six months ago, but would you be kind enough to share your solution please? What was the problem with vBExperience, as I'm getting exactly the same error message.
Thanks.
wilford brimley
06-10-2012, 09:01 AM
Yes the sub nav isnt working even if you add that patch^
Hey, dartho, is there a way to change the display name of the vcash? even just how it reads under the avatars. I'd like to use a custom name. Thanks.
edit: i figured it out myself. search in phrases "vcash". edit phrase "vbookie_vcash" to whatever you want. i usually jsut add things to the "english translation" box and leave the original code.
sitwi
06-10-2012, 12:00 PM
A partial solution to the sub-nav - here are the pages that it should link to:
vBookie summary: domain.com/vbookie.php
vBookie stats: domain.com/vbookie.php?do=stats
Open bets: domain.com/vbookie.php?type=OPEN
Settled bets: domain.com/vbookie.php?type=SETTLED
Your bets: domain.com/vbookie.php?do=bets
I'd be grateful if someone could give me some guidance on why my bookie page is breaking out of the template, please? See this page (http://sitwining.co.uk/vbookie.php). (As opposed to the usual template (http://sitwining.co.uk/credits.php)). Thanks!
EasyEazy
06-10-2012, 12:59 PM
I'd be grateful if someone could give me some guidance on why my bookie page is breaking out of the template, please? See this page (http://sitwining.co.uk/vbookie.php). (As opposed to the usual template (http://sitwining.co.uk/credits.php)). Thanks!
Not sure if this will work but you could try inserting the code below in your VBOOKIE template of your custom style
{vb:raw headinclude_bottom}
Insert is just above the </head>
sitwi
06-10-2012, 01:40 PM
That actually worked a treat, first time.
Thanks so much for taking the time - learning already how great the VB.org community is!
New Joe
06-10-2012, 02:08 PM
does this work with vb4.2.0?
Or do I have to do any fixes from some of the above posts?
Will dartho be up dating this for 4.2.0?
Anyone
:D
sitwi
06-11-2012, 02:07 PM
Anyone
:D
Seems to work, apart from the nav bar. It doesn't want to work with that, currently.
sitwi
06-16-2012, 08:46 AM
Can anyone please give any pointers why this doesn't work with the navbar on 4.2, please?
It doesn't show, even on an otherwise vanilla installation with the default style?
Appreciate any help.
dartho
06-19-2012, 01:26 AM
Short story is, it doesn;t work correctly with 4.2 as it wasn;t written for 4.2, but you would have seen that it wasn't compatible when you upgraded your test site before upgrading your live site. ;)
I really don't have the time to look at this at the moment, but will happily post fixes if someone has them to put forward.
sitwi
06-19-2012, 05:37 AM
It is on a test site.
Thanks though.
thecelticway
06-21-2012, 11:34 AM
clear your PM's
regards
thecelticway
06-21-2012, 12:05 PM
anyone to help with getting this to work in 4.2.0
we've ran it for years in the 4.0.2 version and the members love it,
PM's welcome
Thanks
Kenas
06-22-2012, 02:40 AM
Database error in vBulletin 4.1.2:
Invalid SQL:
SELECT
SUM(bet_amount_won) AS sumbets
FROM vbookie_bets_placed
WHERE bet_settled='Y' AND userid=1
AND dateline > 315532800
GROUP BY userid;
MySQL Error : Unknown column 'dateline' in 'where clause'
Error Number : 1054
Request Date : Friday, June 22nd 2012 @ 04:38:21 AM
Error Date : Friday, June 22nd 2012 @ 04:38:21 AM
Script : http://www.gXXXXXXm.eX/vbookie.php
Referrer : http://www.gXXXXXXm.eX/showthread.php?5727-EuXXXXXa-20X2-AlXXXXXa-GXXXXa
IP Address : 8X.5X.2XX.3X
Username : Kxxxx
Classname : vB_Database
MySQL Version : 5.0.77-log
I am getting this exact same problem i tried Not sure if this will work but you could try inserting the code below in your VBOOKIE template of your custom style
{vb:raw headinclude_bottom}
Insert is just above the </head>
but still not working
hunter22375
06-25-2012, 01:57 AM
I also am needing the fix for 4.2....anyone get it to work?
datoneer
06-26-2012, 08:32 PM
I don't see where is create events?? vb 4.1.1.2
Help please??
dartho
06-27-2012, 06:41 AM
Create a new post and you should have an option to make a new vbookie event assuming your settings are correct
datoneer
06-27-2012, 10:50 AM
No not working. What did i forgot? Anyway i'm using template modification system mod
hunter22375
07-08-2012, 07:10 PM
Anyone get a fix for use in 4.2.X yet? Thanks.
LgsOfChampions
07-28-2012, 09:19 PM
i got it installed! just doesnt show me any links/buttons to place bets etc. like in the pic
ZacFields
07-29-2012, 12:56 AM
Does anyone have a fix for the template issue at all? My logo shows up larger on the vbookie.php page and it only shows one link on the navigation. There's got to be at least a quick band-aid fix for this.
Football season is just around the corner - we use this thing a lot!
cygy2k
08-01-2012, 07:47 PM
Anybody with 4.2 fixes???
hunter22375
08-01-2012, 10:02 PM
Anybody with 4.2 fixes???
Somebody has to have this 4.2 thing worked out!
ForceHSS
08-02-2012, 12:04 AM
Somebody has to have this 4.2 thing worked out!
Not sure if you have the fix from post 827 if not add it
hunter22375
08-03-2012, 12:38 AM
Thanks....IT WORKED!!!!
PamelaE
08-04-2012, 12:06 PM
Hello,
I have installed on 4.2 and made some of the template changes here but have the following issues:
1. Vcash is showing in postbit but above the word VCASH:
2. None of the nav options are showing - main nav or dropdown
I can post an event within a new thread but I can't seem to find any options to delete an event. I deleted an event in the new thread part but it still shows on /vbookies.php
Any ideas?
For te Vcash position I tried to change the execution order as mentioned but there were no details. Do I have to change the order for all vbookie plugins or just one and change it to what?
Thank you. If not is there an alternative to vbookies?
burdaindir
08-04-2012, 03:41 PM
Thanks .
hunter22375
08-07-2012, 04:21 PM
I had a member post an event to start on Aug 7 and pay out on Aug 31. But...it reverted to payout on Aug 7. I even went in and edited the event but still, it reverts to Aug 7. Anyone have any ideea why?
hunter22375
08-08-2012, 01:06 AM
Anyone?
svaghari
08-08-2012, 03:05 AM
How hard/difficult it would be to make the vbookie home page graphically little bit more appealing? Add a banner, and some graphics to main page, maybe a logo...
hunter22375
08-11-2012, 09:58 PM
Still have the issue in post #869. Can someone please help me with this?
pharlap
08-12-2012, 01:49 AM
Still have the issue in post #869. Can someone please help me with this?
I seem to recall something about a time limit....just wondering if this was it
hunter22375
08-12-2012, 04:15 PM
I just went through the settings but could not find anything about a time limit. Thanks though. Anything else anyone?
It appears if you try to accept bets up till the day before a game and then payout a day after the game is over, vBookie just makes the end betting date and payout date the same regardless of what you set the payout date. I PM'd the coder for assistance last week but received no response.
hunter22375
08-15-2012, 03:03 PM
Can anyone help with this please? Football season is comming up and we use it alot
kotlt99
08-15-2012, 03:52 PM
write a function and then create a CRON ENTRY to run that function once a month.
anyone please helppp :(, how to do that ??
hunter22375
08-16-2012, 08:27 PM
Seems there is no support for this mod anymore.
dartho
08-19-2012, 09:28 PM
There is no support for this under vb 4.2
However, the problem you are reporting seems pretty insignificant. Why dont you just set the payout date the same as the closing date? Payouts are manual anyway and that date is just for reminders for you, I'm pretty sure it doesn't affect anything else...
dartho
08-20-2012, 09:12 PM
I just went through the settings but could not find anything about a time limit. Thanks though. Anything else anyone?
It appears if you try to accept bets up till the day before a game and then payout a day after the game is over, vBookie just makes the end betting date and payout date the same regardless of what you set the payout date. I PM'd the coder for assistance last week but received no response.
Just upgraded my test site to 4.2 and I can't reproduce this problem.
dartho
08-20-2012, 10:04 PM
Updated. If you have manually added the navigation manager details (for example as suggested https://vborg.vbsupport.ru/showthread.php?p=2331967#post2331967 by Trevor Hannant - Thanks!), there is no need to upgrade as this is the only change.
hunter22375
08-21-2012, 10:52 PM
Just upgraded my test site to 4.2 and I can't reproduce this problem.
Will you look at mine please?
TopShelfGamer
08-22-2012, 12:34 PM
I am running this on 4.1.9
Anyway i can change the font color for the entire mod? I run my site on a dark background and the dark font doesnt work so well
SteveBoogie
08-22-2012, 06:28 PM
Hey guys, I'm having a problem on my board with placing bets. We make the threads and they turn out like this, with no text fields to input bets into. So obviously we can't bet. Would anybody mind helping me out?
https://vborg.vbsupport.ru/external/2012/08/58.png
BTW this just happened since I upgraded to 4.2.0 yesterday.
cygy2k
08-22-2012, 09:21 PM
Hey guys, I'm having a problem on my board with placing bets. We make the threads and they turn out like this, with no text fields to input bets into. So obviously we can't bet. Would anybody mind helping me out?
https://vborg.vbsupport.ru/external/2012/08/58.png
BTW this just happened since I upgraded to 4.2.0 yesterday.
Exact same issue on default style.
dartho
08-22-2012, 10:30 PM
Hey guys, I'm having a problem on my board with placing bets. We make the threads and they turn out like this, with no text fields to input bets into. So obviously we can't bet. Would anybody mind helping me out?
https://vborg.vbsupport.ru/external/2012/08/58.png
BTW this just happened since I upgraded to 4.2.0 yesterday.
@Steveboogie + @TopShelfGamer link?
@cygy2k yours looks ok, but can't see the sites default style
cygy2k
08-23-2012, 12:55 AM
Here is a link to a Bookie thread showing that the outcomes aren't displaying even using the default style...
http://www.cyclonefanatic.com/forum/betting-forum-ncaa-college-football/154260-tulsa-iowa-st.html
dartho
08-23-2012, 03:01 AM
But the outcomes are showing?
https://vborg.vbsupport.ru/attachment.php?attachmentid=140669&stc=1&d=1345694485
cygy2k
08-23-2012, 11:54 AM
Odd - it doesn't show anything for registered members, regardless of usergroup. I've added every usergroup id to the setting with exception of the non-registered users.
cygy2k
08-24-2012, 12:29 AM
Any help on why betting outcomes aren't shown to logged in users regardless of usergroup even though they're entered in the allowed to bet field? I can see the above only when logging out.
dartho
08-24-2012, 10:52 PM
Set me up with an account with suitable permissions and I'll see what I can find.
This and other reported problems (other than the fixed navigation) do not exist on a test site recently upgraded to vb4.2 so not sure what I will be able to do.
I suggest turning on HTML comments for template names, viewing source code and then log out and view source code and compare the two to see what differences there are. If you'd like me to look - you'll need to turn this option on also or allow me admincp access so I can
LgsOfChampions
08-25-2012, 01:16 AM
ive installed this, don't see no where to set up the events?
wilford brimley
08-25-2012, 03:12 AM
the version number is still saying 4.0.9 and not 4.2.0 on the bottom of the main books page.
pharlap
08-25-2012, 09:08 AM
Ok, am running vb 4.2.0
Was running vbookie 4.0.9 and upgraded tonight. Had the same issue with events not showing up.
I re-imported the old XML file from 4.0.9 and the events now show up.
However.... the menu is now mixed up ( see image )
https://vborg.vbsupport.ru/external/2012/08/11.jpg
Hope this help with understanding what the issues people are having
ok, just checked the xml for v4.2.0 and these strange names for links are in that xml... from lines 1833 thru to 1896
so just to recap....using the xml form 4.0.9 , the events show but menu is muddled
using the xml from 4.2.0 , the events are not showing up, menu is fine
cygy2k
08-25-2012, 10:41 PM
I figured it out - the issue on 4.2.0 is that the xml is missing the template "vbookie_outcomebit". In style manager, create a template named "vbookie_outcomebits" and paste in the following...
<tr class="blockrow">
<td class="{vb:raw bgclass}"><a href="vbookie.php?{vb:raw session.sessionurl}do=viewitem&item_id={vb:raw item_id}">{vb:raw outcome.outcome}</a></td>
<td class="{vb:raw bgclass}">{vb:raw outcome.odds_against}/{vb:raw outcome.odds_for} {vb:raw outcome.favourite}</td>
<td class="{vb:raw bgclass}" align="right"> ({vb:raw outcome.odds_decimal}) </td>
<td class="{vb:raw bgclass}">{vb:raw outcome.n_bets_placed}</td>
<td class="{vb:raw bgclass}">{vb:raw outcome.amount_staked}</td>
<td class="{vb:raw bgclass}">
<img src="images/polls/bar{vb:raw row}-l.gif" border="0" alt="" width="3" height="10" /><img src="images/polls/bar{vb:raw row}.gif" border="0" alt="" width="{vb:raw outcome.total_bet_percentage}" height="10" /><img src="images/polls/bar{vb:raw row}-r.gif" border="0" alt="" width="3" height="10" />
</td>
<td class="{vb:raw bgclass}">
<input type="text" name="option[{vb:raw outcome.option_id}]" size="6" value="0">
</td>
</tr>
LgsOfChampions
08-25-2012, 11:29 PM
I figured it out - the issue on 4.2.0 is that the xml is missing the template "vbookie_outcomebit". In style manager, create a template named "vbookie_outcomebit" and paste in the following...
<tr class="blockrow">
<td class="{vb:raw bgclass}"><a href="vbookie.php?{vb:raw session.sessionurl}do=viewitem&item_id={vb:raw item_id}">{vb:raw outcome.outcome}</a></td>
<td class="{vb:raw bgclass}">{vb:raw outcome.odds_against}/{vb:raw outcome.odds_for} {vb:raw outcome.favourite}</td>
<td class="{vb:raw bgclass}" align="right"> ({vb:raw outcome.odds_decimal}) </td>
<td class="{vb:raw bgclass}">{vb:raw outcome.n_bets_placed}</td>
<td class="{vb:raw bgclass}">{vb:raw outcome.amount_staked}</td>
<td class="{vb:raw bgclass}">
<img src="images/polls/bar{vb:raw row}-l.gif" border="0" alt="" width="3" height="10" /><img src="images/polls/bar{vb:raw row}.gif" border="0" alt="" width="{vb:raw outcome.total_bet_percentage}" height="10" /><img src="images/polls/bar{vb:raw row}-r.gif" border="0" alt="" width="3" height="10" />
</td>
<td class="{vb:raw bgclass}">
<input type="text" name="option[{vb:raw outcome.option_id}]" size="6" value="0">
</td>
</tr>
I'm building my site from scratch! So just added a fresh install, however, this didn't work for me.
dartho
08-27-2012, 03:46 AM
ive installed this, don't see no where to set up the events?
Create a new thread - you should have an option to add a vbookie event near where you would have the option to add a poll.
I figured it out - the issue on 4.2.0 is that the xml is missing the template "vbookie_outcomebit". In style manager, create a template named "vbookie_outcomebit" and paste in the following...
Glad you worked it out - turhning on HTML template name comments is always helpful when tracking these things.
Ok, am running vb 4.2.0
Was running vbookie 4.0.9 and upgraded tonight. Had the same issue with events not showing up.
I re-imported the old XML file from 4.0.9 and the events now show up.
However.... the menu is now mixed up ( see image )
Hope this help with understanding what the issues people are having
ok, just checked the xml for v4.2.0 and these strange names for links are in that xml... from lines 1833 thru to 1896
so just to recap....using the xml form 4.0.9 , the events show but menu is muddled
using the xml from 4.2.0 , the events are not showing up, menu is fine
Based on cygy2k finding the missing template, you should be able to re-install 4.2 and manually add the template as described by him above. Don't uninstall as you will lose past events, just over write.
LuDawgs
08-27-2012, 04:38 PM
Just swinging by to say that if you like vBookie, you need to check out www.ludawgs.com Here's a video:
http://www.youtube.com/watch?v=ByiA_270Wzo&feature=player_embedded
If the vBookie developers need any help or feedback, just let me know.
TopShelfGamer
08-27-2012, 08:38 PM
@Steveboogie + @TopShelfGamer link?
@cygy2k yours looks ok, but can't see the sites default style
you should be able to see this
http://sidelinesportscards.com/vbookie.php
the text is a darker color and cant see on black.. can i easily change this?
LgsOfChampions
08-27-2012, 09:07 PM
you should be able to see this
http://sidelinesportscards.com/vbookie.php
the text is a darker color and cant see on black.. can i easily change this?
i have the same skin, and my text is white. I didn't touch a thing!! Maybe reupload everything again?
TopShelfGamer
08-28-2012, 02:22 AM
i have the same skin, and my text is white. I didn't touch a thing!! Maybe reupload everything again?
I have tried that as well
Do you have the problem when creating threads when you type the cursor only shows and you dont see what you type until you click out of the input box?
liesislief
08-28-2012, 08:11 AM
I'm building my site from scratch! So just added a fresh install, however, this didn't work for me.
Mate, i know why it isnt working
if you make a template with the name: vbookie_outcomebit then its not working
but if you called it vbookie_outcomebits and you past the code, then its working.
There is a S missing in the title template title ;)
dartho
08-28-2012, 11:13 AM
I have tried that as well
Do you have the problem when creating threads when you type the cursor only shows and you dont see what you type until you click out of the input box?
Just installed that style on my test site with no probs either. Have you tried installing with no parent style? That's probably where your problem is ...
TopShelfGamer
08-28-2012, 12:15 PM
Just installed that style on my test site with no probs either. Have you tried installing with no parent style? That's probably where your problem is ...
Thought that as well, installed fresh with no parent style and getting same results. im unvieling a new skin in the next couple days so it isnt a huge issue..
dartho
08-28-2012, 11:58 PM
or with the default style as the parent ...
mmacrypt
09-02-2012, 08:55 PM
I figured it out - the issue on 4.2.0 is that the xml is missing the template "vbookie_outcomebit". In style manager, create a template named "vbookie_outcomebit" and paste in the following...
<tr class="blockrow">
<td class="{vb:raw bgclass}"><a href="vbookie.php?{vb:raw session.sessionurl}do=viewitem&item_id={vb:raw item_id}">{vb:raw outcome.outcome}</a></td>
<td class="{vb:raw bgclass}">{vb:raw outcome.odds_against}/{vb:raw outcome.odds_for} {vb:raw outcome.favourite}</td>
<td class="{vb:raw bgclass}" align="right"> ({vb:raw outcome.odds_decimal}) </td>
<td class="{vb:raw bgclass}">{vb:raw outcome.n_bets_placed}</td>
<td class="{vb:raw bgclass}">{vb:raw outcome.amount_staked}</td>
<td class="{vb:raw bgclass}">
<img src="images/polls/bar{vb:raw row}-l.gif" border="0" alt="" width="3" height="10" /><img src="images/polls/bar{vb:raw row}.gif" border="0" alt="" width="{vb:raw outcome.total_bet_percentage}" height="10" /><img src="images/polls/bar{vb:raw row}-r.gif" border="0" alt="" width="3" height="10" />
</td>
<td class="{vb:raw bgclass}">
<input type="text" name="option[{vb:raw outcome.option_id}]" size="6" value="0">
</td>
</tr>
Thanks for this fix, was having the same issue, did have to add the s at the end of the title.
wilford brimley
09-03-2012, 07:48 PM
i thought i mentioned this already but you forgot to edit vbookie.php to reflect the new version.
i just edited it.
in vbookie.php find
$vbookie_version = '4.0.9 - Updated for vBulletin 4 by <a href="http://twf.com.au">Coach</a>';
change to
$vbookie_version = '4.2.0 - Updated for vBulletin 4 by <a href="http://twf.com.au">Coach</a>';
also the "respawed! productions" link is dead. i dont know if i should just delete it or what but i edited it to direct just to his homepage and not /vbookie. it just goes to an image as it looks like his site is dead and just a placeholder.
on masterstyle>vbookie templates>vbookie
find
<div class="smallfont" style="text-align: center"><br /><i><b>vBookie</b></i> {vb:raw vbookie_version}<br />Copyright 2004 Daren "Rico" Chandisingh<br />A <a href="http://www.respawned.co.uk/vbookie/" target="_blank">Respawned!</a> production.
</div>
change to
<div class="smallfont" style="text-align: center"><br /><i><b>vBookie</b></i> {vb:raw vbookie_version}<br />Copyright 2004 Daren "Rico" Chandisingh<br />A <a href="http://www.respawned.co.uk" target="_blank">Respawned!</a> production.
</div>
if its cool with you to just erase that totally then I will. if you are the new owner then you "coach" control the copywright.
wilford brimley
09-03-2012, 08:13 PM
I'm building my site from scratch! So just added a fresh install, however, this didn't work for me.
he messed it up. you need to name the template
vbookie_outcomebits
1320Nation
09-04-2012, 04:04 AM
I downloaded the last update for this mod and had planned to install it. But after reading the dozen or so post it appears this mod is currently screwed up?
I'd like to know if things are ok to proceed with updating, or does there need to be some revisions done to the mod 1st?
wilford brimley
09-04-2012, 05:51 AM
it works for me but only after i created that template. i was using 4.0.9 before.
i havent settled a bet yet, im going to tomorrow and will check back to let you know if my event worked.
wilford brimley
09-04-2012, 11:26 AM
it worked.
My Hattiesburg
09-07-2012, 04:03 PM
It's working for us on 4.2 as long as you add that template that's been posted about above.
da prez
10-22-2012, 05:32 PM
Added template and now I can see the box to bet and settle, but the math isn't right.
It appears to be adding 1 in the odds.
300/100 should be 3 right ?
100/360 should not have a 1 in front of the .28
Any ideas ?
pharlap
10-22-2012, 06:31 PM
Added template and now I can see the box to bet and settle, but the math isn't right.
It appears to be adding 1 in the odds.
300/100 should be 3 right ?
100/360 should not have a 1 in front of the .28
Any ideas ?
Correct.
With traditional odds you get your stake back.
If you look thru this thread you will find how to change it to the way you want it
halkum
10-28-2012, 09:12 AM
Dumb question, but is there a way to get this to work on the default vbulletin mobile skin?
I have:
- Manually added in the vbookie templates.
- Added the original new thread code to the newthread template.
I can MAKE new vBookie post from mobile, but the actual vBookie portions don't show in the post.
Anyone tried this?
dartho
10-29-2012, 05:07 AM
Do Polls show in the mobile style? This hooks into them to get displayed ...
Hanany95
11-01-2012, 12:27 AM
This may be the very noobiest question but how do you create a bet? Thanks.
ringnews24
11-08-2012, 11:01 AM
I followed the installation guide but when I go to settings/options I cant find vbookie.
Help Please
dartho
11-08-2012, 01:04 PM
This may be the very noobiest question but how do you create a bet? Thanks.
Create a new thread. There should be a check box option to add a vbookie event near the option to add a poll...
ringnews24
11-08-2012, 09:42 PM
I managed to get vbookie installed http://ringnews24.com/boxingforum/vbookie.php
And I created an event but how do you actually bet on an event?
da prez
11-08-2012, 11:27 PM
Make sure the vBookie permissions are set properly.
And a couple of pages back there is a template addition you have to do.
Here's the post :
https://vborg.vbsupport.ru/showpost.php?p=2360000&postcount=894
ringnews24
11-09-2012, 12:41 AM
Fantastic that worked Da_prez
Thanks so much.
Gamelobby
11-19-2012, 07:54 AM
Make sure the vBookie permissions are set properly.
And a couple of pages back there is a template addition you have to do.
Here's the post :
https://vborg.vbsupport.ru/showpost.php?p=2360000&postcount=894
Is this needed for 4.0.9 ?
I just installed this and have some problems..
1. text doesn't show up.. either there is no text (or when on white the text is white & on dark the text is dark.?)
2. is there a way to allow the subnav menu without the navtab button.?
I tried turning it off, & link straight to it, but then there is no subnav menu. also there is no text when making a post, just a check box.
Installed version 4.0.9 on vB Version 4.1.3
Thanks for any help.
ringnews24
11-23-2012, 04:19 PM
Ignore sorted my problem :-)
Gamelobby
11-24-2012, 07:38 PM
I just installed this and have some problems..
1. text doesn't show up.. either there is no text (or when on white the text is white & on dark the text is dark.?)
2. is there a way to allow the subnav menu without the navtab button.?
I tried turning it off, & link straight to it, but then there is no subnav menu. also there is no text when making a post, just a check box.
Installed version 4.0.9 on vB Version 4.1.3
Thanks for any help.
Bump
Anyone.?
GreigM
11-25-2012, 01:08 PM
One of our mods settled a bet before the actual event ooops LOL is there anyway to unsettle the bets and return the credits back to how they were?
pharlap
11-25-2012, 06:07 PM
One of our mods settled a bet before the actual event ooops LOL is there anyway to unsettle the bets and return the credits back to how they were?
There isnt a way to unsettle bets.
You would need to manually adjust members vcash amounts
Gamelobby
11-25-2012, 09:21 PM
Is vBookie 4.0.9 the correct version to install if i am running vB4.1.3. (looks to me as if vBookie 4.2.0 is for vB 4.2.x)
Thanks, i got major issues & im not sure why.
pharlap
11-25-2012, 11:06 PM
Is vBookie 4.0.9 the correct version to install if i am running vB4.1.3. (looks to me as if vBookie 4.2.0 is for vB 4.2.x)
Thanks, i got major issues & im not sure why.
Yes,
vbookie 4.2.0 is for vbulletin 4.20 ( the difference related only to the navbar not showing up )
Gamelobby
11-28-2012, 07:55 AM
Yes,
vbookie 4.2.0 is for vbulletin 4.20 ( the difference related only to the navbar not showing up )
Would it work if i am running 4.1.3 ?
I think my issue is because the version before 4.2 is made for 4.0.9, & my vB is 4.1.3 so it isn't up to date. I'm thinking 4.2 might cover whatever is causing the issues, but im afraid it'll screw up my navbar. lol
Any ideas.. or can anyone confirm vBookie 4.0.9, works fine with vB 4.1.3 ?
Thanks :cool:
johon
11-28-2012, 09:48 AM
Fixed it by changing the execution order of the plugins, thanks! Marked as installed :)
Can someone explain how to change the execution order in 4.2, as I have the same problem?
Thanks.
Gamelobby
12-01-2012, 03:20 AM
Any ideas.. or can anyone confirm vBookie 4.0.9, works fine with vB 4.1.3 ?
Thanks :cool:
Anyone using vBookie 4.0.9 on vB4.1.3 ?
pharlap
12-01-2012, 06:15 AM
it was working on mine
Gamelobby
12-03-2012, 04:02 AM
Doesn't work on mine. lol
I'm thinking i either got a htaccess issue (maybe i'll just upgrade to 4.2)
pharlap
12-04-2012, 11:08 PM
Doesn't work on mine. lol
I'm thinking i either got a htaccess issue (maybe i'll just upgrade to 4.2)
What "bit" doesnt work?
Gamelobby
12-05-2012, 01:00 AM
What "bit" doesnt work?
Well i'm not really sure, but to start the text doesn't show up.. Not that the text is the same color as the background, but it isn't there at all.!
Not found anywhere, not when i post a thread, below the window. (there is only a just a check box)
Then once you do post the thread there are options for amounts, points, etc, but they are just empty box's to fill out no text to tell you what they are for.
Then after you put some random numbers in (to test) above the post is the "betting info" but still is just blank with empty box's, or numbers that i entered.
Thanks for any help. :up:
dartho
12-05-2012, 01:15 AM
That looks like a problem with your language/phrases or something?
I'm not sure why it would do that...
In the 3rd picture - the red circle should have the text "Post a vBookie Event" which is from te phrase "vbookie_post_an_event" search for that in your phrase manager and see if it's there?
Gamelobby
12-05-2012, 05:36 PM
That looks like a problem with your language/phrases or something?
I'm not sure why it would do that...
In the 3rd picture - the red circle should have the text "Post a vBookie Event" which is from te phrase "vbookie_post_an_event" search for that in your phrase manager and see if it's there?
Yes it's there, here is what i see..
<form action="vbookie.php" method="post">
<vb:if condition="$editing==1">
<input type="hidden" name="item_id" value="{vb:raw item_id}">
</vb:if>
{vb:raw optionidbits}
{vb:raw eventpreview}
<div align="center">
<div class="blockhead formcontrol settings_form_border" style="width:{vb:stylevar form_maxWidth}" align="left">
<span class="smallfont" style="float:right"><strong>{vb:rawphrase thread}</strong>: <a href="showthread.php?{vb:raw session.sessionurl}t={vb:raw threadinfo.threadid}">{vb:raw threadinfo.title}</a></span>
<vb:if condition="$editing==1">
{vb:rawphrase vbookie_update_a_vbookieevent_i}
<vb:else />
{vb:rawphrase vbookie_post_an_event}
</vb:if>
</div>
<div class="blockbody" style="width:{vb:stylevar form_maxWidth}" align="left">
{vb:raw usernamecode}
<h2 class="blocksubhead">{vb:rawphrase vbookie_event_group}:</h2>
<ul class="blockrow">
<li>{vb:rawphrase vbookie_event_group_description}</li>
<li><input type="text" class="primary textbox" name="group" value="{vb:raw group}" id="eventgroup" size="50" maxlength="85" tabindex="1" />
</li>
</ul>
<h2 class="blocksubhead">{vb:rawphrase vbookie_event_title}</h2>
<ul class="blockrow">
<li>{vb:rawphrase vbookie_event_title_description}</li>
<li><input type="text" class="primary textbox" name="question" value="{vb:raw question}" id="eventquestion" size="50" maxlength="85" tabindex="1" />
</li>
</ul>
<h2 class="blocksubhead">{vb:rawphrase vbookie_number_of_items}</h2>
<ul class="blockrow">
<li><label for="vbookieoptnum">{vb:rawphrase vbookie_number_of_items}
<input type="text" class="primary textbox" size="5" name="vbookieeventoptions" value="{vb:raw vbookieeventoptions}" id="vbookieoptnum" tabindex="1" />
</label><input type="submit" class="button" name="updatenumber" accesskey="u" value="{vb:rawphrase vbookie_update_items}" style="font-weight:normal" tabindex="1" /></li>
</ul>
<h2 class="blocksubhead">{vb:rawphrase vbookie_outcomes}</h2>
<div class="blockrow">
{vb:raw outcomebits}
</div>
<h2 class="blocksubhead">{vb:rawphrase vbookie_event_dates}</h2>
<ul class="blockrow">
<li><b>{vb:rawphrase vbookie_date_bet_until}</b></li>
<li><i>({vb:rawphrase vbookie_date_bet_until_desc})</i></li>
<li>
<select name="until_month" class="primary" title="$vbphrase[month]" tabindex="1">
<option value="1" {vb:raw until_monthselected.1}>{vb:rawphrase january}</option>
<option value="2" {vb:raw until_monthselected.2}>{vb:rawphrase february}</option>
<option value="3" {vb:raw until_monthselected.3}>{vb:rawphrase march}</option>
<option value="4" {vb:raw until_monthselected.4}>{vb:rawphrase april}</option>
<option value="5" {vb:raw until_monthselected.5}>{vb:rawphrase may}</option>
<option value="6" {vb:raw until_monthselected.6}>{vb:rawphrase june}</option>
<option value="7" {vb:raw until_monthselected.7}>{vb:rawphrase july}</option>
<option value="8" {vb:raw until_monthselected.8}>{vb:rawphrase august}</option>
<option value="9" {vb:raw until_monthselected.9}>{vb:rawphrase september}</option>
<option value="10" {vb:raw until_monthselected.10}>{vb:rawphrase october}</option>
<option value="11" {vb:raw until_monthselected.11}>{vb:rawphrase november}</option>
<option value="12" {vb:raw until_monthselected.12}>{vb:rawphrase december}</option>
</select>
<input type="text" class="primary" style="font-size:11px" name="until_day" value="{vb:raw until_day}" size="3" maxlength="2" title="{vb:rawphrase day}" tabindex="1" />
<select name="until_year" class="primary" title="{vb:rawphrase year}" tabindex="1">{vb:raw until_yearbits}</select>
{vb:rawphrase time}
<select name="until_time" class="primary" title="{vb:rawphrase time}" tabindex="1">{vb:raw untiltimeoptions}</select>
</li>
<li><b>{vb:rawphrase vbookie_date_payout_after}</b></li>
<li><i>({vb:rawphrase vbookie_date_payout_after_desc})</i></li>
<li><input type="checkbox" class="primary" name="same_as_until" {vb:raw same_as_until_selected} /> {vb:rawphrase vbookie_same_as_until}</li>
<li>
<select name="after_month" class="primary" title="$vbphrase[month]" tabindex="1">
<option value="1" {vb:raw after_monthselected.1}>{vb:rawphrase january}</option>
<option value="2" {vb:raw after_monthselected.2}>{vb:rawphrase february}</option>
<option value="3" {vb:raw after_monthselected.3}>{vb:rawphrase march}</option>
<option value="4" {vb:raw after_monthselected.4}>{vb:rawphrase april}</option>
<option value="5" {vb:raw after_monthselected.5}>{vb:rawphrase may}</option>
<option value="6" {vb:raw after_monthselected.6}>{vb:rawphrase june}</option>
<option value="7" {vb:raw after_monthselected.7}>{vb:rawphrase july}</option>
<option value="8" {vb:raw after_monthselected.8}>{vb:rawphrase august}</option>
<option value="9" {vb:raw after_monthselected.9}>{vb:rawphrase september}</option>
<option value="10" {vb:raw after_monthselected.10}>{vb:rawphrase october}</option>
<option value="11" {vb:raw after_monthselected.11}>{vb:rawphrase november}</option>
<option value="12" {vb:raw after_monthselected.12}>{vb:rawphrase december}</option>
</select>
<input type="text" class="primary" style="font-size:11px" name="after_day" value="{vb:raw after_day}" size="3" maxlength="2" title="{vb:rawphrase day}" tabindex="1" />
<select name="after_year" class="primary" title="{vb:rawphrase year}" tabindex="1">{vb:raw after_yearbits}</select>
{vb:rawphrase time}
<select name="after_time" class="primary" title="{vb:rawphrase time}" tabindex="1">{vb:raw aftertimeoptions}</select>
</li>
<li>{vb:rawphrase time_zone}:
<select name="timezoneoffset" class="primary" title="{vb:rawphrase time_zone}" tabindex="1">{vb:raw timezoneoptions}</select>
</li>
</ul>
<h2 class="blocksubhead">{vb:rawphrase vbookie_allow_multiple_bets}</h2>
<ul class="blockrow">
<li>{vb:rawphrase vbookie_allow_multiple_bets_desc}</li>
<li><input type="checkbox" class="primary" name="allow_multiple_bets" {vb:raw allow_multiple_bets_selected} /> {vb:rawphrase vbookie_allow_multiple_bets}</li>
</ul>
<div style="margin-top:{vb:stylevar cellpadding}px">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="t" value="{vb:raw threadid}" />
<input type="hidden" name="do" value="postevent" />
<vb:if condition="$editing==1">
<input type="hidden" name="editing" value="1" />
<input type="submit" class="button" name="update" value="{vb:rawphrase vbookie_update_event}" accesskey="u" tabindex="1" />
<vb:else />
<input type="submit" class="button" name="sbutton" value="{vb:rawphrase vbookie_submit_new_event}" accesskey="s" tabindex="1" />
</vb:if>
<input type="submit" class="button" name="preview" value="{vb:rawphrase vbookie_preview_event}" accesskey="p" tabindex="1" />
</div>
</form>
<br />
{vb:raw forumrules}
dartho
12-09-2012, 08:12 PM
That's a template - search your phrases ...
Gamelobby
12-09-2012, 09:42 PM
If i search "Phrase Text Only" i get...
No Phrases Matched Your Query
But if i search "Phrase Text and Phrase Variable Name" it comes up (see attached image)
Does that help.?
Thanks
dartho
12-10-2012, 01:10 AM
Strange - go back to the template you posted, search for
{vb:rawphrase vbookie_post_an_event}
and replace with
Post a vBookie Event
does it then show? I don;t know why phrases would not be resolving ?
Gamelobby
12-10-2012, 01:32 AM
Strange - go back to the template you posted, search for
{vb:rawphrase vbookie_post_an_event}
and replace with
Post a vBookie Event
does it then show? I don;t know why phrases would not be resolving ?
Replace with:
{vb:rawphrase Post a vBookie Event}
or
{vb:rawphrase Post_a_vBookie_Event}
*edit*
I changed it to
{vb:rawphrase post_a_vbookie_event}
Still not showing.
dartho
12-10-2012, 11:32 AM
No - I meant as stated, replace {vb:rawphrase vbookie_post_an_event} with Post a vBookie Event but I'm more awake now and its a pointless exercise anyway as it will show...
Is that phrase in the language you use?
Gamelobby
12-11-2012, 02:26 AM
Yes i only use one language.
I'm going to upgrade to 4.2 here later this week, so i'll just let you know what happens then. :)
johon
12-26-2012, 11:13 AM
My vBookie is working well in 4.2.0, but I have still 2 small problems:
1. I have already mentioned it some posts above: I cannot switch on the vCash-display in Postbit becaus it's screwed up as described before by some guys. I don't know how to change the Plugin order in 4.2.0...
2. The setting Enable vBookie Navbar? doesn't work - the tab is always visible, either it's switched on or off.
Any help with these problems would be appreciated....
Gamelobby
12-27-2012, 04:34 AM
Ok so now i upgraded to 4.2 & things are showing up, but i still have some issues i think.
When creating the post it shows whats needed, but after it's posted there is no way to make a bet.?
FYI. i am having other issues with some other things, so it could be related to the upgrade to 4.2
pharlap
12-27-2012, 05:47 AM
Ok so now i upgraded to 4.2 & things are showing up, but i still have some issues i think.
When creating the post it shows whats needed, but after it's posted there is no way to make a bet.?
FYI. i am having other issues with some other things, so it could be related to the upgrade to 4.2
Did u install vbookie 4.09 or 4.2 ?
johon
12-27-2012, 06:15 AM
Ok so now i upgraded to 4.2 & things are showing up, but i still have some issues i think.
When creating the post it shows whats needed, but after it's posted there is no way to make a bet.?
FYI. i am having other issues with some other things, so it could be related to the upgrade to 4.2
Did you add the missing template "vbokkie_outcomebits" as mentioned here: https://vborg.vbsupport.ru/showpost.php?p=2360000&postcount=894?
mmacrypt
12-27-2012, 08:54 AM
Hey Dartho any plans to make this mod work with vBulletin 5. I'm no where close to switching over yet but can promise I won't do so until there is some type of bookie for it
Gamelobby
12-27-2012, 07:00 PM
Did you add the missing template "vbokkie_outcomebits" as mentioned here: https://vborg.vbsupport.ru/showpost.php?p=2360000&postcount=894?
Yes, I did install vBookie 4.2., but No i hadn't done that yet..
How do you create a template.?
*edit*
Got it.. "Add New" :)
Gamelobby
12-30-2012, 03:37 AM
New Question..
The background is "transparent", how can i change the color.?
Is there a way to put a cap on winnings?
Like a maximum amount to win per bet regardless of the odds.
nathl123
01-21-2013, 02:31 PM
How come everytime i use vbookie i can't bet on this, and nether can other people, it does say bet but when i press it, it don't work.
nathl123
01-21-2013, 04:15 PM
don't matter now sorted it.
nathl123
01-21-2013, 05:49 PM
sorry about this but need help again i can not bet nothing because the stake box is not there,and it can not be clicked on, what am i doing wrong
Shadow
01-21-2013, 05:52 PM
sorry about this but need help again i can not bet nothing because the stake box is not there,and it can not be clicked on, what am i doing wrong
This should help you - https://vborg.vbsupport.ru/showpost.php?p=2360000&postcount=894?
nathl123
01-21-2013, 06:31 PM
This should help you - https://vborg.vbsupport.ru/showpost.php?p=2360000&postcount=894?
no didn't help :confused:
da prez
01-21-2013, 06:32 PM
Last night I had a bet that had no winning outcomes and the wagers were not returned.
Anyone know of a fix ?
johon
01-22-2013, 09:09 PM
My vBookie is working well in 4.2.0, but I have still 2 small problems:
1. I have already mentioned it some posts above: I cannot switch on the vCash-display in Postbit becaus it's screwed up as described before by some guys. I don't know how to change the Plugin order in 4.2.0...
2. The setting Enable vBookie Navbar? doesn't work - the tab is always visible, either it's switched on or off.
Any help with these problems would be appreciated....
pushing....
I still have these 2 small problems - can anyone give a hint?
nathl123
01-22-2013, 11:30 PM
what does this mean?
Deprecated: Assigning the return value of new by reference is deprecated in /home/content/03/10352303/html/forum/vbookie.php on line 720
Deprecated: Assigning the return value of new by reference is deprecated in /home/content/03/10352303/html/forum/vbookie.php on line 1440
dartho
01-24-2013, 04:07 AM
Last night I had a bet that had no winning outcomes and the wagers were not returned.
Anyone know of a fix ?
So everyone lost except the bookie - nothing to fix :-)
Otherwise you should choose to 'abandon' the event and stakes will be returned
dartho
01-24-2013, 04:09 AM
what does this mean?
Deprecated: Assigning the return value of new by reference is deprecated in /home/content/03/10352303/html/forum/vbookie.php on line 720
Deprecated: Assigning the return value of new by reference is deprecated in /home/content/03/10352303/html/forum/vbookie.php on line 1440
Install latest version
dartho
01-24-2013, 04:28 AM
Hey Dartho any plans to make this mod work with vBulletin 5. I'm no where close to switching over yet but can promise I won't do so until there is some type of bookie for it
I changed this for 4.0 when I was think of changing from 3.8. However, I am still on 3.8! I do have a 5 license, but until it at least works smoothly with nginx, I won't be looking at it any further ..
dartho
01-24-2013, 05:15 AM
pushing....
I still have these 2 small problems - can anyone give a hint?
New version should fix 2nd issue. I need more info on your first one
CoolDude22
01-24-2013, 07:25 PM
Is this new version of Vbookie vulnerable? Because the last version of vbookie got my forum hacked :/
da prez
01-24-2013, 09:01 PM
So everyone lost except the bookie - nothing to fix :-)
Otherwise you should choose to 'abandon' the event and stakes will be returned
I will use your method in the future, but shouldn't "No Winning Outcomes" return the bets as well ?
dartho
01-25-2013, 08:54 AM
Is this new version of Vbookie vulnerable? Because the last version of vbookie got my forum hacked :/
No issues have been reported? A google for exploits didn't turn up anything either - unless you're talking about the old vb3 version which I think was fixed 8 years ago ...
dartho
01-25-2013, 08:59 AM
I will use your method in the future, but shouldn't "No Winning Outcomes" return the bets as well ?
For mine - the only way a punter gets a refund is if the bookie made a mistake, if this was the case the book should be abandoned.
If the bookie is not obliged to cover all possible outcomes, then no mistake made and he cleans up while the punters all lose.
Guess it comes down to whether you think the onus is on the bookie to provide for all outcomes or not?
da prez
01-25-2013, 12:42 PM
In my case the bet was tie.
So, in that case, at least to me, that is a push and neither the bookie nor the bettor wins.
It seems that would be no winning outcomes and money should be returned.
Abandoned events would be in case the event was cancelled or had something that changed the original parameters of the bet or some other similiar situation.
CoolDude22
01-25-2013, 10:03 PM
No issues have been reported? A google for exploits didn't turn up anything either - unless you're talking about the old vb3 version which I think was fixed 8 years ago ...
Its a private sqli, they got their way in and cracked hash/salt for my username
jonty
02-02-2013, 11:00 AM
Dartho - can you clear out your PMs :) I need to let you see something!
dartho
02-03-2013, 07:00 AM
I need a bigger inbox :( Just deleted a couple ...
jonty
02-03-2013, 09:31 AM
I need a bigger inbox :( Just deleted a couple ...
:up: :D
EasyEazy
02-05-2013, 09:21 PM
Can you tell me is it possible to change the default date when setting a bet. Currently the end date is set to one day ahead of say todays date.
Could I change this so it matches up with todays date if that makes sense.
Also is it possible to tell when a bet was placed by a member?
Thanks
dartho
02-06-2013, 02:47 AM
Do you mean to say you want the default closing date of a bookie event to be the same day you create the event? Edit the vbookie.php file and find the line which says:
$tomorrow = getdate((TIMENOW+(3600*24)) - $vbulletin->options['hourdiff']);
the "(3600*24)" bit is how many seconds in the future you want the default close date to be - change this to be what you want
As for when a bet was placed, there is a vbookie_bets_place table in your database where all bets are stored. This table also has the date/time of the bet placement
EasyEazy
02-06-2013, 08:34 AM
Do you mean to say you want the default closing date of a bookie event to be the same day you create the event? Edit the vbookie.php file and find the line which says:
$tomorrow = getdate((TIMENOW+(3600*24)) - $vbulletin->options['hourdiff']);
the "(3600*24)" bit is how many seconds in the future you want the default close date to be - change this to be what you want
As for when a bet was placed, there is a vbookie_bets_place table in your database where all bets are stored. This table also has the date/time of the bet placement
Thats perfect, thank you.
One last question. If a bet is abandoned does that mean its removed from the database?
DJDynasty239
02-10-2013, 05:09 AM
I just want to change the "vCash" that is shown in the postbit_legacy to show another name, how do I do that? Everything else is working beautifully!
dartho
02-11-2013, 01:19 PM
Phrase manager should do it
DJDynasty239
02-11-2013, 04:20 PM
I've tried that but it doesn't seem to wanna change it, which is weird, maybe I'm trying to change the wrong item...hmmm
Ba'al
02-12-2013, 04:27 AM
Its working great dartho with only 1 small problem, when we create an event and post it, it posts it twice, so if you say we have 7 events open you actually see 14 or 7 events doubled, any idea on this issue, any help would be great,thanx
Ba'al
02-14-2013, 05:42 AM
bump......
dartho
02-16-2013, 11:22 AM
No idea why that would be happening - can you provide a link ?
Ba'al
02-20-2013, 10:41 PM
No idea why that would be happening - can you provide a link ?
Link (http://www.cowboys-forum.com/vbookie.php)
dartho
02-21-2013, 11:20 AM
Given that those 2 OPEN events are the same 'book' but have different thread ID's, and those thread ID's are quite a spread (33249 & 5996), and that the vBookie item id is only 15 - I would guess that vBookie has only recently been installed - but was also installed sometime ago but not fully uninstalled or something and now you have multiple threads (real old ones and new ones) link to the same books.
You'll need to tidy up the database - uninstall and reinstall should work, but it might leave threads looking odd as they no longer have a bookie event link to them and of course all old bookie events will be gone - as would vcash balances.
Otherwise, you might be able to set the vbookie_item_id (in the thread table) to zero on all threads older than your first recent vbookie thread? This should remove the duplicate links.
Ba'al
02-22-2013, 04:00 AM
Given that those 2 OPEN events are the same 'book' but have different thread ID's, and those thread ID's are quite a spread (33249 & 5996), and that the vBookie item id is only 15 - I would guess that vBookie has only recently been installed - but was also installed sometime ago but not fully uninstalled or something and now you have multiple threads (real old ones and new ones) link to the same books.
You'll need to tidy up the database - uninstall and reinstall should work, but it might leave threads looking odd as they no longer have a bookie event link to them and of course all old bookie events will be gone - as would vcash balances.
Otherwise, you might be able to set the vbookie_item_id (in the thread table) to zero on all threads older than your first recent vbookie thread? This should remove the duplicate links.
Makes sense since we just went from 4.1.12 to 4.2.0 and we just had the new one on the dev. site playing with it and forgot to uninstall the old version before moving everything over, thanx brother
Spangle
03-01-2013, 04:43 PM
I'm trying to use this for football matches but I am hitting a very big snag, I don't seem to be able to put more than one event in at a time, and only one event per post.
What I need to be able to do is set up a fixture list, and members bet on Home win, Away win, or a draw for each fixture.
dartho
03-02-2013, 11:24 PM
You can only have one event, but in that event you would put multiple outcomes:
EVENT 1
Team A defeats Team B
Team B defeats Team A
Team A Draws with Team B
Team C defeats Team D
Team D defeats Team C
Team C Draws with Team D
etc.
Storer
03-05-2013, 08:01 PM
Sorry if this has been posted else where, but when I create my thread and have set up the vBookie event, I click submit but when it loads the table and stuff are there but I can't actually bet.
Image attached.
Any help would be appreciated.
https://vborg.vbsupport.ru/external/2013/11/1.png?1362517275
EDIT: Just logged out and confirmed that guests can see it properly.
EDIT: Also, after I abandon an event, I can see the table fine, I just can't bet (obviously).
dartho
03-06-2013, 11:39 AM
Could you link me to your site and turn on template names in HTML comments?
Ba'al
03-18-2013, 12:12 AM
Hey dartho,
We need your help, i know its been awhile since you gave me advice but our vbookie has been down and i have been to busy to get into it to much but after uninstalling and reinstalling we now get a database error that we just cant pin down, any help would be great.
jonty
04-11-2013, 10:39 AM
We've a large-ish forum with 95k threads and almost 175k posts.
We get an intermittent delay when posting replies to non-bookie threads as well as delays when posting vbookie events.
Turns out it was a delay in a query
SELECT item.item_id, item.item_title, item.threadid, grp.group_title, item.item_status, item.item_created, item.item_open_until, item.item_pay_after, thread.threadid, thread.forumid, thread.postuserid
FROM vbookie_items AS item
LEFT JOIN vbookie_groups AS grp ON grp.group_id = item.group_id
LEFT JOIN thread AS thread ON thread.vbookie_item_id = item.item_id
WHERE item.item_status='SETTLED'
ORDER BY item.item_id DESC
LIMIT 880, 20;
The simplest solution was to add an index on the mysql table 'thread' on the vbookie_item_id column. :up:
doogie88
05-04-2013, 07:44 PM
Do you have to add events daily? Or is the system automatic?
I mean if I wanted to bet on sports, do I have to add games manually?
dawges
07-25-2013, 04:16 AM
Everything looks good except the background color. How do i edit that?
dawges
07-26-2013, 06:13 PM
Got it sorted out. For those having problems with the navbar link color and background of Vbookie just add the following code in the body of the vbookie template. I added it at the end since it should call it last.
{vb:raw headinclude_bottom}
slipkot
08-17-2013, 03:00 PM
I have a problem. I set the odds for an event at 345/100 for first result, 150/100 for the second and 575/100 for the third. As hte multiplier i want to be 3.45, 1.5, 5.75 for each result. Despite at vbookie.php page at event info it shows the correct values i mention above, at showthread it shows this values plus 1 ex 4.45, 2.45, 6.75. But it pays correctly as 3.45 or 1.5 or 5.75. Does anyone knows what is happening?
dartho
08-18-2013, 06:24 AM
In the showthread it is showing the total return as opposed to the multiplier. At 3.45, you get your 3.45 + your initial 1 stake = 4.45
slipkot
08-18-2013, 10:46 AM
Yes i found it later. I removed the initial stake on the payment and the plus one on your code as i wanted to return only the amount he won.
wilford brimley
08-18-2013, 09:35 PM
anyone know hos to give vcash to only certain usergroups? whathappens is when i give it to everoyne then users who dont actually gamble end up with like 20 grand etc.. so over the course of a year it throws off the rankings.
let me know an sql thanks
figured it out
UPDATE user SET vbookie_cash=whatever WHERE usergroupid=whatever;
so..
UPDATE user SET vbookie_cash=0 to set everyone at zero
then the other code to set users at an amount. made a promotion that moves qualified reg users into a new primary group so i could tag them by this.
now, can anyone tell me a way to give everyone in the custom group a welfare check when they go bust?
1320Nation
09-04-2013, 05:03 PM
UFC Fight Night 28 Odds For The Main Card:
Glover Teixeira (-440) vs. Ryan Bader (+350)
Ronaldo Souza (-265) vs. Yushin Okami (+225)
Joseph Benavidez (-525) vs. Jussier da Silva (+415)
Francisco Trinaldo (-320) vs. Piotr Hallmann (+260)
Rafael Natal (-260) vs. Tor Troeng (+220)
Ali Bagautinov (-280) vs. Marcos Vinicius (+240)
Maybe I'm looking in the wrong areas for odds on events, but the above structure is how I always find them displayed these days. Using the above info for creating a vBookie event, how is everyone adding the info when vBookie ask for it as Odds X___ to Odds X___ ?
LgsOfChampions
09-04-2013, 10:45 PM
is there a way to fix this? It messes my site up
dartho
09-05-2013, 06:40 AM
Maybe I'm looking in the wrong areas for odds on events, but the above structure is how I always find them displayed these days. Using the above info for creating a vBookie event, how is everyone adding the info when vBookie ask for it as Odds X___ to Odds X___ ?
You would need to know those numbers mean (which I don't) but I just looked at a betting site which had this to say:
If we picture the number 100 sitting in the middle of these two values, it helps to illustrate how MMA betting works. For example, betting a -200 MMA favorite means you would risk $200 in order to win $100 in profit. On his or her opponent, you would risk $100 and win $180 on the underdog. Other forms of MMA odds will be listed here later in 2013. They include over-under rounds (will the fight end in the first, second or third round or go to a decision?) are usually available close to fight night.
So taking your example of:
Glover Teixeira (-440) vs. Ryan Bader (+350)
You would risk $440 in order to win $100 if you bet on Teixeira and you would risk $100 in order to win $350 by if betting on Bader.
To convert this to odds, just reverse the numbers. "100 to 1" means win 100 for every 1 bet, so using that based on the information above would give us:
Odds for Teixeira to win would be 100 to 440 (Win 100 for every 440 bet)
Odds for Baden to win would be 350 to 100 (win 350 for every 100 bet)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.