vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - vBookie for vBulletin 4 (https://vborg.vbsupport.ru/showthread.php?t=233473)

literatestylish 02-23-2010 06:54 PM

Does the person who starts the thread have to make the payouts?

Wseries 02-23-2010 07:30 PM

Quote:

Originally Posted by literatestylish (Post 1989847)
Does the person who starts the thread have to make the payouts?

No, anyone in the usergroup which has permissions to do so can settle the event. I would recommend keeping that group to a smallest number possible. vBookie does not have an undo function so if you make an error when settling an event you are basically screwed.

dartho 02-23-2010 08:11 PM

1 Attachment(s)
Quote:

Originally Posted by Wseries (Post 1989828)
Having an eye for detail I've just noticed the required template edit for the new vBookie doesn't quite match the new styling of vBulletin 4. So with much respect to the author of this mod I've updated it to match. To see the differences view the before and after pics I've attached to this post. Be aware I changed the 'yes_post_a_vbookieevent_thread' phrase on my forum in the after shot.

Here is the code:

Code:

                <vb:if condition="$show['vbookieevent']">
                <fieldset class="blockrow">
                        <legend>{vb:rawphrase vbookie}</legend>
                                <dl class="group dep_group">
                                        <dt>
                                                <label for="cb_postvbookieevent">
                                                        {vb:rawphrase yes_post_a_vbookieevent_thread}
                                                </label>
                                        </dt>
                                        <dd class="rightcol">
                                                <label for="cb_postvbookieevent">
                                        <input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" {vb:raw checked.postvbookieevent} class="dep_ctrl" />
                                        </dd>
                                </dl>
                </fieldset>
                </vb:if>

Dartho I hope you don't mind?

I think you will find that is because you are not using the default style and your code changes will only be useful to people using teh same style you are :)

Here's a default screen shot:

https://vborg.vbsupport.ru/attachmen...1&d=1266963030

Wseries 02-23-2010 08:53 PM

Quote:

Originally Posted by dartho (Post 1989904)
I think you will find that is because you are not using the default style and your code changes will only be useful to people using teh same style you are :)

But I am using the default style dartho. Well, at least I think I am! I only have one style that I've made all my customisations to and it's called 'vB4 Default Style'. So now your screenshot has got me wondering what's going on. Perhaps it had something to do with my recent upgrade to vB4?

dartho 02-23-2010 09:18 PM

Although I just this minute upgraded from 4.0.1 to 4.0.2 and you are correct - they've changed the style around in 4.0.2.

Thanks!

Sounds like you've edited your default style, which is OK - but it means you can no longer view what it looks like out of the box - which often is useful as a sanity check.

Just add a new style with no parent and call it "vBulletin Original" and it will be the vbulletin default style unmodified.

Wseries 02-25-2010 06:07 PM

You're welcome dartho. Just noticed something else I think needs to be looked at though. In previous versions of vBookie, on the showthread page, there was a notice above an events outcomes and odds that went along the line of "{1}You may bet on this event. You have x cash and have placed x bet(s) on this Event. {2}You may bet more than once on this Event." Obviously {1} and {2} are updated to reflect the correct permissions.

Anyway, any chance you could include this in a future update please? As it stands a member doesn't know how much vCash they have to bet with when viewing an event.

dartho 02-25-2010 07:47 PM

see https://vborg.vbsupport.ru/showthrea...01#post1965601 for adding vcash balance

[ed: actually, I have implemented the above from wseries' post- will add in next release]

iamme1 02-26-2010 08:40 PM

by chance does anyone know if this will work w/ vbulletin 3.6.x ?

mandingo 02-28-2010 03:07 PM

Not sure if this has been covered. went to edit event to add new options to an existing bookie and it won't let me save it.
Quote:

This thread already has a vBookie event attached to it

dartho 02-28-2010 03:28 PM

Sorry, that is a wee bug which is fixed in teh next version when I get around to releasing. To fix manually in the mean time:

Edit vBookie.php and at line 1763 add:

$templater->register('item_id', $item_id);

which should be just after
PHP Code:

    // Main page content
$templater vB_Template::create('vbookie_new_event'); 



All times are GMT. The time now is 12:14 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.02526 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_code_printable
  • (1)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
  • (3)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