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)

mort2412 12-23-2013 02:46 AM

Quote:

Originally Posted by dartho (Post 2470108)
check the vbookie_main_items_bit template and change the bit which is like:
<a href="showthread.php?t={vb:raw item.threadid}">{vb:phrase thread}</a>
to
<a href="showthread.php?t={vb:raw item.threadid}">Place Bet</a>

Brilliant

Thanks dartho

Alan_SP 12-27-2013 03:50 PM

I have two questions:

Which version I should install, I have vB 4.1.12 (still not on vB4.2.x)?

And how vBookie stands with Google AdSense? I know they have policy against gambling. Can I use vBookie and still show their ads?

boggseric 01-23-2014 03:09 AM

Quote:

Originally Posted by dartho (Post 2458131)
I had a look at this.

Firstly - please note - I am not a database guy!!

That being said, I did some tests and found that adding an index to thread.vbookie_item_id reduced the query time on my test site from 15 seconds to 0.0010 seconds.



edit: Just re-read boggseric's post and adding the above index was his original suggestion. I made (and unmade) several changes before coming to this one change which does indeed speed things up!

Oh yea. That is a necessity. Day and night difference.

Edgecrusher 01-25-2014 08:01 PM

Hello there,

First post on the forum ever here!

Am I missing something here, because vBookie just isn't working on my 4.2.2 installation.

As this working for everyone?

kylek 01-25-2014 09:22 PM

I have it running on vb 4.2.2 with no problems. Make sure you check all your usergroup settings.

Edgecrusher 01-26-2014 12:21 PM

Thanks for reply kylek.

Really sorry, but a friend had uploaded vBookie, and I didn't realise he was getting permission errors on some files...

My fault, I changed permissions and re-uploaded, and we're good now. So in case I worried anyone, it does seem to all be working fine now.

Thanks kylek.

blue6995 04-09-2014 11:56 AM

Since updating to the latest version I cannot bet on an event and I don't seem to be able to settle an event either. I am sure I have the User-group ids set up correctly

blue6995 04-09-2014 08:29 PM

Quote:

Originally Posted by blue6995 (Post 2492236)
Since updating to the latest version I cannot bet on an event and I don't seem to be able to settle an event either. I am sure I have the User-group ids set up correctly

To answer my own question there was a compatibility issue with one of the mods I was playing around with for the events feature - Events Forum, so I've disabled that and everything is now working

valendono 06-02-2014 10:44 AM

Hi Darto,

I juts upgrade to 4.2.1
https://vborg.vbsupport.ru/external/2014/06/65.png

the Odds 12/10 should be 1.2 not 2.2 , but the cash is correct, its time 1.2.

How to fix this ?

Bozza 06-03-2014 11:31 AM

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.

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)

RichieBoy67 09-07-2014 10:18 PM

Quote:

Originally Posted by dartho (Post 2514152)
I think that post EasyEazy linked to is as close as you'll get to what you're after.

Doesn't it limit the entire bet amount though? We have 21 possible outcomes in are contest and many people are betting all their points on one outcome. I would like to do the same exact thing as Ease mentioned only with outcomes and not the entire bet.

Anyhow, I appreciate the info.

dartho 09-08-2014 05:40 AM

Having a *quick* look, that does appear to be for each individual outcome in a book, not the total amount staked across outcomes for a book, so I think it should suit you needs.

RichieBoy67 09-08-2014 02:33 PM

Quote:

Originally Posted by dartho (Post 2514195)
Having a *quick* look, that does appear to be for each individual outcome in a book, not the total amount staked across outcomes for a book, so I think it should suit you needs.

Really?? Cool! I guess I misunderstood it. Thanks for getting me straight. I am going to try it today.

RichieBoy67 09-09-2014 03:31 PM

Quote:

Originally Posted by dartho (Post 2514195)
Having a *quick* look, that does appear to be for each individual outcome in a book, not the total amount staked across outcomes for a book, so I think it should suit you needs.

Hey Dartho,

I added the phrasing like I would normally do but there is no phrasetypeid and I am getting the phrase not found message. I thought this is now the fieldname and I tried vbookie and vbsettings for that..neither work.

Thanks

dartho 09-10-2014 12:41 AM

In the code, try using:
PHP Code:

standard_error('You have exceeded the maximum amount of $100 per bet'); 

rather than
PHP Code:

eval(standard_error(fetch_error('vbookie_exceeded_max_bet'))); 

and forget about the phrases - at least to check that it works the way you want.

RichieBoy67 09-10-2014 01:00 AM

I should have thought of that! Simple work around! Thanks dartho!

Toorak Times 04-27-2015 01:43 PM

Hi Guys,

I am forever on the look out for ways I can improve or create new options for my gig guide, got a solid live music site, can this be adapted for a Gig Guide?

Furcal 04-29-2015 06:20 PM

I've tried running the build bit link, didn't help.

Anyway I can fix this....http://overtimeheroics.com/snip.PNG

Thanks!

Furcal 05-02-2015 06:12 PM

Is this mod supported still?

kylek 05-02-2015 06:30 PM

At the top it says "Not Supported"

blue6995 01-15-2016 07:08 AM

Is it possible to change the default number of outcomes from 2 to 3 etc? If it is, how would I do it?

Thanks

MikeGF 07-30-2016 01:13 PM

Quote:

Originally Posted by blue6995 (Post 2562673)
Is it possible to change the default number of outcomes from 2 to 3 etc? If it is, how would I do it?

Thanks

There is a button above the current outcomes to add more.

airborneCAL 09-18-2017 09:48 PM

Anyone still using this on vbulletin 4.2.5? I can't seem to find where to settle the bets anymore and I'm worried something broke when I upgraded.


All times are GMT. The time now is 05:55 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.02133 seconds
  • Memory Usage 1,820KB
  • 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
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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