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)

tjdrico 06-09-2004 07:02 AM

If you want to hack that in for the time being anyway, open showthread.php and...

Find:

PHP Code:

    $eventinfo['openuntil_date'] = vbdate($vboptions['dateformat'],$eventinfo['item_open_until'],true);
    
$eventinfo['payafter_date'] = vbdate($vboptions['dateformat'],$eventinfo['item_pay_after'],true);
    
$eventinfo['openuntil_time'] = vbdate($vboptions['timeformat'],$eventinfo['item_open_until'],true);
    
$eventinfo['payafter_time'] = vbdate($vboptions['timeformat'],$eventinfo['item_pay_after'],true); 

and replace it with:

PHP Code:

    $eventinfo['openuntil_date'] = vbdate($vboptions['dateformat'],$eventinfo['item_open_until']);
    
$eventinfo['payafter_date'] = vbdate($vboptions['dateformat'],$eventinfo['item_pay_after']);
    
$eventinfo['openuntil_time'] = vbdate($vboptions['timeformat'],$eventinfo['item_open_until']);
    
$eventinfo['payafter_time'] = vbdate($vboptions['timeformat'],$eventinfo['item_pay_after']); 

Next, open vbookie.php

Find:

PHP Code:

        exec_switch_bg();
        
$item['created'] = vbdate($vboptions['dateformat'],$item['item_created'],true);
        
$item['openuntil'] = vbdate($vboptions['dateformat'],$item['item_open_until'],true);
        
$item['payafter'] = vbdate($vboptions['dateformat'],$item['item_pay_after'],true);
        eval(
'$betitembits .= "' fetch_template('vbookie_main_items_bit') . '";'); 

and replace it with:

PHP Code:

        exec_switch_bg();
        
$item['created'] = vbdate($vboptions['dateformat'],$item['item_created']);
        
$item['openuntil'] = vbdate($vboptions['dateformat'],$item['item_open_until']);
        
$item['payafter'] = vbdate($vboptions['dateformat'],$item['item_pay_after']);
        eval(
'$betitembits .= "' fetch_template('vbookie_main_items_bit') . '";'); 

Then find:

PHP Code:

    $eventinfo['openuntil_date'] = vbdate($vboptions['dateformat'],$eventinfo['item_open_until'],true);
    
$eventinfo['payafter_date'] = vbdate($vboptions['dateformat'],$eventinfo['item_pay_after'],true);
    
$eventinfo['openuntil_time'] = vbdate($vboptions['timeformat'],$eventinfo['item_open_until'],true);
    
$eventinfo['payafter_time'] = vbdate($vboptions['timeformat'],$eventinfo['item_pay_after'],true); 

and replace that with:

PHP Code:

    $eventinfo['openuntil_date'] = vbdate($vboptions['dateformat'],$eventinfo['item_open_until']);
    
$eventinfo['payafter_date'] = vbdate($vboptions['dateformat'],$eventinfo['item_pay_after']);
    
$eventinfo['openuntil_time'] = vbdate($vboptions['timeformat'],$eventinfo['item_open_until']);
    
$eventinfo['payafter_time'] = vbdate($vboptions['timeformat'],$eventinfo['item_pay_after']); 

That should sort the "1 Minute Ago" problem. These edits will be made to the install set from 1.0.4 onwards.

kall 06-09-2004 07:03 AM

Quote:

Originally Posted by tjdrico
Aye, I suppose... but that's not as pretty as saying "This poll will close in 3 minutes' time", and if you use "Detailed" so you can see "3 Minutes Ago" on post times, I don't see why you wouldn't want that same detail.

How about making that optional? ;)

tjdrico 06-09-2004 07:10 AM

Quote:

Originally Posted by kall
How about making that optional? ;)

Well, it'll be optional to install the update. :D

Battle_Ring 06-09-2004 02:57 PM

COol Thanks for all your help

Pro 06-09-2004 07:31 PM

Quote:

Parsing functions.php Time before: 1086813007.8077 Time after: 1086813007.829 Time taken: 0.021291971206665
--------------------------------------------------------------------------------
Processing sessions.php Time before: 1086813007.8296
i keep getting this in my includes/init.php file... what am i doing wrong?

Pro 06-09-2004 07:36 PM

Quote:

FIND
PHP Code:
'stylecache'
), $specialtemplates);

REPLACE WITH
PHP Code:
'stylecache',
// +++ vBookie
'vbookiesettings'
// --- vBookie
), $specialtemplates);
im not sure how to replace this since this area looks like the following:
Quote:

'stylecache',
'utt_store_act',
'arcadesettings'
), $specialtemplates);
when i try to edit this area i get the errors i listed above...

Please help!

tjdrico 06-09-2004 07:44 PM

Change this:

PHP Code:

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

To this:

PHP Code:

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

It's important that you add the new comma after 'arcadesettings'.

Pro 06-09-2004 08:53 PM

ok cool... that works! thanks! i still had some more errors - i just had to reverse them... so when i get more (if) i'll be back lol

thanks alot man

tjdrico 06-09-2004 10:06 PM

No probem. Click install if you don't mind - that way I'll be able to alert you to any updates.

Pro 06-09-2004 10:51 PM

Quote:

Originally Posted by tjdrico
No probem. Click install if you don't mind - that way I'll be able to alert you to any updates.

done!

is there anymore info on how to use this? i got everything set up, yada yada... but im trying to figure out how to place bets, etc...


All times are GMT. The time now is 01:53 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.01815 seconds
  • Memory Usage 1,782KB
  • 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
  • (8)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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