Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
vBookie for vBulletin 3.5 Details »»
vBookie for vBulletin 3.5
Version: 1.0.7, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 08-11-2005 Last Update: 02-17-2006 Installs: 633
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

vBookie

Introduction

This is a Port of the original vBookie Hack created by tdjrico; full credits to him for the idea and the kind permission to port his work

A t t e n t i o n
This Hack is unsopported and incompatible with vBulletin 3.6+
You are hereby advised to not use it.
Please do not ask me about support and/or updates - there will be none.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #1132  
Old 09-17-2006, 12:41 PM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way to get this to work with vbBux?
Reply With Quote
  #1133  
Old 09-18-2006, 09:44 AM
Devadam Devadam is offline
 
Join Date: Nov 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
    
    } 
Reply With Quote
  #1134  
Old 09-18-2006, 05:09 PM
phpdevrus phpdevrus is offline
 
Join Date: Mar 2006
Location: San Francisco, CA
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. ;-)
Reply With Quote
  #1135  
Old 09-18-2006, 05:10 PM
phpdevrus phpdevrus is offline
 
Join Date: Mar 2006
Location: San Francisco, CA
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #1136  
Old 09-18-2006, 05:33 PM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #1137  
Old 09-18-2006, 07:13 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
  #1138  
Old 09-18-2006, 07:34 PM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #1139  
Old 09-18-2006, 07:55 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Neal, yeah i did that m8, thats when things went boobs up
Reply With Quote
  #1140  
Old 09-19-2006, 12:30 AM
bandare bandare is offline
 
Join Date: Nov 2004
Location: Derby, UK
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you reset everyones total back to 500 or any figure at the start of each month?
Reply With Quote
  #1141  
Old 09-19-2006, 07:03 PM
thebands thebands is offline
 
Join Date: Jul 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:17 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06824 seconds
  • Memory Usage 2,321KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete