Log in

View Full Version : vBookie - vBulletin Betting Hack


Pages : 1 2 [3] 4

Zeke
03-30-2005, 04:23 AM
I have installed vBookie and have been using it.

Fantastic hack, probably the best hack actually! In fact, vBulletin should pay to license it for their next release.

My question.

I have been using it, but now it seems that in USERGROUPS the THREE options to enable vBookie voting etc for each group is not showing up. It shows up in MOST of my USERGROUPS radio button options/selections but does not in others. I have it selected correctly under the vBookie Area in my AdminCP so I have vBookie switched on, but cant see to see an area in the Registered Users group to make it active.

As I said, there was an area a week ago, now there is not... Any ideas? Would be very much appreciated. Alternatively, where in the dbase can I switch on vBookie betting for usergroup #2?

Thanks.

Zeke
03-30-2005, 11:55 AM
can anyone tell me how i can manually change a usergroups axs to vbookie from the mysql db? thnx

I have the vbookie panel in the CUSTOM USERGROUPS so I can edit to make people able to create/bet on events, but it doesnt show the panel in the DEFAULT USERGROUPS. So ive no way at all to make my default users have access to bet. At present, only the mods can bet and that looks bad.

So any idea why it's doing that? :(

Lizard King
04-02-2005, 12:52 PM
I have a question about uninstallation process. I uninstalled this modifications by applying all template and file edits to backwards. Now is it save to drop vbookie tables from database ? I have some closed bets.

Kru
04-03-2005, 06:15 AM
I am getting the following error message: Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3036

Any idea what I made wrong?

Ock
04-05-2005, 08:25 PM
I've discovered a huge flaw in the way vBookie events work that allow someone to vote on any events at odds of his own choosing.

The way to do this, which i discovered by chance, is trivial: make a copy of the form - and edit it to change the odds, which are written in the webpage and not checked after submission.

I thought you should know, because someone wanting to exploit it could do so incredibly easily.

Is there any thoughts as to how to fix this??? Much thanks.

WhiteOx2
04-05-2005, 08:34 PM
That's why I only let Mods add betting events. ;)

Ock
04-06-2005, 12:53 PM
Yeah, me too.

But any USER do this, as long they can bet on the event...

djwins
04-07-2005, 02:51 PM
How will this hack affect forum performance?

cashpath
04-07-2005, 04:41 PM
Just so you know there's a HUGE FLAW in this hack. A user can just save a copy of the vbookie thread to their computer, point the form to the http:// address of the website and bet at whatever odds they choose.

The solution is not setting odds based on the hidden form variables:
<input type="hidden" name="odds2[1]" value="10">
<input type="hidden" name="odds2[1]" value="1">

But by taking the item id:
<input type="hidden" name="item_id" value="1680" />

And grabbing the current odds from the database itself.

Yes this flaw has already been pointed out the fix for it has already been pointed out also

The Realist
04-10-2005, 03:50 PM
First time install and Im getting this database error with version 3.0.7 on install:

Database error in vBulletin 3.0.7:

Invalid SQL:
CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM

mysql error: Invalid default value for 'group_id'

mysql error number: 1067

Date: Sunday 10th of April 2005 12:48:51 PM
Script: http://www.xxxxxxxx.com/forums/admincp/vbookie_install.php
Referer: http://www.xxxxxxxx.com/forums/admincp/vbookie_install.php
Username:
IP Address:

Anyone?

Marco van Herwaarden
04-10-2005, 05:51 PM
Just remove the "DEFAULT '1'". An Auto Increment column can not have a default value.

The Realist
04-10-2005, 10:52 PM
You lost me now M8, explain a bit more please?

Marco van Herwaarden
04-11-2005, 03:52 AM
in your vbookie_install.php script, find: group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,and replace by: group_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,

The Realist
04-11-2005, 06:13 AM
Thanks M8, did the below but I received this error:

Database error in vBulletin 3.0.7:

Invalid SQL:
CREATE TABLE vbookie_items (
item_id MEDIUMINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_id SMALLINT UNSIGNED,
threadid INT(10) UNSIGNED DEFAULT '0',
item_title VARCHAR(255) NOT NULL,
item_min_bet BIGINT UNSIGNED DEFAULT '0',
item_max_bet BIGINT UNSIGNED DEFAULT '0',
item_timezoneoffset VARCHAR(6) DEFAULT '0',
item_created INT(13) NOT NULL,
item_open_until INT(13) NOT NULL,
item_pay_after INT(13) NOT NULL,
item_status ENUM('OPEN', 'CLOSED', 'SETTLED', 'ABANDONED') DEFAULT 'OPEN',
item_allow_multiple_bets ENUM('Y', 'N') DEFAULT 'Y',
item_n_bets_placed MEDIUMINT UNSIGNED DEFAULT '0',
item_amount_staked BIGINT UNSIGNED DEFAULT '0',
item_amount_won BIGINT UNSIGNED DEFAULT '0'
) TYPE=MyISAM

mysql error: Invalid default value for 'item_id'

mysql error number: 1067


in your vbookie_install.php script, find: group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,and replace by: group_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,

Marco van Herwaarden
04-11-2005, 07:11 AM
Search the install file for all instances of:
DEFAULT '1' AUTO_INCREMENT
and replace them with:
AUTO_INCREMENT

The Realist
04-11-2005, 09:09 AM
Thanks M8 that worked a treat :)

Continuing with the install.

Laters

Search the install file for all instances of:
DEFAULT '1' AUTO_INCREMENT
and replace them with:
AUTO_INCREMENT

The Realist
04-11-2005, 10:33 AM
Installed and working fine :)

The Realist
04-11-2005, 05:00 PM
Just found I have an error on the CMPS front page:

Fatal error: Unknown function: getrowcolor() in /home/xxxxxxx/public_html/forums/modules/vbookie_vbadvanced.php on line 35

Anyone have any clues?

djwins
04-11-2005, 05:08 PM
I've discovered a huge flaw in the way vBookie events work that allow someone to vote on any events at odds of his own choosing.

The way to do this, which i discovered by chance, is trivial: make a copy of the form - and edit it to change the odds, which are written in the webpage and not checked after submission.

I thought you should know, because someone wanting to exploit it could do so incredibly easily.

Is there any thoughts as to how to fix this??? Much thanks.


Yes this flaw has already been pointed out the fix for it has already been pointed out also

Where is the fix?

mclark2112
04-12-2005, 12:31 PM
Yea, where is the fix?

And, has anyone modified gimme.php to work with vBookie, or does it need to be modified.

davey147
04-16-2005, 12:57 PM
Hi,

I just installed, great hack.

I have total bets of 665 but when looking at the 'total amount staked' it says 10455

Why is this?

Rabbitoh Warren
04-16-2005, 09:09 PM
I have total bets of 665 but when looking at the 'total amount staked' it says 10455That's how much vCash your users have wagered so far.

lefthome
04-17-2005, 06:38 PM
Using 3.07 and everything good up to this point added fine except one item:

IN NEWTHREAD.PHP

Find:
if ($newpost['postpoll'])
{
$url = "poll.php?$session[sessionurl]t=$newpost[threadid]&polloptions=$newpost[polloptions]";
}
add after:
// +++ vBookie
else if ($newpost['postvbookieevent'])
{
$url = "vbookie.php?$session[sessionurl]t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
}
// --- vBookie

Doesn't exist. What next?

lefthome
04-20-2005, 04:46 PM
Using 3.07 and everything good up to this point added fine except one item:

IN NEWTHREAD.PHP

Find:
if ($newpost['postpoll'])
{
$url = "poll.php?$session[sessionurl]t=$newpost[threadid]&polloptions=$newpost[polloptions]";
}
add after:
// +++ vBookie
else if ($newpost['postvbookieevent'])
{
$url = "vbookie.php?$session[sessionurl]t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
}
// --- vBookie


Doesn't exist. What next?


Anybody?

Marco van Herwaarden
04-20-2005, 06:00 PM
Search for:
if ($newpost['postpoll'])
{
$url = "poll.php?$session[sessionurl]t=$newpost[threadid]&amp;polloptions=$newpost[polloptions]";
}

X-Anthype
04-21-2005, 02:57 PM
I have done everything:

But when i open a thread i don't have this

https://vborg.vbsupport.ru/external/2005/04/1.php?attachmentid=18961

Wich file make this thing apeare? Newthread?

The Realist
04-21-2005, 03:08 PM
Go into Forums & Moderators and forum manager and setup a forum or a new section just for Vbookie and change the options for this new section or forum.

Then make a post within this new section or forum and that tick will show up on the botton of the post, its an extra tick box.

Laters



I have done everything:

But when i open a thread i don't have this

https://vborg.vbsupport.ru/attachment.php?attachmentid=18961

Wich file make this thing apeare? Newthread?

X-Anthype
04-21-2005, 03:47 PM
Found the problem.
Thanx for your help

nemesis01
04-27-2005, 09:12 PM
I have a problem. I can't see where or how I pay out... the event I put up has now passed, as has the payout time... where am I able to payout? :(

Pain86
04-27-2005, 09:34 PM
thank you.

Pain86
04-28-2005, 03:43 PM
help i get this error when installing the database modifactions

Database error in vBulletin 3.0.6:

Invalid SQL:
CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM

mysql error: Invalid default value for 'group_id'

mysql error number: 1067

Date: Thursday 28th of April 2005 04:45:09 PM
Script: http://www.bodybuildingdungeon.com/forums/admincp/vbookie_install.php
Referer: http://www.bodybuildingdungeon.com/forums/admincp/vbookie_install.php
Username: ****
IP Address: ******

Marco van Herwaarden
04-28-2005, 07:19 PM
Read through the previous page.

kisersose
04-29-2005, 08:35 PM
I'm having a problem getting the system to use UCASH and not VCASH.

I won't "not" show vcash or use the ucash to bet with. I have the option in the adminCP clicked and I have it correct on the postbit template.

sample of the postbit:

Malice

Posts: 858
Join Date: Jan 2005
Location: Jerz
Age: 22
Rep Power: 21
Points: 4653.30 (Donate)
vCash: 0

What am I missing that's keeping the system from using the UCASH and not showing/using VCASH anymore?

or is there a way I can get the ushop ubuy to run off of vcash?

nemesis01
05-02-2005, 09:52 AM
This might of been asked already by someone, but I have a question...

Why do betters not get back the money they staked when placing a winning bet?

Lets sat I bet 10 on an outcome with odds of 3/5, and won... vbookie only pays out 6 instead of 16 like it should! :( Why?

Pain86
05-02-2005, 09:01 PM
im gettin this error

Fatal error: Call to undefined function: construct_nav_option() in /home/bodybui/public_html/forums/admincp/index.php on line 454

please help.

Pain86
05-02-2005, 09:14 PM
ok im in need of help big help!!!

im gettin this error when i click on a section at my forums

Database error in vBulletin 3.0.6:

Invalid SQL:
SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,
thread.threadid, thread.title AS threadtitle, lastpost, thread.forumid, pollid, vbookie_item_id, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid,
deletionlog.username AS del_username, deletionlog.reason AS del_reason
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
WHERE thread.threadid IN (0,788,891,630,747,1080)
ORDER BY sticky DESC, lastpost DESC

mysql error: Unknown column 'vbookie_item_id' in 'field list'

mysql error number: 1054

Pain86
05-02-2005, 09:21 PM
it happens when i replace this code

thread.threadid, thread.title AS threadtitle, lastpost, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,

with

thread.threadid, thread.title AS threadtitle, lastpost, thread.forumid, pollid, vbookie_item_id, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,

in forumdisplay.php

Pain86
05-03-2005, 06:11 PM
anyone? please!

wattieuk
05-03-2005, 06:24 PM
Cant help you with that one, but a problem I encountered was when I used Dreamweaver to edit the files. It seemed to corrupt one. I would recommend trying the changes again and not using Dreamweaver (if indeed you are). Sorry I cant be much more help but Im very much a novice!

aReoHBeBewhY
05-03-2005, 09:02 PM
When I go to make it active it never sticks on active... any advice?

Flow Fusion
05-06-2005, 09:26 AM
When I try to save the settings in my user group I get this error...

Database error in vBulletin 3.0.7:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Administrators',
description = '',
usertitle = 'Administrator',
opentag = '',
closetag = '',
passwordexpires = '180',
passwordhistory = '360',
shoutmaxdaily = '0',
shouthierarchy = '1',
attachlimit = '0',
canpostvbookieevent = '1',
caneditothersvbookieevents = '1',
canbet = '1',
avatarmaxwidth = '200',
avatarmaxheight = '200',
avatarmaxsize = '99999999',
profilepicmaxwidth = '100',
profilepicmaxheight = '100',
profilepicmaxsize = '65535',
pmquota = '300',
pmsendmax = '0',
uttstore_discount = '5000',
forumpermissions = '393215',
pmpermissions = '3',
calendarpermissions = '31',
wolpermissions = '31',
adminpermissions = '3',
genericpermissions = '262079',
genericoptions = '23',
journalpermissions = '2047',
awrequest = '1',
shoutboxpermissions = '1023'
WHERE usergroupid=6
mysql error: Unknown column 'canpostvbookieevent' in 'field list'

mysql error number: 1054

Date: Friday 06th of May 2005 03:16:38 AM
Script: http://giftedsouls.com/gs/admincp/usergroup.php
Referer: http://giftedsouls.com/gs/admincp/usergroup.php?s=&do=edit&usergroupid=6


also when I view the vBookie page I see

[phpWarning: Invalid argument supplied for foreach() in /includes/functions.php on line 3001[/php]

and on my 3001 line I have

[php] foreach ($_FIELDNAMES AS $field => $bitvalue)

carolmyt
05-06-2005, 11:54 PM
I just installed version 1.0.4 to vb version 3.0.6, and got this:

Parse error: parse error in /var/www/html/includes/functions.php on line 2013

Fatal error: Call to undefined function: is_browser() in /var/www/html/global.php on line 57

line 2013 in the functions file is:
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n";

and line 57 in the global file is:
if ((is_browser('ie', 5) AND !is_browser('mac')) OR is_browser('mozilla') OR is_browser('firebird') OR is_browser('opera', 7) OR is_browser('webkit') OR is_browser('konqueror', 3.2))

Neither of these lines is affected by the hack, so what happened?

Flow Fusion
05-07-2005, 02:45 AM
bump

playboy
05-08-2005, 03:28 AM
Instructions say:

FIND:

'stylecache'
), $specialtemplates);

REPLACE WITH:

'stylecache',
// +++ vBookie
'vbookiesettings'
// --- vBookie
), $specialtemplates);

END

But I installed the uShop that has taking that bit of code already:

// ## <ucs>
'stylecache',
'utt_store_act'
// ## </ucs>
), $specialtemplates);


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=

what do i do? :(

guile09
05-08-2005, 05:41 AM
I went through the entire install, and all seems to work except the fact that I get this error :

Warning: set_time_limit(): Cannot set time limit in safe mode in /home/bsnnco79/public_html/fightforum/vbookie.php on line 20

anyone familiar with this?

guile09
05-08-2005, 03:12 PM
Anyone have an idea of what the problem is here? I'm trying to figure out if it is something I did wrong or a setting that my host is running? Please help before I am forced to unistall! you can see the error here : www.fightforum.com - click vbookie

Mr. Brian
05-08-2005, 03:24 PM
Check your "vbookie.php" and make sure there's isn't any whitespace after ?>

Hope it help. :)

playboy
05-08-2005, 03:31 PM
You wouldnt happen to know the answer to my problem, would ya? :#

Mr. Brian
05-08-2005, 04:03 PM
Instructions say:

FIND:

'stylecache'
), $specialtemplates);

REPLACE WITH:

'stylecache',
// +++ vBookie
'vbookiesettings'
// --- vBookie
), $specialtemplates);

END

But I installed the uShop that has taking that bit of code already:

// ## <ucs>
'stylecache',
'utt_store_act'
// ## </ucs>
), $specialtemplates);


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=
what do i do? :(

You should end up with something like this:-




// ## <ucs>
'stylecache',
'vbookiesettings',
'utt_store_act'
// ## </ucs>
), $specialtemplates);

Hope it help. :)

Flow Fusion
05-09-2005, 07:39 AM
OK I got everything to work till I hit submit and then nothing. Anyone have any idea why this is?

ProPain
05-09-2005, 11:15 AM
Sorry if this question is asked before but 37 pages is a lot of questions to sift through.

I posted a thread and now I want to add a vBookie event to it, but when I edit the thread the 'add vbookie'event doesnt show up.

Is it possible to add events later on, or do I have to add them when I start the thread?

Rabbitoh Warren
05-09-2005, 12:00 PM
Is it possible to add events later on, or do I have to add them when I start the thread?I've been using vBookie for months and as far as I'm aware there is no option to add a vBookie event to a thread after it's been created.

ProPain
05-09-2005, 12:43 PM
Thanks, minor inconvenience once you know it. Now I know :)

Would be handy though if you could add a vBookie event later....

Flow Fusion
05-09-2005, 07:31 PM
OK I got everything to work till I hit submit and then nothing. Anyone have any idea why this is?

????

Okiewan
05-09-2005, 07:48 PM
You guys may as well forget it, support of this hack aint gonna happen.

Flow Fusion
05-09-2005, 10:32 PM
You guys may as well forget it, support of this hack aint gonna happen.

I can hope can't I? :confused:

guile09
05-09-2005, 11:34 PM
I went through the entire install, and all seems to work except the fact that I get this error :

Warning: set_time_limit(): Cannot set time limit in safe mode in /home/bsnnco79/public_html/fightforum/vbookie.php on line 20


Anyone have an idea of what the problem is here? I'm trying to figure out if it is something I did wrong or a setting that my host is running? Please help before I am forced to unistall! you can see the error here : www.fightforum.com - click vbookie

I have $25 via Paypal for whoever can get this working and displaying correctly. PM me if you would like to help.

Here is what I get when I log out and click on vbookie :
Warning: set_time_limit(): Cannot set time limit in safe mode in /home/bsnnco79/public_html/fightforum/vbookie.php on line 20


Unable to add cookies, header already sent.
File: /home/bsnnco79/public_html/fightforum/vbookie.php
Line: 20


Update : I commented out the following line and error went away...don't know what side effect will occur.
// set_time_limit(0);

Flow Fusion
05-10-2005, 02:40 AM
I have $25 via Paypal for whoever can get this working and displaying correctly. PM me if you would like to help.

Here is what I get when I log out and click on vbookie :
Warning: set_time_limit(): Cannot set time limit in safe mode in /home/bsnnco79/public_html/fightforum/vbookie.php on line 20


Unable to add cookies, header already sent.
File: /home/bsnnco79/public_html/fightforum/vbookie.php
Line: 20


Update : I commented out the following line and error went away...don't know what side effect will occur.
// set_time_limit(0);

Most likely a global.php or init.php file edit that was wrong. Maybe a comma or something.

djwins
05-10-2005, 02:16 PM
just installed this hack..thanks!

I saw the post here (https://vborg.vbsupport.ru/showpost.php?p=536011&postcount=250) which details how to reset some things like money.

How can I clear the db of all the betting events?
also...
How can I get the vbookie posticon to show up in New Posts?

djwins
05-11-2005, 02:19 PM
I've discovered a huge flaw in the way vBookie events work that allow someone to vote on any events at odds of his own choosing.

The way to do this, which i discovered by chance, is trivial: make a copy of the form - and edit it to change the odds, which are written in the webpage and not checked after submission.

I thought you should know, because someone wanting to exploit it could do so incredibly easily.

Is there any thoughts as to how to fix this??? Much thanks.


Yes this flaw has already been pointed out the fix for it has already been pointed out also

Where is the fix?

mykes
05-11-2005, 06:20 PM
# Query_time: 977 Lock_time: 455 Rows_sent: 20 Rows_examined: 125192586
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.thr
eadid, 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 0, 20;


vBookie locking the thread table for 455 seconds! The whole site stops for that long. Look at how many rows examined! Dang these LEFT JOINs.

Did some digging:

mysql> select count(*) from thread;
+----------+
| count(*) |
+----------+
| 159281 |
+----------+

mysql> select count(*) from vbookie_items;
+----------+
| count(*) |
+----------+
| 844 |
+----------+

I think it scanned the entire thread table about 844 times to do the query, and it created temporary tables to boot.


My fix was to enter the following query:

create index thread_vbookie on thread (vbookie_item_id);

This costs sizeof(MEDIUM_INT)*159281 bytes of RAM to keep the needed field in RAM all the time.

At MEDIUM_INT = 2 bytes, it's 320K. At 4 bytes, it's 640K. Puny amount of memory to save all those table scans.

I'm pretty sure it worked, as I went to the vbookie.php page and did all kinds of sorts and they were instant.

carolmyt
05-11-2005, 09:15 PM
Ok, I installed it, with no problems, I hadn't added any events yet, but the page was working. Now, when I click on the link, all I get is a blank white page. the php file is definitely still uploaded, and the link in the navbar is going to the right place, so, what's up?

carolmyt
05-11-2005, 09:17 PM
Oh, and this is only when the hack is turned on. When its off, there's a standard 'you can't access this page' message.

djwins
05-12-2005, 03:06 PM
Where does one define the start off amount each user gets? I want 100 not 500.
Set the default to 100 in vbookie_cash in the user table in your mySQL db.

Flow Fusion
05-12-2005, 07:48 PM
OK I got everything to work till I hit submit and then nothing. Anyone have any idea why this is?

A lil help here?

freebase69
05-12-2005, 09:11 PM
Ok easy question here...how do you settle an event after the event has ended and you know the outcome? I can't seem to figure this one out and the online manual can't be found.

Thanks

freebase69
05-16-2005, 09:41 PM
bump...anyone?

RichieBoy67
05-18-2005, 06:37 PM
Is there an uninstaller for this? I need to reinstall the queris

Pain86
05-18-2005, 09:45 PM
hi... i have this installed on my forums but when i set which usergroup to be able to bet it just wont let that usegroup bet...

any idea what could be the problem?

i want every usergroup to able to bet on events... so i set "can this usergroup bet on events" to yes...

but when i make an event it says "you may not bet on this event" ?!?!

help please.

T_Montana
05-20-2005, 08:57 PM
great hack

djwins
05-23-2005, 04:57 PM
How do I increase the number of Richest people displayed on the Stats screen?

lcryan
05-25-2005, 12:54 AM
works with 3.0.7?

Lord Brar
05-25-2005, 10:59 AM
Heya mate! Just curious, what happened to the vBookie sections on Respawned?

* Lord Brar crosses fingers that you are still supporting this hack ;)

NitroMan
05-26-2005, 02:11 PM
ok I installed this and everything seen good but when try to create a event after summit all the info .
I can see a preview but after hit summit new event nothing happen event isn't seen in vbookie area. or nothing xtra on the thread .
any help please?

TIA

Celtic_Mad
05-27-2005, 03:04 PM
When I go to the vbookie.php it duplicates the event and when I click to go to the thread of the duplicated event, it brings me to a different vbookie event's thread with the new event I added at the top, very weird! How do I fix this?

lebanon
05-31-2005, 09:30 AM
Hi everyone,
I installed this hack , everything sounds fine , i set admins to can post events in user groups .
In newthread.php it doesnt show that i can add an event or add a vbookie event ...
i double checked edits in newthread and they are there all
the code states if vbookie is on and usercan post events to show it, since ive done that i stilll cannot see add events ...
suggestions ?

lebanon
05-31-2005, 09:46 AM
i added new usergroup and a new member allowed there
it showed add a new bookie event to newthread that way ...
I went on , and when i am submitting new event it replies that i dont have access to view that page !
Permissions are confusing me , they are set but they act as if they aint

lebanon
05-31-2005, 10:57 AM
sorry for multiple posts , just to let anyone having any issue like this know this
admin wasnt able to place a new event , so i created new group although i did allow admins to place new events but i still had to create a group
Make sure group is non moderated ( i had problems because i had it moderated by mistake ) and i was searching and searching untill i was doing new group all over for that lousy simple button choice that i was in a rush to look at !

Flow Fusion
05-31-2005, 07:04 PM
Hi everyone,
I installed this hack , everything sounds fine , i set admins to can post events in user groups .
In newthread.php it doesnt show that i can add an event or add a vbookie event ...
i double checked edits in newthread and they are there all
the code states if vbookie is on and usercan post events to show it, since ive done that i stilll cannot see add events ...
suggestions ?


Same issue.

NitroMan
06-01-2005, 11:00 AM
is a nice hack but no one to help any more .

robaldo
06-01-2005, 07:32 PM
does this work with VBulletin 3.0.7??

Mr. Brian
06-03-2005, 06:52 AM
does this work with VBulletin 3.0.7??

Works fine for me. :)

Pain86
06-05-2005, 10:47 AM
hi..i cant get the vBookies own cash to show up in postbit... all the code is correct and ive ticked "yes" in the vbookie options...but its still not showin?

lebanon
06-06-2005, 11:52 AM
Flow Fusion ,
Add a new group , a new user and login using that user ( specifying that this group CAN add events ) it will work.
I still couldnt let admin add events, but as long as i can login into another user who can its okey with me.

lebanon
06-06-2005, 03:02 PM
am confused about onething,
I just added new events and noticed that eventhough i allowed registered and moderators ( can bet on events ) . They were still NOT able to
So here is my way of fixing it :
In the edit which you do on showthread.php

$nopermission = 0;
if (!($forumperms & CANBET))
{
$nopermission = 1;

I replaced with
$nopermission = 0;
if (($forumperms & CANBET))
{
$nopermission = 1;

Which means i reversed the canbet perms , which is weird but this way the whole permissions worked exactly as i set them and instead of having a non working code or messed up , i had it working like a charm !
I posted it just incase someone wanted to try doing the same if having same problems with permissions issues.

axi
06-07-2005, 06:41 PM
ive installed it, so how does it work.

do members use there uCash points for the gambling? I have uCash/uShop installed. so wondering if thats how it works?

axi
06-07-2005, 06:44 PM
anothe question, do you have to make a thread to make a bet? is there a way to make bets without starting threads?

congpine
06-08-2005, 11:32 AM
how i can add event ? i installed it, there is no error , I did add a group that can add Event , Edit Event ..... and then login with that group ...but i don't know i can add event ....could u please show me how to do that thing ? ( i am using v 3.0.7 ) is this working properly ?

Rabbitoh Warren
06-08-2005, 11:47 AM
how i can add event ? i installed it, there is no error , I did add a group that can add Event , Edit Event ..... and then login with that group ...but i don't know i can add event ....could u please show me how to do that thing ? ( i am using v 3.0.7 ) is this working properly ?
vBookie works fine with 3.0.7. If you are having trouble and getting errors I would advise double checking your code modifications.

To create a new vBookie event you have to start a new thread ? but be sure to tick the box where it says "Yes, post a vBookie Event with this thread" as there is no way to add an event to a thread afterwards.

congpine
06-08-2005, 11:52 AM
thanks . I got it!

axi
06-08-2005, 01:49 PM
some members created the bookie event but it doesnt get listed in the vbookie page why not?

axi
06-08-2005, 05:59 PM
looks like it doesnt like my board, i just un isntalled it until i get some support

cheers

Celtic_Mad
06-09-2005, 12:28 PM
Is it possible to automatically award members vcash after making so many posts?

axi
06-09-2005, 04:51 PM
use ucash/ushop for it

ams3521
06-10-2005, 04:01 AM
Hi the answer to my question is-

To reset everyone to whatever you want use : UPDATE user SET vbookie_cash=500;

I cant see where in the admin to put it. When i search vbookie_cash i get 2 options which are-

vbookie_cash_bit

and

postbit


Do i just add that line (UPDATE user SET vbookie_cash=500;) in there somewhere? :( Thank. Also i know i dont wanna run before i can walk but id be as well asking if you dont mind. I prefer the avatars and post count etc down the left of the forum but find that the vbookie totals dont show if i have it that way.

All help appreciated as ive been fiddling for over 12hrs now and its got me down a bit.

Thanks

ams3521
06-11-2005, 11:50 AM
Great hack and thanks but is it possible to put a cap on what a person can bet, I.e i dont want anybody to be able to bet over 50 points on any event.

Flow Fusion
06-11-2005, 12:00 PM
OK I got everything to work till I hit submit and then nothing. Anyone have any idea why this is?


??? anybody? any suggestions?

ams3521
06-15-2005, 01:48 AM
ok sorted that but now im in REAL bother :(

Ive fell out with all the other admin on my forum over the running of our vbookie competition as they said my way was too tricky etc (but it aint) Everything is going great and i was pretty pleased with some of the events i had posted up

http://www.thedailypunt.com

So anyhow i ended up DELETING the first post from an event and i cant get to see the vbookie event. I understand it will payout folks money when it aint settled 7 days after it closes but thats after the end of our tourney :( I gotta work this out so all help would be very appreciated. Heres 2 other posts on the matter but i couldnt see a reply sorry :(

I deleted a thread containing an event (which was created by another user.) I'm not unable to delete the event - i only have the 'Thread' and 'Info' options available to me.

Is this a defect or am I doing something wrong?



and....



It's been brought to my attention that I neglected to add a way to actually delete an Event. "Abandon" will cancel all bets and place the Event in a closed state, but it still exists in the database. I'll add a method to physically remove an event/detach it from a thread. I expect it to be just an update to vbookie.php, so patching should be very simple.

Apologies for the rather glaring oversight!


thanks for the great hack but their gonna hack me in about 2 hours :( anyone know the answer?

thanks :hope

ams3521
06-15-2005, 01:52 AM
http://img145.echo.cx/img145/4452/bahhh5kg.jpg

:(

The golf one actually has quite a bit of cash on it all at diff prices so i'd love to be able to see it again but its disappeared into the ether :(

Ps i know youve had a discusion on this on this thread but your decimals odds ARE wrong at least in Europe. to us 7.00 = 6/1 as we include our stake. I belive American odds are as shown. Is there an easy way to change this?

Also i might as well ask if there is any way you can set a DAILY limit? I aint checked that yet so ill go do a search the now but if anyone could help me in my original question then i'll give them a virtual kiss. Thanks :(

Biker_GA
06-15-2005, 10:00 AM
Not sure if this is a bug or what.

I have vBookie set to where every registered user can bet, but only the Admin group can create/edit events.

We recently had an event where one of the moderators was able to pay out the bet at the end of the event. A quick double check of the permissions for that group confirmed it was set to bet only. Is vBookie set internally to allow any "staff" member to pay out? I had assumed that only the admin group would be able to do this.

ams3521
06-15-2005, 08:47 PM
MMm thanks Biker i'll go log in as Admin :)

Anyone know if its poss to turn off the make bets private wee button? thanks again. hers hopin :hope

ams3521
06-15-2005, 08:51 PM
nah Biker still doesnt give me the option to delete or view them as the picture before shows. Im just gonna have to be more carefull in future :(

thanks

Still interested in seeing if anyone had any sucess on turning off the MAKE BETS PRIVATE thingy. Bloody pain it is as you want to see whos on wahat really. Not slagging the product mind as thats mighty fine and thanks. If i could iron out these 2 wee priobs though i wouldnt have a worry in the world

mobillica
06-20-2005, 04:46 PM
Anyone know how to reset vbookie cash back to 500?

And is it possible to amend a users vbookie cash, say if an error is made?

:squareeyed:

Lord Brar
06-22-2005, 11:44 AM
Rico, are you still supporting this hack and do you have any intentions to upgrade it to 3.5 when it comes out?

I want to use it on one of my forums but just want to make sure that It'll be available for 3.5 too. :)

Thanks

ams3521
06-26-2005, 07:36 AM
Can i still mention that the DEcimal odds are still wrong in Europe and this leads to a lot of embarrassment especially if your forum is into sports betting :(

Mobilla the answer is in the thread mate. you do have to add the code that i posted about earlier. I never done it but a mate but i'll ask.

Still wondering how to make a daily limit and to turn off the make bets private thanks.

Lionel
06-27-2005, 01:26 AM
We post sports events in calendar. I wonder how complicated that would be to incorporate vbookie in there?

Lionel
06-29-2005, 07:05 AM
Never mind. I managed it.

trancetopia
07-11-2005, 03:17 PM
I've just installed this hack and everything is great apart from when I enable the vbadvanced CMPS bit. I get the following:

Fatal error: Call to undefined function: getrowcolor() in /modules/vbookie_vbadvanced.php on line 35

Anyone had this before or know how to fix it?

Lionel
07-11-2005, 03:49 PM
I had to comment out mine
//$getbgrow = getrowcolor();

Lionel
07-11-2005, 03:53 PM
you could also try to replace it with
$getbgrow = exec_switch_bg();

DS MrSinister
07-11-2005, 03:57 PM
I've just installed this hack and everything is great apart from when I enable the vbadvanced CMPS bit. I get the following:

Fatal error: Call to undefined function: getrowcolor() in /modules/vbookie_vbadvanced.php on line 35

Anyone had this before or know how to fix it?


if you are running the newest version of vbadvanced CMPS Just remove that part of the code getrowcolor().. thats how i got it to work.

Flow Fusion
07-11-2005, 08:51 PM
OK I got everything to work till I hit submit and then nothing. Anyone have any idea why this is?

Milk Man
07-12-2005, 10:13 PM
I have Ucash, and in the init.php file it says to edit stylecache, but when i do i get an error becuase ucash is their. how do i get the code in without screwing it up. Now my Ucash isn't working.

theo
07-19-2005, 02:26 PM
I'm just installing, have just finished the file modifications and there is a problem with the init file.

Keep getting

Parse error: parse error, unexpected ')' in /home/richard/public_html/forums/includes/init.php on line 550


This involves this edited code

'stylecache',
// +++ vBookie
'vbookiesettings'
// --- vBookie
), $specialtemplates);


Please HELP asap as at the moment my forums will not work

as in www.soccersaurus.com/forums

theo
07-19-2005, 02:32 PM
Oh and i tried uploading the original init file as i had the non edited one saved and it still wont work

DS MrSinister
07-19-2005, 02:32 PM
I'm just installing, have just finished the file modifications and there is a problem with the init file.

Keep getting

Parse error: parse error, unexpected ')' in /home/richard/public_html/forums/includes/init.php on line 550


This involves this edited code

'stylecache',
// +++ vBookie
'vbookiesettings'
// --- vBookie
), $specialtemplates);


Please HELP asap as at the moment my forums will not work

as in www.soccersaurus.com/forums


try this..




'stylecache',
// +++ vBookie
'vbookiesettings',
// --- vBookie
), $specialtemplates);

theo
07-19-2005, 02:46 PM
no still get same sort of problem

this is really annoying

help

Regs
07-19-2005, 02:52 PM
Try this:

'stylecache',
// +++ vBookie
'vbookiesettings'
// --- vBookie
, $specialtemplates);

Cheers,

~Regs.

theo
07-19-2005, 02:57 PM
thanks its now working - u guys are lifesavers :D

theo
07-19-2005, 03:24 PM
actually after further investigation my forums are back up and running but i cant access threads.

this is teh error

Parse error: parse error, unexpected T_STRING in /home/richard/public_html/forums/showthread.php on line 954

and this is the code affected

// +++ vBookie
$_VBOOKIE = array(
'active' => 1,
'ucash' => 2,
'cashon' => 4,
'givetopoor' => 8,
'usepetz' => 16
);
// --- vBookie

line 954 is this bit

// --- vBookie

help again please

Regs
07-19-2005, 03:43 PM
I think you should start all over again and carefully do all the edits in the install file. Looking back, the fix I gave above probably caused more problems than it fixed.

Cheers,

~Regs.

theo
07-19-2005, 04:17 PM
the backup file is corrupted

oh my god this just gets worse and worse

any more ideas anybody......please (getting desperate now)

theo
07-19-2005, 04:37 PM
it would probably just be easier now to sort out the init.php file as the backup seems messed up.

Can somebody please help get this sorted once and for all.

303Nate
07-19-2005, 11:48 PM
Any possibility this works with 3.5 or if anyone it editing to do so?

csidlernet
07-20-2005, 08:13 AM
/me bets that he installed this hack.

Bacon Butty
07-22-2005, 02:24 PM
I expected the points the increase as the user posts. So for example with each post they get "10" points.

Stupid question maybe but how to members increase their points? :ermm:

Paul Ross
07-23-2005, 01:45 AM
By selecting a winning bet I imagine. ;)

wcbryant
07-23-2005, 05:15 PM
Any possibility this works with 3.5 or if anyone it editing to do so?

Definitely curious about that as well. I consider it one of my "must have" hacks that will have to be 3.5 ready before I move my site over. Would love to see Rico update it, or failing that, someone capable getting permission from him to do so. With RC1 live on vb.com today, we're rapidly approaching the point where people are going to have to take steps to convert their sites over if that's the direction they're going.

Lionsault
07-24-2005, 01:57 AM
I'm installing vBookie on my vBulletin, and when I run the install script, I get this error:
Database error in vBulletin 3.0.7:

Invalid SQL:
CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM

mysql error: Invalid default value for 'group_id'

mysql error number: 1067

Date: Saturday 23rd of July 2005 10:19:17 PM
Script: http://www.girlsaloudzone.net/pwrforums/admincp/vbookie_install.php
Referer: http://www.girlsaloudzone.net/pwrforums/admincp/vbookie_install.php
Username: Brendan
IP Address: [edited]

Is this anything you can help me with?

Marco van Herwaarden
07-24-2005, 05:21 AM
Just remove the "DEFAULT '1'"

Lionsault
07-24-2005, 08:12 PM
Just remove the "DEFAULT '1'"
How do I go about doing that? :speechless:

I'm new to vB.

Marco van Herwaarden
07-24-2005, 08:24 PM
In your admincp/vbookie_install.php file,

Find:
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
and replace by:
group_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
Then find:
item_id MEDIUMINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
and replace by:
item_id MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
Then: option_id MEDIUMINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
replace by: option_id MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,

Then: bet_id MEDIUMINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
replace by: bet_id MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,

redspider
07-24-2005, 09:57 PM
ok I installed this and having problem to create a event
I set all permit and everytime I try to post a new event I can see the preview
and when I click ok nothing happen vbookie dont show a news event in the list .
sorry for my poor english I trying my best and really need this working is the 5 time I install and try and same result.

Lionsault
07-25-2005, 01:09 AM
In your admincp/vbookie_install.php file,

Find:
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
and replace by:
group_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
Then find:
item_id MEDIUMINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
and replace by:
item_id MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
Then: option_id MEDIUMINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
replace by: option_id MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,

Then: bet_id MEDIUMINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
replace by: bet_id MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,


Thank you, Marco, it worked!

Lionsault
07-25-2005, 03:02 AM
OK, I installed it, but I cannot access vBookie.php from the navbar, and when I go to make vBookie active, I click yes, however it automatically resets to No.

mcyates
07-31-2005, 04:05 PM
Is it possible to show the last 3 or 4 best on forum home (just the title of the bets) so it would look like this:

[Middlesbrough v Liverpool] [Newcastle v Arsenal] [Chelsea v Manchester United]

This would save me manually putting these on the header.

Thanks in advance.

303Nate
08-01-2005, 03:33 PM
Definitely curious about that as well. I consider it one of my "must have" hacks that will have to be 3.5 ready before I move my site over. Would love to see Rico update it, or failing that, someone capable getting permission from him to do so. With RC1 live on vb.com today, we're rapidly approaching the point where people are going to have to take steps to convert their sites over if that's the direction they're going.

I just PM'd him on his forum asking him just that. I'll let everyone know what he responds.

murrtex
08-03-2005, 07:48 PM
hi guys ..i installed this hack.there is no error.but how can i start the betting.
i mean how can i do a new bet.???

i mean i am lookin for

https://vborg.vbsupport.ru/attachment.php?attachmentid=18957


that section..where is there how can i go there?

cuphongle
08-04-2005, 06:13 AM
yea, i set that admin can post new bet event...
but how do i post new bet event?
thanks

cuphongle
08-04-2005, 05:49 PM
actually after further investigation my forums are back up and running but i cant access threads.

this is teh error

Parse error: parse error, unexpected T_STRING in /home/richard/public_html/forums/showthread.php on line 954


and this is the code affected

// +++ vBookie
$_VBOOKIE = array(
'active' => 1,
'ucash' => 2,
'cashon' => 4,
'givetopoor' => 8,
'usepetz' => 16
);
// --- vBookie


line 954 is this bit

// --- vBookie


help again please


can you paste the first 10 lines prior to that?

wcbryant
08-05-2005, 03:43 AM
I just PM'd him on his forum asking him just that. I'll let everyone know what he responds.

Cool, looking forward to hearing.

I only consider 3-4 hacks that I have as being 'must have's in terms of moving to 3.5.0, but this is one of them. *Really* hoping Rico, or someone with permission from Rico, will be able to easily upgrade it.

Some of the new features he mentioned months ago would be terrific, but really I'm just hoping for compatibility right now. :)

mayzan
08-05-2005, 03:52 AM
Dear All,

I just succeed to install vbookie 1.0.4, how to add a bet event ?
I access to the vbookie icon and I get 3 choices :
1. vbookie home
2. vbookie bets
3. bet statistic

But I don't find the way to post any bet, would you please tell me how to do it. thanks :)

cuphongle
08-05-2005, 06:33 AM
yea...same here...help help

cuphongle
08-08-2005, 12:12 AM
ca someone help

cashpath
08-08-2005, 03:31 PM
Rico hasn't been on vbulletin.org since May 2005...

I think the only chance we have of getting this for 3.5 is if someone else converts it..

It's basically a abandoned hack

GrendelKhan{TSU
08-09-2005, 02:01 AM
Rico hasn't been on vbulletin.org since May 2005...

I think the only chance we have of getting this for 3.5 is if someone else converts it..

It's basically a abandoned hack


that sux. :(

Regs
08-09-2005, 12:52 PM
Do a search guys, someone is testing out a port to 3.5...

Lionsault
08-12-2005, 05:00 AM
Ok, so I updated to 3.0.8,never could get it working on 7..

I almost have it working here on .8...

my problem lies within this code:

admincp/index.php

// +++ vBookie
construct_nav_option("General Settings", 'vbookie_admin.php?do=general', '<br />');
construct_nav_group("vBookie", '<hr />');
// --- vBookie

The bolded line contains an error. It is line 456

I can click in the Navbar and go into the vbookie area, and everything seems normal but I can get my vBookie Options to appear in the Admin cp AND I get this line inside the admin cp right under the Administrater Notes:

Fatal error: Call to undefined function: construct_nav_option() in /usr/home/blaze/public_html/pwrforums/admincp/index.php on line 456

Help is Greatly Needed and would be even more so Greatly Appreciated :)

Marco van Herwaarden
08-12-2005, 05:51 AM
You placed it at the wrong line. It should be around line 570 (in 307)

cuphongle
08-12-2005, 07:13 PM
but how do i open up new event? i got everthing installed...

Koopa
08-12-2005, 07:18 PM
I have a problem. When I update a Bet, it redirects me to a different bet afterwards. I'm running vB 3.0.7.

Thanks :)

sonic3d
08-13-2005, 01:51 AM
maybe i am just slow but i still dont understand how the odds work.

use this as an example:
Favorite...........Open.....Today.....O/U....Underdog
at Cincinnati.....2 1/2.....2 1/2.......37.....New England

what are the odds for cincinnate and the odds for new england. once someone shows me how its done then i can do the rest.

thank you

later
sonic

Lionsault
08-13-2005, 02:50 AM
OK... I fixed that Marco, but now that the vBookie tab is to the side, there are no options for me to edit it. :( Also, there is another tab, General Settings, which has no options when you expand it.

Lionsault
08-13-2005, 10:45 PM
sorry bout the double post, but i fixed that problem above^

Now i got a new problem...

Everything works, I can get to the point of making the thread and then when i hit submit vBookie, this comes up:

Invalid SQL: SELECT FROM WHERE userid='4'
mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM WHERE userid='4'' at line 1

It appears to have something to do with my user ID settings perhaps, ID 4 on my forum is (COPPA) Users Awaiting Moderation which I do not use.

Help Please :)

Andreas
08-15-2005, 08:42 AM
Security Warning
This Hack contained serious XSS and SQL injection vulnerbilities.
If you downloaded this Hack before 14.08.2005 19:10 CEST I strongly recommend to make the following changes immediately to keep your installation safe.
Security Warning


In vbookie.php (around line 226) find
--------------------------------------------------
if (!$_GET['type'])
$_GET['type'] = 'OPEN';
--------------------------------------------------

BELOW that ADD
--------------------------------------------------
globalize($_GET, array('type' => STR_NOHTML));
--------------------------------------------------


FIND
--------------------------------------------------
$q = "INSERT INTO " . TABLE_PREFIX . "vbookie_bets_placed (option_id, item_id, userid, bet_amount_placed, bet_odds_against, bet_odds_for, bet_private) VALUES ($k, $item_id, $bbuserinfo[userid], $v, ".$odds1[$k].", ".$odds2[$k].", '$private')";
--------------------------------------------------

REPLACE that with
--------------------------------------------------
$q = "INSERT INTO " . TABLE_PREFIX . "vbookie_bets_placed (option_id, item_id, userid, bet_amount_placed, bet_odds_against, bet_odds_for, bet_private) VALUES ($k, $item_id, $bbuserinfo[userid], $v, ". intval($odds1[$k]).", ".intval($odds2[$k]).", '$private')";
--------------------------------------------------


In Template vbookie_main
FIND
--------------------------------------------------
$_GET[type]
--------------------------------------------------

REPLACE that with
--------------------------------------------------
$type
--------------------------------------------------


The ZIP File has been updated accordingly.

cuphongle
08-15-2005, 05:03 PM
thanks, i just need help real quick

can someone please help me
i got everything installed...
i set up a bookie event and everything

but how do you bet?

foxy11
08-16-2005, 10:54 AM
Thanks for the warning Kirby! :)

Ski-Whiz
08-17-2005, 07:09 PM
Anyone know how to limit the odds?? I know you can limit the bet, but with odds at like 100, it still pays too high. I'ld like to limit the odds..

Sorry if I'm missing something. I jsut didn't see where.. Thanks ahead of time!

Koopa
08-18-2005, 05:47 PM
I have a problem. When I update a Bet, it redirects me to a different bet afterwards. I'm running vB 3.0.7.

Thanks :)

Has no one any idea whats wrong with mine then?

Celtic_Mad
08-21-2005, 07:29 PM
I have had a problem with this hack for a while now. Every time someone creates a new bet, it adds two links in the vbookie.php page. Below is a link to a screenshot I took of the problem...

http://img.photobucket.com/albums/v504/celticfcmad/ed982b8f.gif

One links to the actual betting thread and the other links to another totally random vbookie event...it's very confusing.

Anyone know how to solve this?

nonet
08-22-2005, 04:47 PM
Okay gang, I'm stumped. I've read through all 44 pages of this thread and still cannot get past my issue. When I create a new thread the option to post a new event does not appear. I know I can hear it already....double check your template edits. Here is what I've done so far.

1. Triple checked EVERY single file myself. I even hired a coder of SL to double check my work. No issues EVERY file was changed correctly.

2. I reverted all templates just for the heck of it.

3. Ran the installer again except for DB changes.

4. Checked usergroup permissions to be certain Admin can create, edit and bet on events.

5. checked phrases clicked edit on each one and resaved.

At this point I'm open to any ideas.

Andreas
08-22-2005, 05:00 PM
Check your File- and Template Edits and Permissions :)

Or drop me a PM with a FTP/ACP Login.

subnet_rx
08-22-2005, 07:43 PM
How is everyone handling football or other games that might have sports odds like "Win by 3"?

Andreas
08-22-2005, 08:54 PM
Attention

Another SQL Injection Leak

In vbookie.php
FIND
----------------------------------------
if((int)$v > 0)
{
----------------------------------------

BELOW that ADD
----------------------------------------
$k = intval($k);
$v = intval($v);
----------------------------------------

TTG
08-22-2005, 09:07 PM
thanks for the quick update Kirby

TTG
08-22-2005, 09:11 PM
Okay gang, I'm stumped. I've read through all 44 pages of this thread and still cannot get past my issue. When I create a new thread the option to post a new event does not appear. I know I can hear it already....double check your template edits. Here is what I've done so far.

1. Triple checked EVERY single file myself. I even hired a coder of SL to double check my work. No issues EVERY file was changed correctly.

2. I reverted all templates just for the heck of it.

3. Ran the installer again except for DB changes.

4. Checked usergroup permissions to be certain Admin can create, edit and bet on events.

5. checked phrases clicked edit on each one and resaved.

At this point I'm open to any ideas.

Try creating a new usergroup "vBookie admins", with obviously permissions to create vbookie events .. add yourself into the 'Additional Usergroups' and then try making a vbookie event.

michaelsilvia
08-22-2005, 09:49 PM
Will this work with 3.0.7.? Thanks!

Mike

subnet_rx
08-23-2005, 03:35 PM
Try creating a new usergroup "vBookie admins", with obviously permissions to create vbookie events .. add yourself into the 'Additional Usergroups' and then try making a vbookie event.

I'd also look at your forum permissions, that's where I got tripped up. I checked the group permissions ten times, but never set the forum permissions to allow the creation of an event.



I see in the instructions, that it's possible to restrict events to certain groups. Is this on a per event basis? Is it possible to setup leagues for NFL and College seperately with seperate groups and events for each?

subnet_rx
08-23-2005, 03:36 PM
Will this work with 3.0.7.? Thanks!

Mike

yes, it will.

Steelersfan
08-23-2005, 03:44 PM
Will this work on 3.0.8?

I have tried to run the installer (haven't even got to the edits yet) and it will install the templates and phrases but when it gets to database I get:

Database error in vBulletin 3.0.8:

Invalid SQL:
CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM

mysql error: Invalid default value for 'group_id'

mysql error number: 1067

Any ideas?

Andreas
08-23-2005, 03:53 PM
Use

CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL)

Steelersfan
08-24-2005, 02:39 AM
Thanks! Now I will go try the rest of the install.

sharonkitty67
09-01-2005, 01:14 PM
I need someone to install this for me!! Gahhhhhhhhhhhhh! Im not that great at this sorta thing - I'll pay!

MRGTB
09-01-2005, 02:55 PM
Does this work with vBulletin 3.0.8. I have installed it and took my time with all the file edits. The vBookie page is there and I'm getting no errors. Everything seems to have been installed just fine.

But when I go to post a new thread. The link is not there to post a vBookie bet with the thread.

I have checked usergroup permissions and enabled admin to post bets as well as members. And I have also enabled the betting system using it own betting type. But still no option is there in a new thread to attach a bet.

Can somebody advice and help me please with this.

PS: I also notice that somebody above said he got a MySQL error duting the installtion on 3.0.8. Well the install file went OK for me and I did'nt get any MySQL errors at all. :ermm:

MRGTB
09-01-2005, 03:25 PM
My mistake, I didn't know after the vBadvanced bit there were also a couple of template edits also to be done also. It's working fine but I have question.

There is a section in the file edits were you are asked to open the file called init.php

and search for this:


'stylecache'
), $specialtemplates);


and place with this:


'stylecache',
// +++ vBookie
'vbookiesettings'
// --- vBookie
), $specialtemplates);


The problem is in vBulletin 3.0.8 the line you search for called.

'stylecache'

already had a comma after it like this:

'stylecache',

So what do I do with the placement code. Do I add a comma after the last line in the mod instead.

Should it look like this:


'stylecache',
'vbookiesettings'
), $specialtemplates);


or this: Seeing as the stylrcache line in vbulletin 3.0.8 already has a comma after it unlike the mod that asks you to search for it mwithout a comma which must have been a 3.0.0 thing that wasnt there in that version.


'stylecache',
'vbookiesettings',
), $specialtemplates);

MustangLisa
09-09-2005, 01:22 PM
Looks good; I'm going to install. Thanks for all your work!!!

atomic fireball
09-11-2005, 11:46 PM
Is there any easy tweak to this to have the user's cash amount show up when you click on their user info in member.php?

It would be nice to see how much they have under "Join Date: XX-XX-XXXX" to just say something like in the Postbit.

Any help for getting this tweak? Seems easy for your PHP experts which I am obviously not. :(

djwins
09-14-2005, 07:37 AM
I've discovered a huge flaw in the way vBookie events work that allow someone to vote on any events at odds of his own choosing.

The way to do this, which i discovered by chance, is trivial: make a copy of the form - and edit it to change the odds, which are written in the webpage and not checked after submission.

I thought you should know, because someone wanting to exploit it could do so incredibly easily.

Is there any thoughts as to how to fix this??? Much thanks.


Yes this flaw has already been pointed out the fix for it has already been pointed out also
Where is the fix?

Andreas
09-14-2005, 07:47 AM
It's not fixed in the vBulletin 3.0 Version and the original author most likely won't update it anymore.
As this isn't a real security issue you might be out of luck if nobody else does a fix.

Flow Fusion
09-14-2005, 11:10 AM
Help...

gt1329a
09-15-2005, 09:50 PM
I just installed this and it's working beautifully... Except now all of my users can see who left them reputation hits. Before, only certain groups had that ability. In the usergroup admincp module, the reputation options block is completely missing now.

I tried adding it back manually by copying from a fresh VBulletin download and adding the relevant code block into usergroup.php. That brought the options back in the CP, but now I get a database error when I try to save those options.

Has anyone else run into this?

cuphongle
09-17-2005, 04:05 PM
installed

its good

TomNoc
09-27-2005, 09:37 PM
Ok first off im getting this error

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/soccerv/public_html/forum/includes/functions.php on line 2013

secondly the vcash isnt showing up at the users profile and the vbookie link isnt showing up at the top of the index page where it says member list user cp etc

please help.

TomNoc
10-01-2005, 10:22 PM
Im still not sure its been installed correctly

http://www.soccervision.co.uk/forum/vbookie.php

subnet_rx
10-03-2005, 02:10 PM
Im still not sure its been installed correctly

http://www.soccervision.co.uk/forum/vbookie.php

Anyone know how to change the pay out winner after an event has been settled. My "bookie" sometimes clicks the wrong checkbox.

mcasteel
10-06-2005, 01:13 AM
Transferred all files to proper folders. Assumed file editing was only necessary if upgrading from an older version. When trying to run the install, I got this error.

Database error in vBulletin 3.0.8:

Invalid SQL:
CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM

mysql error: Invalid default value for 'group_id'

mysql error number: 1067

Anyone know what I might have done wrong?

nighteyes
10-06-2005, 01:43 AM
Anyone know how to change the pay out winner after an event has been settled. My "bookie" sometimes clicks the wrong checkbox.

This is actually a feature desperately needed for the updated 3.5x version. A way to unsettle markets and then resettle them properly if the operater made a mistake.

The way I do this now is by executing a series of MySQL queries from the command line. But it doesn't claim back money from those who were wrongly settled as winners.

Flow Fusion
10-09-2005, 02:34 PM
How can I uninstall this hack to re-install?

ausnrl
10-12-2005, 05:17 AM
Is there like a way to put it in vBulletin 3.0.9? I havnt read all posts in this thread but if you could provide a link the page if its here thanks or if its not in 3.0.9 wats the latest version of vBulletin its on?

tjdrico
10-12-2005, 04:20 PM
In response to the various people that have asked me about a version of vBookie for vBulletin 3.5.0, I'm sorry to say that I have no current plans to produce one myself. Although Ihave a lifetime vBulletin licence, my year's worth of free upgrades expired in March, so making a version for 3.5.0 would be difficult.

Brimstone
10-12-2005, 07:15 PM
I installed this hack on my 3.5.0 forums and it worked beautifully. Should I not have installed it?? If so, please let me know. :)

I really like the hack, btw. It is incredible, tjdrico. If you did create an upgrade for 3.5.0, our community would certainly make a donation on your behalf using paypal.com.

Brim

tjdrico
10-13-2005, 06:59 AM
No, no, Brimstone I didn't mean that at all. Some people have asked me if I am going to do a version for 3.5.0 so I assumed there's some problem with the existing version. If it works with 3.5.0 that's great! Can anyone else confirm it works on 3.5.0 OK?

Thanks for the compliment. =)

Flow Fusion
10-13-2005, 10:19 AM
It works on 3.5

http://giftedsouls.com

Brimstone
10-13-2005, 03:47 PM
It works on 3.5

http://giftedsouls.com

TJ: Cool! The only problem we have (which doesn't affect the outcome, really) is this error message after a bet is placed:

No Thread specified. If you followed a valid link, please notify the administrator

That error opens on a new page, but the bet IS placed. Any ideas?

HHU
10-18-2005, 05:10 PM
Problem Im Having...

For Some Reason, My Bookie Seems To Have A Maximum Payout Of Somewhere A Little Over - $2100000000... So When My Users Are Making Bets, Anything Won Over That, They Will Not Recieve Anything ($0)

So When Users Place High Bets And It Totals Over The Payout, Nobody Recieves Any Winnings...

Or When Lots Of Users Are Betting And It Totals That.. Or The Winnings Total That Or Over... Nobody Recieves Anything

Im Assuming Others Have Come Across This Problem? Anybody Able To Help Me Out With That..

Thanks

Using Ucash by the way....

Big_T
10-24-2005, 08:18 PM
Ive installed vbookie

http://www.soccervision.co.uk/forum/vbookie.php

When we add a forum and try to make events we cant do it, as there isnt a box to tick where it should say ''add a vbookie event''. Any suggestions?

https://vborg.vbsupport.ru/ (http://img236.imageshack.us/my.php?image=ffff8rm.jpg)

Rabbitoh Warren
10-24-2005, 08:36 PM
Ive installed vbookie

http://www.soccervision.co.uk/forum/vbookie.php

When we add a forum and try to make events we cant do it, as there isnt a box to tick where it should say ''add a vbookie event''. Any suggestions?

https://vborg.vbsupport.ru/ (http://img236.imageshack.us/my.php?image=ffff8rm.jpg)

BigT, I suggest you check your usergroup permissions for vBookie. That's all your usergroups too. This happened to me when I first installed it again and then I wondered why my users weren't betting then I realised I hadn't given them permission to do so...!

Gunshot
10-25-2005, 06:25 AM
Ive installed vbookie

http://www.soccervision.co.uk/forum/vbookie.php

When we add a forum and try to make events we cant do it, as there isnt a box to tick where it should say ''add a vbookie event''. Any suggestions?

http://img236.imageshack.us/img236/6324/ffff8rm.th.jpg (http://img236.imageshack.us/my.php?image=ffff8rm.jpg)


you quite possibly only have vbookie installed on some styles and not in others. So, Vbookie will not show up if you use custom templates other then the template you were using when Vbookie was installed

or your permissions need editing

Big_T
10-25-2005, 09:06 PM
I'm not sure we can delete the parent style of the skin that we are currently using. We had 6 different skins and we have deleted 4 of them

If i delete the parent skin of the one im using will this delete both skins?

Big_T
10-27-2005, 01:17 PM
Well???????

Flow Fusion
10-27-2005, 06:33 PM
Use the skin that you have added the templates to. Then set that skin as the parent. Then revert the templates of the other skins to match the default one.

Stone Cold 3:16
10-30-2005, 03:46 PM
<font color="green">* Stone Man clicks install </font>

rantrave
11-03-2005, 05:06 PM
I know there is probably no support for this, but any reason after install that the vbookie.php? comes up blank? Nothing. Just a white page.

dubsyxxx
11-20-2005, 02:33 PM
vbookie is not showing up in my usergroup manager

khan3332
11-29-2005, 07:57 PM
how do you uninstall this?!?!?!

MUDERCOOL
12-09-2005, 10:33 PM
hello,
is there a way to put a limit for points to win per user for a specific event?

for example, milan vs inter (soccer betting)
users "may" bet on any option in a limit of 1000 points, nothing more for milan, inter or the other options. is this kinda thing possible??

Datenpapst
12-14-2005, 11:04 AM
Screwed up the installation?

Have got a Problem with the installation:
OPEN includes/init.php

FIND
PHP Code:
'stylecache'
), $specialtemplates);

REPLACE WITH
PHP Code:
'stylecache',
// +++ vBookie
'vbookiesettings'
// --- vBookie
), $specialtemplates);

I have got the Arcade installed and so it makes this problem:
the script in the File inti.php expects: an ')' at row 519
when I place the vbookie code after this row
'arcadesettings'
---->>>
), $specialtemplates);

this mistake comes.... :( What to do?

Datenpapst
12-14-2005, 11:05 AM
Have got a Problem with the installation:
OPEN includes/init.php

FIND
PHP Code:
'stylecache'
), $specialtemplates);

REPLACE WITH
PHP Code:
'stylecache',
// +++ vBookie
'vbookiesettings'
// --- vBookie
), $specialtemplates);

I have got the Arcade installed and so it makes this problem:
the script in the File inti.php expects: an ')' at row 519
when I place the vbookie code after this row
'arcadesettings'
---->>>
), $specialtemplates);

this mistake comes.... :( What to do?

because of this, I cant save the bookie settings :(

Datenpapst
12-19-2005, 02:31 PM
because of this, I cant save the bookie settings :(

Help please :(

sn8k
12-28-2005, 06:01 PM
Help please :(

If all you have is the arcade - then it should read like.......

'stylecache',
'arcadesettings',
'vbookiesettings'
), $specialtemplates);


Hope that helps :D

AquilaEagle
12-29-2005, 05:10 PM
Sounds great posting to bookmark it, not installing just yet :)

kr580
01-15-2006, 09:05 PM
Is there any way I can maunally delete events without the thread? When I first installed it I put some events up and I did it wrong so I deleted the threads for the events without ending the actual event first. Now they're sitting there but they won't go away as I havn't settled them. Any way to get rid of these?

There's no 'Delete' anywhere. No thread. Nothing.

http://img58.imageshack.us/img58/50/bets0eq.gif

When I click the 'Thread' or 'Info' link it takes me to a page that says "Invalid vBookie Event/thread specified. If you followed a valid link, please notify the administrator"

dubsyxxx
06-03-2006, 11:35 PM
Yes, that's quite possible.

All you'd need to do is hack the functions_vbookie.php file, changing the 8 instances of 'vbookie_cash' to 'reputation'. That should be all you need to do. You might want to alter some of the phrases as well, as they mention 'cash' such as "You do not have enough cash to cover your bets" (vbookie_not_enough_cash) or "You have 300 cash" (vbookie_may_bet), etc.

Also, in the vBookie general settings, turn off the display of vCash in the postbit, as it'd be pointless to display. Since you're dealing with Reputation, you'd also want to turn off the "charity" mode I expect, as that would re-set anyone lower than 25 to a 25 Reputation each time a new Event is added.

This isnt working for me can someone help

Pete C
06-16-2006, 01:08 PM
Ok, I've read through most of this thread and can't seem to find a similar problem - so help please?

I've done everything in the instructions and there are no parse errors when I load the site. I set vBookie as active, and selected uCash. Problem is, when I try to access vbookie.php there's just a blank page. Same thing happens when I select "Post vBookie event" as a posting option . . it just loads a blank page!

Everything appears to be ok. As I said, no parse errors, no install errors, and the vBookie options have been added to my ACP.

Now I do have v3 Arcade, uCash/uShop, & vbChat installed (and working well) but I think the prob must be some kind of clash with one of these hacks.

I expected to make some minor changes in view of these prior modifications . . the change to my includes/init.php looks like this:
// ## <ucs>
'stylecache',
'utt_store_act',
'arcadesettings',
// +++ vBookie
'vbookiesettings'
// --- vBookie
), $specialtemplates);
}

As I said the other mods were/still are working fine . . and the prob may not necessarily be with this file. I simply can't get the vbookie page to display - any suggestions greatly appreciated.

Belder's Place (http://belders-place.com)

Pete C
06-16-2006, 03:14 PM
Ok, got it working on 1 theme. The problem seems to be that the vBookie templates were only added to the theme that was set as "forum default".

That isn't the vB default theme, and the vB default theme can't be "parented" by an added theme . . so is there a relatively easy way to get all the added templates into the default theme (and others) . . or would I need to copy each template and add them manually?

Belder's Place (http://belders-pace.com/index.php)

Pete C
06-19-2006, 08:54 PM
Sorted. Enough said.

haknet
07-02-2006, 08:36 AM
Hi !
I am setting the value "Can Post vBookie Events" yes (for administrotors)
And I am saving the permissions !
But I can't post vbookie events again !
When I am going to Administrotor permissions I see that it's still No (Can Post vBookie Events)
I can't set it to yes !
What can i do ?
Thanks !!
(Sorry,My English is very bad )

Stanesq
07-06-2006, 02:15 AM
where do i post to have someone professionally install the latest Vbookie software? I cant get this darn thing working.

Stanesqauto@aol.com

MUDERCOOL
07-11-2006, 11:00 PM
hello! great hack, thank you.

how can I adjust the winning amounts as an option wins it should be paying for 1.50 => 1.50, not 2.50
I mean;
for example, if a user puts 100 points and the odd is "1.5" (15/10) and the user gets 100+150 points, 250 points if he wins.
However I want to give him (if he wins) "150", instead of 250

I hope I'm clear enough. How can I adjust this? thank you.

Celtic_Mad
07-12-2006, 10:34 AM
Would anyone be as kind as to update this for vBulletin 3.6?

Thanks.

adranix
07-18-2006, 08:46 PM
I'm having the same problem as haknet when ever I change the permissions so administrators can add new events (Can Post vBookie Events) I click YES for all 3 options and save and it says it was successfully but then I go in it again and they are all on NO.

PLEASE HELP, my email is aranshaw@aol.com

Thanks.

dhh
08-05-2006, 10:59 PM
I'm having the same problem as haknet when ever I change the permissions so administrators can add new events (Can Post vBookie Events) I click YES for all 3 options and save and it says it was successfully but then I go in it again and they are all on NO.

PLEASE HELP, my email is aranshaw@aol.com

Thanks.

I just installed this as well and im having the same problem i set to yes and save when i go bac its default to no again are there other setting that need to be changed

Thanks

webgod
09-07-2006, 02:04 PM
I just installed this today and want to set it up for todays NFL game

I'm confused as to how to set it up (the bet)

Here's the info:

Miami Dolphins @ Pittsburgh Steelers - Thursday, September 7, 2006

Competitor: Miami Dolphins
Point Spread : -1½
Total Score: 34½

Competitor: Pittsburgh Steelers
Point Spread : +1½
Total Score: 34½

How do I set up the vBookie Event to bet for this game?

Please help ASAP

Thanks in advance!

webgod
09-07-2006, 03:32 PM
OK I figured it out

use 1 to 1 odds and set each outcome as a bet i.e.

Dolphins -1.5
Steelers +1.5
Under 34.5
Over 34.5



here's a hack I did that may interest some.. because there are about 32 bets possible every week in the NFL ~ 16 games, winner & Over/Under bets I wanted to institue a maximum bet per game

I edited vbookie.php

Find the following

$q = "INSERT INTO " . TABLE_PREFIX . "vbookie_bets_placed (option_id, item_id, userid, bet_amount_placed, bet_odds_against, bet_odds_for, bet_private) VALUES ($k, $item_id, $bbuserinfo[userid], $v, ".


and above it add:


// MAXIMUM STAKE HACK
if ((int)$v > 25)
{
$v = 25;
}
// END MAXIMUM STAKE HACK


Find the following

if ((int)$v < 0)
{
standard_error(fetch_phrase('vbookie_negative_amou nt', PHRASETYPEID_ERROR, '', true, false, 0));
}


and bellow it add:


// MAXIMUM STAKE HACK
if ((int)$v > 25)
{
$v = 25;
}
// END MAXIMUM STAKE HACK
// Now let's check to see if he's already made that bet in the past
$alreadybet = $DB_site->query_first("SELECT option_id from " . TABLE_PREFIX . "vbookie_bets_placed where userid=$bbuserinfo[userid] and option_id=$k");
if ($alreadybet['option_id'])
{
standard_error(fetch_phrase('vbookie_not_allowed_m ultiple', PHRASETYPEID_ERROR, '', true, false, 0));
}
//END


change the 25 to whatever you want your max to be

webgod
09-07-2006, 07:38 PM
Another hack for the stats page I just implemented....

Because I only allow a max wager of 25 per outcome, the total vCash movement is small, and there will be a lot of people hovering at or near the initial 500 mark..

so in order to only display people that have placed a wager as the "richest people" on the stats page I made the following change:

functions/functions_vbookie.php

find:

$q = "SELECT username, vbookie_cash AS cash FROM " . TABLE_PREFIX . "user ORDER BY cash DESC LIMIT 5";

and replace it with:


$q = "SELECT Distinct usr.username, usr.vbookie_cash AS cash FROM " . TABLE_PREFIX . "user as usr
LEFT JOIN " . TABLE_PREFIX . "vbookie_bets_placed AS bets ON bets.userid=usr.userid
Where bets.userid=usr.userid
ORDER BY cash DESC LIMIT 20";


note you can change LIMIT 20 to the number of people you want to display, I chose 20, but can set it to whatever you want

Foxsake
09-20-2006, 07:18 PM
Im using vbookie (vcash) and want to display the top 10 richest, however changing the figure to 10 in functions_vbookie.php does nothing? only the original 5 are seen - can someone guide my on this one?


Cheers ;)

pdcimc1
09-23-2006, 03:53 PM
Can anyone tell me how I can either completely disable private bets or how I can just make it so that admin can atleast see them?

I use my vBookie to run contests and for some reason when someone bets as "private" no one can see their bet and the money doesnt get automatically paid out if they win when the bet is settled.

Thank you in advance. I know someone out tehre must have a fix for this.

JamieLee2k
09-30-2006, 02:33 PM
Call me thick but I have installed it and the option is in the threads where I have to tick to use but how do I create the bets?

radarhunter
10-05-2006, 10:37 AM
does this work on 3.6.2

Or do you have a version for that

adranix
10-07-2006, 10:21 AM
I have VB 3.6.2 and uploaded all the file but when I try to install it, it says:

Fatal error: Call to a member function on a non-object in /home/adranix/public_html/forum/admincp/vbookie_install.php on line 1176

I havent got a clue what that means, does anyone know?

Thanks, Adam

wilburshere
10-08-2006, 07:46 AM
I have VB 3.6.2 and uploaded all the file but when I try to install it, it says:

Fatal error: Call to a member function on a non-object in /home/adranix/public_html/forum/admincp/vbookie_install.php on line 1176

I havent got a clue what that means, does anyone know?

Thanks, Adam

there is no vbookie_install.php

you upload the files do the edits listed

also rebuild bitfield afterward

admincp/index.php?do=buildbitfields

basskiller
10-08-2006, 12:09 PM
there is no vbookie_install.php

you upload the files do the edits listed

also rebuild bitfield afterward

admincp/index.php?do=buildbitfields
look under the admincp file of this hack, it's the second PHP file
named: vbookie_install.php

adranix
10-09-2006, 12:30 PM
Is it compatable with 3.6.2?

I rebuiled the bitfields but still no luck.

Is there something im meant to change in vbookie_install.php?

Thanks, Adam

adranix
10-09-2006, 12:42 PM
Fixed It, I found a version for 3.5 and it works.

Adam

Hollister
10-09-2006, 04:16 PM
there is no vbookie_install.php

you upload the files do the edits listed

also rebuild bitfield afterward

admincp/index.php?do=buildbitfields

I uploaded everything and still got the same error.

rollinjunk
10-30-2006, 03:54 PM
Fixed It, I found a version for 3.5 and it works.

Adam



can you tell me where this might be?????

oz_moses
11-07-2006, 05:05 AM
The search (https://vborg.vbsupport.ru/search.php) is a truly groundbreaking feature of vbulletin. I suggest you tell it to search titles only and to look for vbookie.

bahisyeri
12-20-2006, 11:06 PM
Hi!
There is a security problem on this add-on..
Some users are cheating, they can change their points..

what can i do for 3.0.6 ?
isn't there any patches or new versions ?

mosh_nz
01-08-2007, 10:08 PM
Hi guys,

I am also getting the error:
Fatal error: Call to a member function on a non-object in /home/nzwarriors/public_html/forum/admincp/vbookie_install.php on line 1176

When I try to install vbookie, can someone please help. I have a freshly installed 3.6.4 with no other mods.

Thanks

AdamB
01-13-2007, 04:02 AM
Hi guys,

I am also getting the error:
Fatal error: Call to a member function on a non-object in /home/nzwarriors/public_html/forum/admincp/vbookie_install.php on line 1176

When I try to install vbookie, can someone please help. I have a freshly installed 3.6.4 with no other mods.

Thanks

Same problem over here too. Looking for a fix.

Letsbet
03-09-2007, 02:41 PM
Can you back each way yet does anyone know?

HEATSEEKERBUNGE
03-13-2007, 07:27 PM
I have the issue to where every time i set the user permissions on permission manager it would default all the option to no even when i put all three options to yes so i uninstalled this even though my community wants this.

If anybody can help me post or aim me at jediknightlaser

erl
03-19-2007, 11:43 PM
ive installed everything its just that every time i successfully change my user to say yes in the usergroup management it reverts back to NO...
is there a way to change that?

Jurg
04-07-2007, 06:19 PM
never mind...

ChuckH
05-10-2007, 01:40 PM
Can anyone give me a good example of vbookie_posticon.gif?

Thanks

Panagioths
05-13-2007, 06:40 PM
hello! great hack, thank you.

how can I adjust the winning amounts as an option wins it should be paying for 1.50 => 1.50, not 2.50
I mean;
for example, if a user puts 100 points and the odd is "1.5" (15/10) and the user gets 100+150 points, 250 points if he wins.
However I want to give him (if he wins) "150", instead of 250

I hope I'm clear enough. How can I adjust this? thank you.

Any luck for this? I have the exact same problem....:confused:

wilburshere
06-05-2007, 12:24 PM
Originally Posted by tjdrico
Assuming you are using "vCash":

SQL Query: (how to run queries)

UPDATE user SET vbookie_cash=500;

DELETE FROM vbookie_news;
DELETE FROM vbookie_bets_placed;
DELETE FROM vbookie_item_options;
DELETE FROM vbookie_items;
DELETE FROM vbookie_groups;


You'll need to add the table prefix if you're using that, of course.


worked thanks

dukegotgame
06-12-2007, 01:44 AM
how can i get each user's vcash to be displayed when they post.. like by their username, posts count, title, etc

rcristel
07-24-2007, 01:50 AM
I need some help with the following things.When I check to say allow usergroup to post events/bet/edit events when I click Save the things dont save.It says saved succesfully and then it doesnt save.Any suggestions?

Shazz
07-24-2007, 02:29 AM
Youll find many bugs and errors on 3.6.x
.