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)

BullTaco 01-17-2005 12:53 PM

Well thats my probelm...I do not see that when I click on new thread. I have the usergroups I want checked so they can use it..and I have it turned on in my adminpanel.

I got no errors when I installed it. Everything seems to be working...I just have no option to post a vbookie event.......I even went back and re did the newthread template portion..to make sure I did not do something wrong...

I am at a lost.

BullTaco 01-17-2005 12:56 PM

Well after much thought....I just went back to all the usergroups to check to make sure I had them set to "allow vbookie events"...they all we're.....so I just updated them...instead of baking out ofthem....and voila.....there they are!!

Thanks so much for the help!

BullTaco 01-17-2005 01:09 PM

Well...I shouldnt have been so fast....LOL

I can see it in some forums and not in others...I cant see a difference in settings of the forums....is there something in a particuliar forum is to why that would not show up in the newthread ??

xjussix 01-21-2005 09:53 AM

Any idea why the following code in the end of global.php causes " Warning: Invalid argument supplied for foreach() in /includes/functions.php" after upgrading from 3.0.5 to 3.0.6?

Code:

if (DB_QUERIES)
{
    $pageendtime = microtime();
    $starttime = explode(' ', $pagestarttime);
    $endtime = explode(' ', $pageendtime);
    $aftertime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
    echo "End call of global.php: $aftertime\n";
    echo "\n<hr />\n\n";
}

// +++ vBookie
// get general settings for vBookie
$vbookiesettings = convert_bits_to_array($vbookiesettings,$_VBOOKIE);
// --- vBookie

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 02:21, Fri Jan 21st 2005


skinny 01-21-2005 11:21 AM

Quote:

Originally Posted by xjussix
Any idea why the following code in the end of global.php causes " Warning: Invalid argument supplied for foreach() in /includes/functions.php" after upgrading from 3.0.5 to 3.0.6?

Code:

if (DB_QUERIES)
{
    $pageendtime = microtime();
    $starttime = explode(' ', $pagestarttime);
    $endtime = explode(' ', $pageendtime);
    $aftertime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
    echo "End call of global.php: $aftertime\n";
    echo "\n<hr />\n\n";
}

// +++ vBookie
// get general settings for vBookie
$vbookiesettings = convert_bits_to_array($vbookiesettings,$_VBOOKIE);
// --- vBookie

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 02:21, Fri Jan 21st 2005


I had terrible problems with my functions.php file when I had to edit it. Try making the changes in a simple text editor like notepad or wordpad. I always have to when editing functions.php otherwise it adds spaces into the file which cause errors like you are having.

trackpads 01-21-2005 12:16 PM

I recommend CuteFTP Pro from globascape. You can open the files on the server and then just click save. Never had a problem that wasnt my fault. It is a great program:

http://www.globalscape.com

-Jason

Roxie 01-22-2005 01:58 AM

When I edit includes/adminfuctions_forum.php with this code:

Code:

// +++ vBookie
    print_description_row($vbphrase['vbookie_permissions'], 0, 2, 'thead', 'center');
    print_yes_no_row($vbphrase['can_post_vbookieevents'], 'forumpermission[canpostvbookieevent]', $forumpermission['canpostvbookieevent'], $extra);
    print_yes_no_row($vbphrase['can_edit_others_vbookieevents'], 'forumpermission[caneditothersvbookieevents]', $forumpermission['caneditothersvbookieevents'], $extra);
    print_yes_no_row($vbphrase['can_bet_on_vbookieevents'], 'forumpermission[canbet]', $forumpermission['canbet'], $extra);
    // --- vBookie

After this

Code:

print_yes_no_row($vbphrase['can_vote_on_polls'], 'forumpermission[canvote]', $forumpermission['canvote'], $extra);
I get the attached. Notice the vbookie settings at the top. I have tried to fix it about 3 times. Any ideas? I'm not sure if it's causing any issues. Everything else seems to work. Although the settings in usergroup manager won't stick sometimes.

Roxie 01-22-2005 02:38 AM

Quote:

Originally Posted by Lionel
The problem was in the bitfield. They were both using the same bitfield number. I doubled the other hack bitfield, and the permissions are holding and the other hack appears to be fine.

However, I am confused on how Vbookie works. I gave full permission to admin, and when I go to vbookie.php I do not see how to input a bet.

Thanks. This fixed 1/2 of my issue.

teamgofast 01-24-2005 12:06 AM

anyone help me with this?

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

i had a template issue and tried to reinstall everything but get this error?

Spikeh 01-24-2005 11:14 AM

Hey all,

I installed this last night on my fresh install of 3.0.6 and everything seemed to go ok and I think I got everything working. However when I try and alter the setting in the ACP they just revert back to "No".

Anyone else get this problem and know how to sort it?

WiseOwl 01-24-2005 11:45 AM

If anyone has any information pertaining to my problem please let me know, I would like to install this modification. I have made all file edits and am ready to upload the php files, but before I do I need to get this problem resolved with the install process of this modification...


When attempting to add database modifications after inserting phrases I get this error... whats wrong ?


Quote:

Database error in vBulletin 3.0.5:

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: Monday 24th of January 2005 05:06:19 AM
Script: vbookie_install.php

WiseOwl 01-24-2005 12:23 PM

I noticed "joshskeety" had this problem back in August of 2004 he was looking for assistance 7 diferent times in this thread relating to the same mysql error 1067 that I'am currently having with the install.. also "teamgofast" had the same problem, I don't see a resolution for this anywhere in the 30 pages of this thread..

How do you change the default value of group_id and is that what needs to be changed? any help would be greatly appreciated as to I have already made all file edits and this is the only thing holding me back... thank you

WiseOwl 01-24-2005 02:46 PM

1067 is...

Error: 1067 is a invalid default value for '%s'

i tried to manually add the table "vbookie_items" but it returns #1067 - Invalid default value for 'item_id' so what's the deal ? can I get some support, or should I just give up on the vbookie ????


Ok I managed to add the table, but 3 of the items are incorrect, my synxtax wasnt right, for the following three items...

Quote:

item_id MEDIUMINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,

item_status ENUM('OPEN', 'CLOSED', 'SETTLED', 'ABANDONED') DEFAULT 'OPEN',

item_allow_multiple_bets ENUM('Y', 'N') DEFAULT 'Y',
can someone explain how to set those three correctly in php my admin manually, because the vbookie_install.php does not install the table correctly..

teamgofast 01-26-2005 11:22 PM

bump bump got alot of people who want there vbookie back :(

Quote:

Originally Posted by WiseOwl
1067 is...

Error: 1067 is a invalid default value for '%s'

i tried to manually add the table "vbookie_items" but it returns #1067 - Invalid default value for 'item_id' so what's the deal ? can I get some support, or should I just give up on the vbookie ????


Ok I managed to add the table, but 3 of the items are incorrect, my synxtax wasnt right, for the following three items...



can someone explain how to set those three correctly in php my admin manually, because the vbookie_install.php does not install the table correctly..


WhiteOx2 01-30-2005 06:43 PM

Is there a way to stop the editing of events after they have closed?
Because the person hosting the event can change the odds to there favor payout and then change them back again. :(

I have an honest thief on my board. :D

Spikeh 01-30-2005 07:09 PM

WhiteOx

Your hack works, how did you sort out the settings not saving and reverting back to No in the ACP?

Or anyone else to answer this?

Thanks.

WhiteOx2 01-30-2005 09:33 PM

Spikeh the hack works fine, I've had it installed on 3.0.3 - 3.0.6
I'm not sure what you mean by your above question.

Also I fixed my above question (kinda) by copying and pasting a bit of code in vbookie.php file. :)

Spikeh 01-31-2005 09:20 AM

Hey,

Whenever I alter the settings in the ACP and click Save they revert back to No.

EA Junkie 02-02-2005 05:14 AM

Upgraded vBulletin to 3.0.5 and vBookie no longer works. I've gone back and modified all the code, but continue to get a white screen when clicking on vBookie tab. I run an online sports games site and this hurts our fun...

Help Please!!!

skinny 02-02-2005 04:59 PM

Quote:

Originally Posted by EA Junkie
Upgraded vBulletin to 3.0.5 and vBookie no longer works. I've gone back and modified all the code, but continue to get a white screen when clicking on vBookie tab. I run an online sports games site and this hurts our fun...

Help Please!!!

It has been working fine on my 3.0.6 and did so on 3.0.5. If you are getting a blank screen you've obviously not installed it correctly. Do you have any other hacks installed?

I would suggest uploading the files again, checking the templates once over because there is something not quite right there. You DB should still be intact so you wont lose any data.

docvader 02-02-2005 05:13 PM

With some hacks, the templates get "lost" during upgrade, leading you to the white screen of death. Upload the install files, and run the install so that it writes the templates and phrases. That should do it. I had a similar problem.

teamgofast 02-03-2005 12:30 AM

Quote:

Originally Posted by docvader
With some hacks, the templates get "lost" during upgrade, leading you to the white screen of death. Upload the install files, and run the install so that it writes the templates and phrases. That should do it. I had a similar problem.

the installer is the problem, it stops at the database tables. I REALLY WANT MY VBOOKIE BACK! lol :ermm:

WhiteOx2 02-03-2005 07:36 AM

If vBookie is not working after upgrading run the installer again but only re-install the templates, nothing else, everything else should still be in your database. I have had it running since the release of vb 3.0.3 and it's worked every time.

teamgofast 02-04-2005 11:58 PM

Quote:

Originally Posted by WhiteOx2
If vBookie is not working after upgrading run the installer again but only re-install the templates, nothing else, everything else should still be in your database. I have had it running since the release of vb 3.0.3 and it's worked every time.

problem i had was i reverted templates by accident so i had to redo everything. so after it failed to reload i emptied the data base and tried a fresh install. it didnt work so now i want it back someone fix the installer!!!!!!! ill pay!!

carolmyt 02-05-2005 06:12 PM

I don't have a previous version installed. Just to be totally sure, other people have fresh installed the posted version to 3.0.6 with no problems?

nighteyes 02-11-2005 09:48 AM

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.

carolmyt 02-13-2005 06:11 PM

Whoa, huh? How do you do that?

DavidatMPA 02-22-2005 03:04 AM

Seems to be good, only i can't figure out how to start events, or anything to that effect:
http://www.forums.mpanetwork.com/vbookie.php

I've got it enabled in the member group option.....but still no settings there to allow me to start a new betting thing or anything! confused!

RMS-Chef 02-22-2005 03:45 AM

Events are created by creating a new thread in an enabled forum.
When creating a new thread, there will be a tick box to make the thread a vBookie Event. If you check that box and submit, it will bring you to the event setup.

Good luck!

RMS-Chef 02-22-2005 03:50 AM

Quote:

Originally Posted by carolmyt
I don't have a previous version installed. Just to be totally sure, other people have fresh installed the posted version to 3.0.6 with no problems?

I have tested an install with 3.0.6 and I cannot recall any issues with the installer. The only issues I had was with file edits. The "FIND" code was a bit different in most of the steps but you can still figure out where stuff goes by finding something close to what it tells you to look for.

Lizard King 02-22-2005 06:20 AM

I have it working with 3.0.7

BigIke 02-23-2005 09:01 AM

I'm running into trouble when I try updating the admin usergroup settings. I get this error:
Quote:

Database error in vBulletin 3.0.5:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Administrators',
description = '',
usertitle = 'Administrator',
opentag = '',
closetag = '',
passwordexpires = '180',
passwordhistory = '360',
attachlimit = '0',
canpostvbookieevent = '1',
caneditothersvbookieevents = '1',
canbet = '1',
avatarmaxwidth = '150',
avatarmaxheight = '150',
avatarmaxsize = '200000000',
profilepicmaxwidth = '100',
profilepicmaxheight = '100',
profilepicmaxsize = '65535',
pmquota = '50',
pmsendmax = '5',
uttstore_discount = '0',
forumpermissions = '393215',
pmpermissions = '3',
calendarpermissions = '31',
wolpermissions = '31',
adminpermissions = '3',
genericpermissions = '4194239',
genericoptions = '31'
WHERE usergroupid=6
mysql error: Unknown column 'canpostvbookieevent' in 'field list'

mysql error number: 1054

Date: Wednesday 23rd of February 2005 09:58:39 AM
Script: http://s116946478.onlinehome.us/vb/a.../usergroup.php
Referer: http://s116946478.onlinehome.us/vb/a...&usergroupid=6
Username: BigVike
IP Address: xx.xxx.xxx.xxx
I read every post in this topic and saw that one person had a similar problem but he fixed it himself :( Oh, btw, I am running version 3.0.5. Thanks for any and all help.

BigIke 02-23-2005 02:14 PM

anyone have any clues? any help would be appreciated

BigIke 02-23-2005 10:46 PM

sorry for triple posting but this thread keeps getting buried and people keep passing over it...

dcarr 02-23-2005 11:28 PM

ok I check my boards and here's the deal. I don't have and have never had those tables in my usergroup database..and have been using bookie for some time now...However, according to the install files..those names belong in the init.php..and that's where I found them. I think you left out some coding..double check and make sure your init.php file is correct. That should fix your problem.

majgik 02-24-2005 12:07 AM

sounds like a great hack im going to install it tommorow

DS MrSinister 02-26-2005 07:47 AM

Quote:

Originally Posted by teamgofast
anyone help me with this?

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

i had a template issue and tried to reinstall everything but get this error?


I am getting the same error. can anyone help.

How do i fix this problem..?

Razz 02-26-2005 09:20 AM

Quote:

Originally Posted by bringindaruckus
I'm running into trouble when I try updating the admin usergroup settings. I get this error:

I read every post in this topic and saw that one person had a similar problem but he fixed it himself :( Oh, btw, I am running version 3.0.5. Thanks for any and all help.

Check to make sure the edits made to init.php have been done correctly.

Razz 02-26-2005 09:27 AM

Quote:

Originally Posted by DS MrSinister
I am getting the same error. can anyone help.

How do i fix this problem..?

Change the query to:

[SQL]
CREATE TABLE vbookie_groups (
group_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_title VARCHAR(255) NOT NULL
) TYPE=MyISAM[/SQL]

DS MrSinister 02-26-2005 05:30 PM

THank you soo much for your help razz

:banana:


All times are GMT. The time now is 03:31 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.02986 seconds
  • Memory Usage 1,847KB
  • 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
  • (4)bbcode_code_printable
  • (13)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