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)

stuc 02-08-2007 07:27 PM

Quote:

Originally Posted by AdamB (Post 1175767)
Hello,

When I go to enable usergroups for each vbookie permission and hit save, and go back it's always disabled. How do I fix this?

I've got the same problem, anybody got any ideas?

Bacon Butty 02-09-2007 12:24 PM

Quote:

Originally Posted by AdamB (Post 1175767)
Hello,

When I go to enable usergroups for each vbookie permission and hit save, and go back it's always disabled. How do I fix this?

I have the same problem.

stuc 02-09-2007 12:33 PM

Quote:

Originally Posted by stuc (Post 1177834)
I've got the same problem, anybody got any ideas?

Mine is now working :confused:

bobster65 02-09-2007 10:26 PM

Quote:

Originally Posted by AdamB (Post 1175767)
Hello,

When I go to enable usergroups for each vbookie permission and hit save, and go back it's always disabled. How do I fix this?

You need to rebuid your bit fields. This should be added to the instructions, cause its the most asked question in this thread.

Kleptomaniac 02-09-2007 11:09 PM

Thanks for the mod. Is there a way to disable betting on an event for the user who posts the vbookie event only?

gizmo01 02-10-2007 01:13 AM

It would be really handy if the main vbookie display showed times as well as dates under the Added, Open Until and Payouts After.

Actually, even better, if it's today's date, it should only show the time, otherwise it should show the date.

Anybody know which template I'd need to play with to get this done? I'd be willing to give it a try myself and post my findings here.


UPDATE: Ok, I'm 99% sure I'd need to edit the vbookie.php file to accomplish this and this is where I believe it needs to be done:

Code:

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

That starts at line 355 in the file. I think that my next step would be an IF statement to evalutate $today and compare it to $item['openuntil'], etc...

Any help here?


2ND Update: Ok, I was on a mission. This is what I came up with. I really was only interested in showing the Open Until time on open items.

It may not be elegant, but I replaced line 356 which was this:

Code:

$item['openuntil'] = vbdate($vbulletin->options['dateformat'],$item['item_open_until']);
with this:

Code:

                if ($item['item_open_until'] < TIMENOW)
                {
                        $item['openuntil'] = vbdate($vbulletin->options['dateformat'],$item['item_open_until']);
                }
                else
                {
                        $item['openuntil'] = vbdate($vbulletin->options['dateformat'],$item['item_open_until']) . " @ " . vbdate($vbulletin->options['timeformat'],$item['item_open_until']);
                }


Well, it does the job that I wanted, but it kinda messes up the spacing a bit, which I can live with. Also, it doesn't bother to show the time unless the item is still open.

I hope someone else can find this to be a useful modification. Any and all suggestions are more than welcome.

giz

Bacon Butty 02-11-2007 01:54 PM

Quote:

Originally Posted by bobster65 (Post 1178748)
You need to rebuid your bit fields. This should be added to the instructions, cause its the most asked question in this thread.

How do I do that? :confused:

gizmo01 02-11-2007 05:17 PM

Quote:

Originally Posted by Bacon Butty (Post 1179903)
How do I do that? :confused:

http://yoursite/yourforumfolder/admi...buildbitfields

Replace yoursite and yourforumfolder obviously.

iamme1 02-15-2007 07:10 PM

is there a hack or plugin that will automatically move settled bet threads into a separate forum (like an "archived bets forum")?

bandare 02-15-2007 07:40 PM

Can anyone help... I really need a command to be able to set every users vcash back to 500 or a number.... anyone??????????????

seems stupid that wasnt included....


All times are GMT. The time now is 08:13 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.02627 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (6)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