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)

dartho 03-28-2011 10:57 AM

default value should be easy, I'll have a quick look at decimal odds...

[edit:]
To make the "To" odds default to 1, edit the vbookie_event_outcome template, search for:

Code:

value="{vb:raw odds2.question}"
and replace with
Code:

<vb:if condition="$odds2[question]==''">value="1"<vb:else />value="{vb:raw odds2.question}"</vb:if>
Re: decimal odds - too hard, or to be honest after a quick glance at the code there appears to be no "quick fix" and I can't be bothered putting the time in to change it :)

mentalageof2 03-29-2011 01:57 AM

@dartho

Hi again, back on page 40 of this thread we had a small discussion about vbookies covering their own books and it turned out that you run it this way on your board. You offered to provide some instructions but discovered some issues running it this way on 4.1.

Were you able to resolve those issues? I'd still greatly appreciate those instructions :)

Cheers!

combs 04-09-2011 08:29 PM

I just installed this and it won't add on my postbit to any skin other than default.

Kind of silly how it is setup having to go in the plugin, is there any other way to do this or make it show up?

dartho 04-09-2011 10:21 PM

@mentalageof2 - Sorry, I haven't yet... Things have been pretty busy for me

@sticky - it can (at least could under 3.8) kinda be done, but punters could easily bypass by placing multiple bets. Refer to my note to mentalageof2 above

@EasyEazy - no, sorry ...

@combs - sounds like those custom styles have removed vbulletin template hooks - kind of a silly thing to do

DAMINK 04-10-2011 06:51 AM

I get a blank page?
First time i installed it was today.
Sounds like a bit of fun if i can get it working that is.

dartho 04-10-2011 08:48 AM

Looks like you got it worked out?

DAMINK 04-10-2011 09:12 AM

Quote:

Originally Posted by dartho (Post 2182892)
Looks like you got it worked out?

Yep sure did mate. Not sure what happened actually.
I refreshed the page and it was fine.
Thankyou for the quick reply.

combs 04-10-2011 03:20 PM

Quote:

Originally Posted by dartho (Post 2182791)
@combs - sounds like those custom styles have removed vbulletin template hooks - kind of a silly thing to do

I am using this: https://vborg.vbsupport.ru/showthread.php?t=236953

How would I add the template hooks back to it? :( , I really like using that setup, just need to add the vcash to it!

dartho 04-10-2011 09:15 PM

Actually - the hooks are there on that page you linked to. Not sure why you are having issues (could be teh apostrophes around 'posts' in the line before the hook), however you can do it manually. Edit your postbit legacy, search for
Code:

<div class="eti_postbit">
{vb:rawphrase 'posts'} : {vb:raw post.posts}
    </div>

add
Code:

<div class="eti_postbit">
{vb:rawphrase vbookie_cash} : {vb:raw post.vbookie_cash}
    </div>

immediately below it. You should also disable the vBookie: Add Cash to Postbit plugin if you've manually added the template edit.

combs 04-11-2011 03:50 PM

Thanks man, definitely worked. Just had to add the word "VCash" in front of the code like this

PHP Code:

<div class="eti_postbit"
Vcash: {vb:rawphrase vbookie_cash} : {vb:raw post.vbookie_cash
    </
div

Cool stuff.


All times are GMT. The time now is 01:05 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.02249 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)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