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)

Neal-UK 09-17-2006 12:41 PM

Any way to get this to work with vbBux?

Devadam 09-18-2006 09:44 AM

Quote:

Originally Posted by phpdevrus
Modify the phrase in admincp. Since the mod is fully phrases you will be able to find it there. Just do a search for richest people and it should come up. this will only change the text.

thanks friend

i solved the problem
functions_vbookie.php

find

"user ORDER BY cash DESC LIMIT 30";

PHP Code:

function vbookie_get_richest()
{
    global 
$vbulletin;

    switch (
$vbulletin->options['vbookiecash'])
    {
        case 
'vcash':
            
$q "SELECT username, vbookie_cash AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 30";    
            break;
        case 
'ucash':
            
$q "SELECT username, ucash AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 30";    
            break;
        case 
'ebux':
            
$q "SELECT username, ebux AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 30";    
            break;
        case 
'custom':
            (
$hook vBulletinHook::fetch_hook('vbookie_get_richest')) ? eval($hook) : false;
    
    } 


phpdevrus 09-18-2006 05:09 PM

Quote:

Originally Posted by Neal-UK
Any way to get this to work with vbBux?

this works with vbbux. select the custom / blank option for cash system. ;-)

phpdevrus 09-18-2006 05:10 PM

Quote:

Originally Posted by Devadam
thanks friend

i solved the problem
functions_vbookie.php

find

"user ORDER BY cash DESC LIMIT 30";

PHP Code:

function vbookie_get_richest()
{
    global 
$vbulletin;

    switch (
$vbulletin->options['vbookiecash'])
    {
        case 
'vcash':
            
$q "SELECT username, vbookie_cash AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 30";    
            break;
        case 
'ucash':
            
$q "SELECT username, ucash AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 30";    
            break;
        case 
'ebux':
            
$q "SELECT username, ebux AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 30";    
            break;
        case 
'custom':
            (
$hook vBulletinHook::fetch_hook('vbookie_get_richest')) ? eval($hook) : false;
    
    } 



:-) nice, simple change.

Neal-UK 09-18-2006 05:33 PM

Quote:

Originally Posted by phpdevrus
this works with vbbux. select the custom / blank option for cash system. ;-)

I get db erros when I view bookie statistics and what not, do I need to alter anything else by choosing the blank option?

bashy 09-18-2006 07:13 PM

Hi peeps

I have added the plugin code for 3.6 but now i get no permissions errors, I have checked in the usergroups and the permissions are correct, i just dont know whats wrong, oh and rebuilt the bitfields as well!!

Neal-UK 09-18-2006 07:34 PM

Mine is working now i've installed the plugin further up this thread. Moderators, can you add the attached fixes to the actual product, saves having to search or go through the entire threads.

Bashy, did you edit the plugin mentioned for 3.6 fix also?

bashy 09-18-2006 07:55 PM

Hi Neal, yeah i did that m8, thats when things went boobs up

bandare 09-19-2006 12:30 AM

How do you reset everyones total back to 500 or any figure at the start of each month?

thebands 09-19-2006 07:03 PM

Using it with vBulletin 3.6.1, works perfect.

My problem is changing the default vCash. I've searched and have not found the answer. I've changed the .xml install file code and re-imported it and new users still start off with 500 vCash. Is there an extra step I'm missing after I re-import (with overwrite settings set to "yes")?

Thanks in advance.


All times are GMT. The time now is 06:17 PM.

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.03986 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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