vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBookie for vBulletin 3.5 (https://vborg.vbsupport.ru/showthread.php?t=94128)

wilburshere 08-13-2006 11:22 AM

got it working on 3.6 only took all afternoon to work it out

thank christ thats over my members live for it

henners 08-13-2006 04:57 PM

Cheers for the fix for 3.6....working great :D

daticus 08-13-2006 07:00 PM

I know this sounds really easy but how do I set it so people can bet? I'm the admin and i can't even place bets (even though I can edit them).

I set "Can place Bets" to "Yes" in the Forum Permission and "Usergroup Permission;" yet I still can't place bets as the admin or a regular user.

Baudman 08-13-2006 10:28 PM

Quote:

Originally Posted by daticus
I know this sounds really easy but how do I set it so people can bet? I'm the admin and i can't even place bets (even though I can edit them).

I set "Can place Bets" to "Yes" in the Forum Permission and "Usergroup Permission;" yet I still can't place bets as the admin or a regular user.

I'm having the same problem after changing the code to make it work for 3.6.0

Oddjob 08-14-2006 01:22 AM

Cant get this working with vbbux because it only allows "ebux" (the former name of vbbux)..........

daticus 08-14-2006 01:40 AM

Quote:

Originally Posted by Oddjob
Cant get this working with vbbux because it only allows "ebux" (the former name of vbbux)..........


go to the functions_vbookie.php file, open it and edit all the SQL queries that say

PHP Code:

                case 'ebux':
            
$q "SELECT username, ebux AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 5";    
            break; 


replace the "ebux" part with "vbbux" like this:

PHP Code:

                case 'ebux':
            
$q "SELECT username, vbbux AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 5";    
            break; 

There's like 4 to 6 entries like that, don't replace "case 'ebux'" though, leave that alone.


But, i can't get it to work 100%, since it won't let anyone place a bet, even after you set your usergroup to be able to bet.

Also, don't expect much help around here, people only want $$$ for support (its a damn shame). I presonally think jelsoft should ban anyone wanting payment for support.

Oddjob 08-14-2006 01:41 AM

Quote:

Originally Posted by daticus
go to the functions_vbookie.php file, open it and edit all the SQL queries that say

PHP Code:

                case 'ebux':
            
$q "SELECT username, ebux AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 5";    
            break; 


replace the "ebux" part with "vbbux" like this:

PHP Code:

                case 'ebux':
            
$q "SELECT username, vbbux AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 5";    
            break; 

There's like 4 to 6 entries like that, don't replace "case 'ebux'" though, leave that alone.

Cool, thanks for the quick response. I try it tommorrow, too tired for that right now.

movielist 08-15-2006 08:30 AM

FYI:

After making the vBookie & 3.6 by Paul M changes above, things seem to be working.
New vbookie event was placed and is accepting bets (from vbBux).
Haven't tried cashing out yet though.

dxguru 08-15-2006 08:47 AM

Do we also need to change $vbulletin->userinfo['ebux']; to $vbulletin->userinfo['vbbux']; (in several places) ?

dxguru 08-15-2006 09:06 AM

Even better ... the code should be changed to userinfo[$vbulletin->options['vbbux_pointsfield']] instead of hardcoding the word 'vbbux'


All times are GMT. The time now is 04:05 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.02378 seconds
  • Memory Usage 1,753KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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