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)

Bozza 06-04-2014 10:21 PM

Quote:

Originally Posted by Bozza (Post 2500511)
Just re-installed this.

Does (or did) anyone have issue with vCash being displayed in postbit legacy? it duplicates for every post on the page of the thread. So, post 1 has vCash shown once, the tenth post on the page has the same thing 10 times and the 20th post on the page has it shown 20 times!

I've reverted my postbit templates to standard, but it's still happening, so I've had to turn off postbit display now, but I'd rather have it on if I can.

Anyone?

What it's doing is showing the vCash for the person who has made the post plus that for everyone else who has made a post on the same thread earlier than that person.

Example postbit from the 20th post on a thread:

Registered User
Join Date Oct 2013
Posts 1,114
vCash 500
vCash 750
vCash 3400
vCash 500
vCash 3400
vCash 1000
vCash 0
vCash 0
vCash 0
vCash 500
vCash 3400
vCash 0
vCash 3400
vCash 0
vCash 250
vCash 0
vCash 0
vCash 3400
vCash 995
vCash 3400

dartho 06-09-2014 03:45 AM

What version of vBulletin?

Could you also confirm which hook the "vBookie: Add Cash to Postbit" plugin is on and also the code in that plugin.

should be:

Code:

if (($this->registry->options['vbookieactive']) && ($this->registry->options['vbookiecash']=="vCash") && ($this->registry->options['vbookiecashon']))
{
$template_hook[postbit_userinfo_right_after_posts] .= "<dt>".$vbphrase['vbookie_vcash']."</dt> <dd>".$post['vbookie_cash']."</dd>";
}


Bozza 06-10-2014 08:37 PM

Quote:

Originally Posted by dartho (Post 2501206)
What version of vBulletin?

Could you also confirm which hook the "vBookie: Add Cash to Postbit" plugin is on and also the code in that plugin.

should be:

Code:

if (($this->registry->options['vbookieactive']) && ($this->registry->options['vbookiecash']=="vCash") && ($this->registry->options['vbookiecashon']))
{
$template_hook[postbit_userinfo_right_after_posts] .= "<dt>".$vbphrase['vbookie_vcash']."</dt> <dd>".$post['vbookie_cash']."</dd>";
}


vB 4.2.0.

I can't find 'vbookieactive' or 'vbookiecash' if I do a search across all my templates, including postbit_legacy.

dartho 06-14-2014 11:31 AM

Plugins, not templates

Prentice 07-26-2014 10:40 AM

When performing a few different functions with vBookie, I'm getting the following:

Code:

Database error in vBulletin 4.2.2:

Invalid SQL:
SELECT
                SUM(bet_amount_won) AS sumbets
                FROM vb_vbookie_bets_placed
                WHERE bet_settled='Y' AND userid=372
                AND dateline > 315532800
                GROUP BY userid;

MySQL Error  : Unknown column 'dateline' in 'where clause'
Error Number  : 1054
Request Date  : Saturday, July 26th 2014 @ 12:39:02 PM
Error Date    : Saturday, July 26th 2014 @ 12:39:04 PM
Script        : http://www.wfcforums.com/vbookie.php
Referrer      : http://www.wfcforums.com/showthread.php?52101-Test-2&p=982331
IP Address    : **.***.**.***
Username      : SM#16
Classname    : vB_Database
MySQL Version : 5.0.95

How can I fix this?

RichieBoy67 08-12-2014 08:54 PM

Hey peops, been years since I have used or set this up.

Is there any way I can set a cap per bet so if i have 10 things listed in a bet I can limit them to a certain amount? I don't want people to be able to bet all their money on one thing.

Thanks,
Rich

RichieBoy67 09-07-2014 03:04 PM

We are using this for a contest where the winner who has the most money at the end of the event will win first place.

The problem is many betters are betting all their vcash on one outcome.

I really need to limit the amount people can bet per outcome so they bet on more outcomes thus limiting the risk of ties.

Thanks

EasyEazy 09-07-2014 06:30 PM

Quote:

Originally Posted by RichieBoy67 (Post 2514062)
We are using this for a contest where the winner who has the most money at the end of the event will win first place.

The problem is many betters are betting all their vcash on one outcome.

I really need to limit the amount people can bet per outcome so they bet on more outcomes thus limiting the risk of ties.

Thanks

Maybe try this

https://vborg.vbsupport.ru/showpost....&postcount=734

Not sure if its what your looking for mate.

RichieBoy67 09-07-2014 07:02 PM

Quote:

Originally Posted by EasyEazy (Post 2514094)
Maybe try this

https://vborg.vbsupport.ru/showpost....&postcount=734

Not sure if its what your looking for mate.

Thanks, kind of you to assist.

That is really close but I believe it alters the maximum bet. What I want to do is to just limit the max bet per outcome.

In other words if you have 5 race car drivers for example you will stop people from betting a large amount on each one by allowing them to only bet a certain amount on each one or the ones they want to bet on. They can still bet a larfge amount but must choose multiple race car drivers.

dartho 09-07-2014 10:15 PM

I think that post EasyEazy linked to is as close as you'll get to what you're after without finding someone to do some programming for you (which I can't do)


All times are GMT. The time now is 05:00 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.02759 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
  • (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