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)

Regs 06-10-2004 04:18 PM

Excellent stuff, thanks!

Quote:

Of course, you can do whatever you see fit, here. You might prefer to only allow vBookie events to be created in a specific forum, rather than in every forum. To do this, just set the permissions for specific forums as normal.
Could you clarify this a bit more? I want to set up a forum for only vbookie events but there are no settings in the adminCP for doing so? From the installation instructions I can see that there are no file edits to the admincp/forums.php file so I must be misreading the purpose or something...

Cheers,

~Regs.

tjdrico 06-10-2004 04:19 PM

Quote:

Originally Posted by immotive
i modified according to here

https://vborg.vbsupport.ru/showthrea...ror#post520745

events are recorded, but i still got the error.

Please check the contents of 'includes/functions_vbookie.php', in particular the vbookie_do_charity() function, and make sure that the first line of it says:

PHP Code:

global $DB_site$vboptions$vbookiesettings

If it does, then please report back, and tell me what the values of uttpoints_pointtable and uttpoints_pointsfield are in your uTT Store settings.

tjdrico 06-10-2004 04:23 PM

Quote:

Originally Posted by Regs
Could you clarify this a bit more? I want to set up a forum for only vbookie events but there are no settings in the adminCP for doing so? From the installation instructions I can see that there are no file edits to the admincp/forums.php file so I must be misreading the purpose or something...

Using the 'Usergroups' -> 'Forum Permissions' page, you can edit each user group, e.g. Registered Users, forum-specific permissions. You will get a warning that custom permissions must be enabled, but as long as you OK that, you can set up forum-specific permissions and restrict vBookie to that forum. You can make the same changes via 'Forums & Moderators' -> 'Forum Permissions' as well.

nydk 06-10-2004 04:52 PM

Quote:

Originally Posted by tjdrico
Well, actually, the "+0" should just convert it to a number, not strictly an integer. The problem with the ordering was that the uttpoints field is a VARCHAR, so "ORDER BY" uses dictionary ordering. In dictionary ordering "8.5" comes after "700", so the numbers come out wrong. The "+0" forces them to be viewed as numbers, so "8.5" comes before "700".

I don't know why it uses a char field rather than a decimal or int for a numeric amount, but it seems to work OK and the +0 on my SELECT should fix it if it's not present in your copy of the file.

But you can only bet values of integers also..

i set up an event and the user i was on had like $3.50... i could only bet 1, 2, or 3

is this how its supposed to be?

tjdrico 06-10-2004 05:35 PM

Quote:

Originally Posted by nydk
But you can only bet values of integers also..

i set up an event and the user i was on had like $3.50... i could only bet 1, 2, or 3

is this how its supposed to be?

Yes. It was designed to use its own vCash or integer points originally. uCash came later but it only made sense in the original version to bet with whole points. Everything's geared around integers, and most points systems are integer based.

LoOnEyToOnZ 06-11-2004 02:42 AM

Quote:

Originally Posted by tjdrico
Please check the contents of 'includes/functions_vbookie.php', in particular the vbookie_do_charity() function, and make sure that the first line of it says:

PHP Code:

global $DB_site$vboptions$vbookiesettings

If it does, then please report back, and tell me what the values of uttpoints_pointtable and uttpoints_pointsfield are in your uTT Store settings.

Hello tjdrico

I will help immotive answer some questions since he is too busy and cant check here too often.

Yes, the global $DB_site, $vboptions, $vbookiesettings; is there under the vbookie_do_charity() function .

May i know where can i find out the utt store settings ? There are too many instances of uttpoints_pointtable and uttpoints_pointsfield in 'includes/functions_vbookie.php' .

tjdrico 06-11-2004 06:27 AM

Quote:

Originally Posted by LoOnEyToOnZ
May i know where can i find out the utt store settings ?

In your AdminCP, under "uTT Store Hack", click on "uTT Point System Settings". The first two entries on that page are the pointstable and pointsfield settings.

For example, mine say 'user' and 'uttpoints'.

If they are correctly set, are you sure that your uTT Store hack is correctly installed? Is it working as expected in other instances?

immotive 06-11-2004 03:01 PM

Thanks for your hint, i made some mistake in my global.php

Quote:

Originally Posted by tjdrico
Please check the contents of 'includes/functions_vbookie.php', in particular the vbookie_do_charity() function, and make sure that the first line of it says:

PHP Code:

global $DB_site$vboptions$vbookiesettings

If it does, then please report back, and tell me what the values of uttpoints_pointtable and uttpoints_pointsfield are in your uTT Store settings.


LoOnEyToOnZ 06-12-2004 11:47 AM

Another question - Is the tax a compulsary amount to have ? Cause i had noticed that quite a few items, by default come with a tax amount. Is it okay if we get rid of all the taxes ?

Thanks

MrNase 06-12-2004 11:56 AM

you must be insane... how shall i translate that? dozens of templates, many phrases and some english text left in the file :(


All times are GMT. The time now is 10:14 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.01819 seconds
  • Memory Usage 1,756KB
  • 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
  • (3)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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