vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBookie - vBulletin Betting Hack (https://vborg.vbsupport.ru/showthread.php?t=65844)

wcbryant 08-05-2005 03:43 AM

Quote:

Originally Posted by 303Nate
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

Quote:

Originally Posted by cashpath
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

Code:

// +++ 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:

Code:

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:

Code:

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

Code:

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

Quote:

Originally Posted by Koopa
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/v5...d/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
Code:

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

Quote:

Originally Posted by nonet
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

Quote:

Originally Posted by TTG
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

Quote:

Originally Posted by michaelsilvia
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
[sql]
CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL)
[/sql]

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:

Code:

'stylecache'
        ), $specialtemplates);

and place with this:

Code:

'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:

Code:

'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.

Code:

'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

Quote:

Originally Posted by Ock
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.


Quote:

Originally Posted by cashpath
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...


All times are GMT. The time now is 09:35 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01974 seconds
  • Memory Usage 1,837KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete