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)

joshskeety 08-11-2004 11:50 AM

I get this error message when installing.. It gets to the "do database modifications" part and then I get..

Database error in vBulletin 3.0.1:

Invalid SQL:
CREATE TABLE vb3_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 solutions?

Josh

vajb 08-12-2004 12:42 AM

Quote:

Originally Posted by Kru
Ok I fixed my former problem anyway there is still another if I am trying to open vbookie.php for example like here: http://www.spiritual-connections.com...s/vbookie.php? I am just getting a blank screen. I checked the whole installation again and again but can't find the bug.

Any help is mostly welcome.

Same problem here, Just a blank page, followed the instrunctions to a max, still just blank, how did you solve it, since your page now works?

kall 08-12-2004 01:08 AM

Quote:

Originally Posted by vajb
Same problem here, Just a blank page, followed the instrunctions to a max, still just blank, how did you solve it, since your page now works?

If you followed the instructions perfectly, it would work. That's the way these things go.

Is there a possibility that you have more than one Style available on your forums?

And that the default one is not the one you are looking at?

Most automatic Template installs add the new templates to one style only, requiring the Installee to manually copy and paste the info into other templates.

Kru 08-12-2004 05:04 AM

The fact that nothing is being shown on vBookie.php might suggest that a required template isn't present in the database. The installer only add templates and phrases to the default style (he should if you have another style with the same id then it doesn't work for the default, too), and if you are using a style that's not based on the default you might find that the templates aren't picked up.

Try editing vbookie_install.php and changing "$styleid=$vboptions['styleid'];" (appears twice) to "$styleid=N;" where N is the styleid of your style.

(thanks to Rico for this hint)

vajb 08-12-2004 07:44 AM

Haven't touched templates yet, still using the No.1 one, basic default one.

Changing styleid to 1 doesn't make sense since its default.

All templates are added, same with phrases, databases are made etc... this is just ... :(

vajb 08-12-2004 11:20 AM

Went through the cfg/install, didn't find it.

Going to bring my laptop to work and do a clean install of vb3 and then throw vbookie in there.

If this is the case the installer should work perfectly, an untouched version of vb3 fresh from the factory? :)

joshskeety 08-12-2004 11:35 PM

I get this error message when installing.. It gets to the "do database modifications" part and then I get..

Database error in vBulletin 3.0.1:

Invalid SQL:
CREATE TABLE vb3_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 solutions?

Josh

Drunkacho 08-13-2004 07:55 PM

Hey, I installed vBookie and I get this message. How can I fix it. Thanks :)

------------------------------

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




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

EDIT: Fixed, I had to change line 20 to:

//set_time_limit(0);

slabuda 08-15-2004 10:00 PM

Installed Vbookie and now my permissions for vbarcade aren't working.

Cbookie installation asks me to change the following lines ..

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

What should i do here? Or does that even effect my permissions.

Thanks.

curly howard 08-16-2004 04:29 AM

Clicked Install. Great work.

curly howard 08-16-2004 09:36 AM

EDIT* I found the problem, thanks

turfy 08-16-2004 04:37 PM

It's possible to have real time odds that change with the bet of user.
Example if all user bet on only two chance, they ar little odd etc...

Perhaps a good idea to futur version ?

joshskeety 08-19-2004 05:22 PM

I have asked this 6 times now. I also see that other users are asking questions, but not receiving any help. I have waiting patiently for almost a month for some sort of answer, or even a response from the creator or ANYONE that may have seen this SQL error before.

I get this error message when installing.. It gets to the "do database modifications" part and then I get..

Database error in vBulletin 3.0.1:

Invalid SQL:
CREATE TABLE vb3_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 solutions?

Josh

skinny 08-20-2004 09:53 PM

Great add-on. All my members are loving it! Would it be possible to include an edit function when bets have been settled, because one of my members did it wrong, and we cant edit the results of the bets?

Also, is it possible to simply clear all the bets made, give everyone 500 vcash and start over again?

VodkaFish 08-23-2004 06:25 PM

I just added it to my largest site and it's an instant hit.

The feedback I've had so far:
- Add vCash to profile, not userbit (something I'm doing).
- More leaders lists then just the top 5 richest. Perhaps a page in itself just for leaders. Overall, last week, last month.
- Categorized leaders.

Suggestions from me:
- Have a "max bet" amount for an event. Here's why: say I want to encourage people playing and I say - new category starting over the next month: whoever gets the highest in the category at the end of the month wins a prize. Well - new members (and members who are unlikely) will be at a huge disadvantage for the prize if I let any amount be bet on these events. Therefore, if I were to say "100 max" or something like that, I can make it a much more even playing field for all involved. Outside events can still be whatever, but these "prize events" need more control over them.

Thanks for listening :)

Okiewan 08-25-2004 08:00 PM

searched, but can't find anything...
users needing charity aren't getting it (yes, it's on in options).
Any ideas?

N00BIE 08-28-2004 02:24 AM

Ok i'm trying to install this hack and everything has gone fine up to this point.
i've already installed uShop_&_uCash_095a and the problem i'm having is this part in the INIT.PHP file..
the hack says
FIND
Code:

'stylecache'
        ), $specialtemplates);

REPLACE WITH
Code:

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

but the ushop hack has already changed tis part into this
Code:

// ## <ucs>
                        'stylecache',
                        'utt_store_act'
// ## </ucs>

and if i try to include the other code like this.
Code:

// ## <ucs>
                        'stylecache',
                        'utt_store_act'
                        'vbookiesettings'
// ## </ucs>

i get this error
Code:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'

any help on this would be very grateful :)

SnowBot 08-28-2004 02:47 AM

You missed something out. Try this

PHP Code:

 // ## <ucs>
            
'stylecache',
            
'utt_store_act',
            
'vbookiesettings'
// ## </ucs> 

Im not sure but that should work, i have not got the shop hack installed.

N00BIE 08-28-2004 07:20 AM

thanx alot that did the trick =]

KevinSHOCK 08-29-2004 12:04 AM

ok i dont know if this has been covered cause this thread is huge, but i use ucash, and the vbookie works and all but its using its own money system and not the ucash like i selected it to use in the vbookie control panel, help is GREATLY appreciated.

y2krazy 08-29-2004 11:07 PM

/me clicks install!

KevinSHOCK 08-30-2004 10:25 PM

Quote:

Originally Posted by KevinSHOCK
ok i dont know if this has been covered cause this thread is huge, but i use ucash, and the vbookie works and all but its using its own money system and not the ucash like i selected it to use in the vbookie control panel, help is GREATLY appreciated.

i hate to be a bother, but i really need this fixed as the members want to use this hack. thanks again

Mombos 08-31-2004 09:56 PM

just installed 1.0.4 - seems to be working ok not really tested it alot yet seems good though,

although i have one problem though, in the adminCP there is no menu on the left for me to get into the settings for it, any idea what i might have done as i have checked the edited files and they all seem ok, any ideas?

thanks
Rob

apokphp 09-01-2004 01:39 AM

You didn't edit forums/admincp/index.php correctly, or not at all.

apokphp 09-01-2004 07:14 AM

Installed. Great hack. Works well on vb 3.0.3 (just took some time finding some of the code that had changed since the code has changed since 3.0.0).

However, it isn't sending pm's or emails to those who have placed bets, to notify them of the bet being settled.

The vbookie_email_betsettledbody template says:
Quote:

Hello $bbuserinfo[username],

Your bet on ... has been settled. You won:

Yours,
$vboptions[bbtitle] team

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscription information:

Tired of these email notifications? Turn them off in your vBookie settings.
But there are no vBookie settings for members that enable/disable email alerts. Wuttup?

apokphp 09-01-2004 09:33 AM

Also, how can I place betting limits? I think someone else asked about this previously, but I don't recall seeing a response. I'd like to be able to limit the amount of bets at times, for specific bets. Is this possible?

Mombos 09-01-2004 12:51 PM

Quote:

Originally Posted by apokphp
You didn't edit forums/admincp/index.php correctly, or not at all.

i have sorted the problem now

inside admincp/index.php

there is 2 lines which match this one
if (can_administer('canadminstyles'))

i added the construct nav commands at the wrong part of the doc.

all sorted now though

apokphp 09-01-2004 11:15 PM

Also, there seems to be an error when calculating "Total Amount Staked".

While for the individual outcomes, it calculates it fine...it is in the top summary of each event that it miscalculates. Instead of adding up all that has been staked...it doubles the actual total staked in each outcome.

If you click info, then add up for each outcome, the "Total Amount Staked" column...it should equal the amount in the summary, correct? Instead, the summary has this amount X2 for some reason.

kall 09-02-2004 08:59 PM

Quote:

Originally Posted by Mombos
i have sorted the problem now

inside admincp/index.php

there is 2 lines which match this one
if (can_administer('canadminstyles'))

i added the construct nav commands at the wrong part of the doc.

all sorted now though

You shouldn't have 2 instances of if (can_administer('canadminstyles'))...on a fresh vBs admincp/index.php that line is used to show the style settings to those admins with permission to administer styles.

One other point to note is that 3.0.3s includes/functions_showthread.php lacks the
PHP Code:

// ###################### Start getreputationimage ####################### 

So, instead, find
PHP Code:

require_once('./includes/functions_reputation.php'); 

and add the required bit under that.

KevinSHOCK 09-03-2004 11:59 PM

can someone please answer my problem i posted, the vbookie cant be used correctly until this is fixed

twoseven 09-04-2004 12:17 AM

Quote:

Originally Posted by KevinSHOCK
can someone please answer my problem i posted, the vbookie cant be used correctly until this is fixed

kevin i had that problem as well. there are 2 database entries for different points and ucash is pointed at one and vbookie is pointed at the other. i just copied one to the other and it was fixed

KevinSHOCK 09-04-2004 02:35 AM

Quote:

Originally Posted by twoseven
kevin i had that problem as well. there are 2 database entries for different points and ucash is pointed at one and vbookie is pointed at the other. i just copied one to the other and it was fixed

can you explain which ones if its not a problem? im really rusty at coding and working through the database, well i mean i havent forgotten but like yeah...im kinda lost :( can i fix this problem with running a query?

Taco John 09-07-2004 05:49 AM

I've got a pretty important question that I haven't seen addressed...

Does this software account for bets that go push?

RMS-Chef 09-07-2004 10:11 AM

Quote:

Originally Posted by Taco John
I've got a pretty important question that I haven't seen addressed...

Does this software account for bets that go push?

Event's can be "Abandoned" and all bets are returned to the users if that's what you mean.

Taco John 09-07-2004 02:58 PM

I don't want the whole event abandoned... I just want certain outcomes that "push" abandoned. A "push" is a common outcome on many wagers...

Ugh. This thing is going to explode in my face if I can't refund stakes on outcomes that push.

VodkaFish 09-07-2004 05:31 PM

Quote:

Originally Posted by Taco John
I don't want the whole event abandoned... I just want certain outcomes that "push" abandoned. A "push" is a common outcome on many wagers...

Ugh. This thing is going to explode in my face if I can't refund stakes on outcomes that push.

The only way to do something like that with the current system would be to separate any events that can be pushed into their own event, and then abandon it if they push.

Taco John 09-07-2004 05:55 PM

Ugh. I was afraid you would say that.

I don't mean to be negative, but this hack doesn't make sense without a feature that allows an outcome to be a push. I'm using this for a sports forum, and in sports there are often outcomes that go "push" while there is still action that nets wins and losses. This is very common in sports, especially NFL.

There really should be an option for an outcome to go "push" that doesn't wreck the action on all the other bets.

There's no way I can manage all these games if i'm having to have three seperate threads to bet one game...

To see how I am using this in an NFL format, please view this thread:
http://www.orangemane.com/BB/showthread.php?t=16833

It's all together, and consice. Everybody can see how each game is being bet.

"Push" is a standard in gambling. If this hack is going to be used in football forums, "push" outcomes are important to have without having to mess up the other action... and without having to have a dozen different threads to bet a single game. There's only one bet in standard football betting that doesn't go push...

Unfortunately, my users have got action placed already and the NFL season starts this week.

Taco John 09-07-2004 06:17 PM

Also, for reference, there are 16 games a week in the NFL, with three standard bets...

1. MoneyLine
2. Over/Under
3. Point Spread

To seperate those into three seperate threads per single game is the difference between managing 16 threads a week (opening and closing) and almost 50 threads each week. That's about a hundred threads each week for NFL forum admins to manage when you figure that you've got to close last week's results, and then you've got to open next week's action. That's a huge time investment.

I love the hack, but a "push" outcome is incredibly important.

VodkaFish 09-08-2004 12:01 AM

I'm sure you thought about this already - but for the meantime you can use half values for spreads and over/unders.

Taco John 09-08-2004 01:08 AM

Yeah, I thought about that for next week... But for this week, It's difficult to do that without causing a board riot since bets have already been placed.

Hopefully, for the future, a column next to the "pay out" column can be added for pushes.


All times are GMT. The time now is 08:06 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.01629 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
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (10)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