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)

SportsZone 09-15-2006 11:16 AM

Quote:

Originally Posted by DS MrSinister
here is what i am using to make it work for 3.6.

paul's fix ... BTW you rock paul thanks!

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

vbBux vbPlaza 1.5.8

download the plugin vbBux vbPlaza 1.5.6

after installing the plugin

make sure you change the setting in vBulletin Options --> vBookie Settings --> Cash/Points System --> Custom. for some reason it dont say Custom for its blank. if you see a blank spot use it.

Ok I have just done this, and when I go to make a 5 point bet, I get charged 20 points!!!! WTF?

phpdevrus 09-15-2006 05:29 PM

yep just updated to 3.6.1 and they must have fixed some bugs. ;-)

it works now for me.

DS MrSinister 09-15-2006 06:21 PM

Quote:

Originally Posted by SportsZone
Ok I have just done this, and when I go to make a 5 point bet, I get charged 20 points!!!! WTF?


it works just fine for me m8! maybe look at your settings not sure what else to tell you i am not a coder...

SportsZone 09-15-2006 06:32 PM

Quote:

Originally Posted by DS MrSinister
it works just fine for me m8! maybe look at your settings not sure what else to tell you i am not a coder...

With the kind help of phpdevrus, it's now working!

Thanks, phpdevrus :)

phpdevrus 09-15-2006 06:33 PM

Quote:

Originally Posted by Devadam
In the statistics part; its written Richest People top 5.. how can i change it to Richest People top 30..

Modify the phrase in admincp. Since the mod is fully phrases you will be able to find it there. Just do a search for richest people and it should come up. this will only change the text.

phpdevrus 09-15-2006 06:42 PM

Quote:

Originally Posted by SportsZone
With the kind help of phpdevrus, it's now working!

Thanks, phpdevrus :)

no problem. glad i could help.

trying to give something back from all of the great vb mods & support I have received.

recently converted lurker ;-)

Shazz 09-15-2006 06:51 PM

Are you able to change usergroup options for any usergroup on the VBookie options?

phpdevrus 09-15-2006 07:40 PM

yep i can change the usergroup options.

i created a usergroup for members that are allowed to create vbookie events. I am able to update their vbookie options.

beano33 09-16-2006 03:41 PM

Quote:

Originally Posted by Gary King
For some reason, pages 2+ on my SETTLED category don't show any rows. Only page 1 has rows shown. Why? Is this a known bug?

Were you, or anyone, able to resolve this issue? I'm having the same problem. Only page 1 in vbookie event categories displays information.

phpdevrus 09-17-2006 06:42 AM

Some things to remember:

-if you have problems setting the usergroups perms: rebuild the bitfields
vbplazza maintenance > Rebuild Bitfields

-if you have issues of not being able to place a bet after a vbookie event is created: make sure you have custom currency set
vBulletin Options > Vbookie Settings > Cash/Point Systems > "blank one"

Good Luck... Works great on vb3.6.1

Neal-UK 09-17-2006 12:41 PM

Any way to get this to work with vbBux?

Devadam 09-18-2006 09:44 AM

Quote:

Originally Posted by phpdevrus
Modify the phrase in admincp. Since the mod is fully phrases you will be able to find it there. Just do a search for richest people and it should come up. this will only change the text.

thanks friend

i solved the problem
functions_vbookie.php

find

"user ORDER BY cash DESC LIMIT 30";

PHP Code:

function vbookie_get_richest()
{
    global 
$vbulletin;

    switch (
$vbulletin->options['vbookiecash'])
    {
        case 
'vcash':
            
$q "SELECT username, vbookie_cash AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 30";    
            break;
        case 
'ucash':
            
$q "SELECT username, ucash AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 30";    
            break;
        case 
'ebux':
            
$q "SELECT username, ebux AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 30";    
            break;
        case 
'custom':
            (
$hook vBulletinHook::fetch_hook('vbookie_get_richest')) ? eval($hook) : false;
    
    } 


phpdevrus 09-18-2006 05:09 PM

Quote:

Originally Posted by Neal-UK
Any way to get this to work with vbBux?

this works with vbbux. select the custom / blank option for cash system. ;-)

phpdevrus 09-18-2006 05:10 PM

Quote:

Originally Posted by Devadam
thanks friend

i solved the problem
functions_vbookie.php

find

"user ORDER BY cash DESC LIMIT 30";

PHP Code:

function vbookie_get_richest()
{
    global 
$vbulletin;

    switch (
$vbulletin->options['vbookiecash'])
    {
        case 
'vcash':
            
$q "SELECT username, vbookie_cash AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 30";    
            break;
        case 
'ucash':
            
$q "SELECT username, ucash AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 30";    
            break;
        case 
'ebux':
            
$q "SELECT username, ebux AS cash FROM " TABLE_PREFIX "user ORDER BY cash DESC LIMIT 30";    
            break;
        case 
'custom':
            (
$hook vBulletinHook::fetch_hook('vbookie_get_richest')) ? eval($hook) : false;
    
    } 



:-) nice, simple change.

Neal-UK 09-18-2006 05:33 PM

Quote:

Originally Posted by phpdevrus
this works with vbbux. select the custom / blank option for cash system. ;-)

I get db erros when I view bookie statistics and what not, do I need to alter anything else by choosing the blank option?

bashy 09-18-2006 07:13 PM

Hi peeps

I have added the plugin code for 3.6 but now i get no permissions errors, I have checked in the usergroups and the permissions are correct, i just dont know whats wrong, oh and rebuilt the bitfields as well!!

Neal-UK 09-18-2006 07:34 PM

Mine is working now i've installed the plugin further up this thread. Moderators, can you add the attached fixes to the actual product, saves having to search or go through the entire threads.

Bashy, did you edit the plugin mentioned for 3.6 fix also?

bashy 09-18-2006 07:55 PM

Hi Neal, yeah i did that m8, thats when things went boobs up

bandare 09-19-2006 12:30 AM

How do you reset everyones total back to 500 or any figure at the start of each month?

thebands 09-19-2006 07:03 PM

Using it with vBulletin 3.6.1, works perfect.

My problem is changing the default vCash. I've searched and have not found the answer. I've changed the .xml install file code and re-imported it and new users still start off with 500 vCash. Is there an extra step I'm missing after I re-import (with overwrite settings set to "yes")?

Thanks in advance.

brvheart 09-20-2006 04:29 PM

flawless install and working great on 3.6.1 :)

wcbryant 09-24-2006 11:19 AM

Just browsed through the last 10 pages or so, and didn't see any clear reference to an issue I'm having with 3.6.1 (and had with 3.6.0).

vBookie itself is working fine. People have been opening, closing and settling bets with no problem whatsoever. The issue I'm experiencing has to do with the vbookie.php page itself. If I list (for example) all the SETTLED bets, there are more than the number that fit on a single page. If you click through to proceed to page 2 (or any page beyond) to see the rest, they don't show up on the listing. That may be worded poorly. Let's say I have 30 open events. 20 will display on the main page. If you click through to see the other 10, everything on the page loads except for those 10 items, they're just not there.

People can still go looking for the threads themselves and use them that way, but the indexing isn't functioning properly. Anyone else finding this, and either way, is there an existing fix I've just somehow overlooked?

Thanks in advance.

DS MrSinister 09-24-2006 02:12 PM

I am still waiting on mutlipages fix. it has not been working since day one i think.. i wish i knew what part to edit to fix it..

far as i know this is the only problem you will have with this hack if you do paul's fix.

JamieLee2k 09-30-2006 03:02 PM

guys do anyone know how to create a bet? I don't see any options and it doesn't seem to be working if I tick the box in a new thread

Aclikyano 10-01-2006 06:46 AM

VBOOKIE 1.0.8 Needs to be released for 3.6.1 !!
with all compatible issues fixed... that would be great....
Because the problem I HAVE is when we settle bets.. people get 500 x more then what they bet (if they win).... and the odds arent that high or low...
So were puzzled... 3 people won.. yet 2 ppl got ALOT of money and the other person nothing....
"BUG FIX in 1.0.7" -> fixed events not being paid out correctly
^ Is not actually FULLY FIXED...... as alot of ppl are still not being payed, being payed WAY TOO MUCH.. or 1/3 of the ppl who WON that event get nothing while the other 66% get paid.
---------------
Cant wait for Vbookie 1.0.8 to be released for 3.6.1 (or 3.6.2) as its coming out shortly.
---------------

nighteyes 10-01-2006 07:07 PM

Quote:

Originally Posted by Aclikyano
---------------
Cant wait for Vbookie 1.0.8 to be released for 3.6.1 (or 3.6.2) as its coming out shortly.

Unfortunately I don't believe there's any further development being done on vBookie.

JamieLee2k 10-01-2006 07:44 PM

can anyone tell me why this might not let me make a bet or even how to use it

Eagle Creek 10-01-2006 10:11 PM

Where can I edit the NEWS & EVENTS part? Cause I want to delete the part that says vBookie installed and put news there.

Lionel 10-02-2006 07:48 PM

Vbookie is working with 3.60 with no problems.

I am also using the events forums calendar hack which creates the thread automatically.

In there there is an option in the thread tools to add a poll.
I wanted to add the option to create a vbookie event also by using this link

forums/vbookie.php?t=40160&vbookieeventoptions=0&do=newev ent

where 40160 is $threadid

In 3.07 I had a link that when clicked on created the thread from calendar and allowed me to post a vbookie event

but now it is telling me no permissions when I do that step.

How do I create an event when a thread has been created?

cuphongle 10-02-2006 08:19 PM

Quote:

Originally Posted by Lionel
Vbookie is working with 3.60 with no problems.

I am also using the events forums calendar hack which creates the thread automatically.

In there there is an option in the thread tools to add a poll.
I wanted to add the option to create a vbookie event also by using this link

forums/vbookie.php?t=40160&vbookieeventoptions=0&do=newev ent

where 40160 is $threadid

In 3.07 I had a link that when clicked on created the thread from calendar and allowed me to post a vbookie event

but now it is telling me no permissions when I do that step.

How do I create an event when a thread has been created?

vbookie doesnt work wit "vbux" on 3.61

Lionel 10-02-2006 08:28 PM

I am using 3.60 and there was a fix somewhere.
Anyway, how would I go about posting an event after the thread has already been created (by the calendar hack in this case)?

Lionel 10-03-2006 01:19 AM

My problem is with permissions and those 2 codes

PHP Code:

/*lionel $can_post = (
   (
    ($editing AND (($forumperms & 
$vbulletin->bf_ugp_forumpermissions['caneditothersvbookieevents']) OR $threadinfo['postuserid'] == 
$vbulletin->userinfo['userid']) AND $threadinfo['vbookie_item_id'])
               OR
    (!$editing AND $vbulletin->userinfo['userid'] == 
$threadinfo['postuserid'] AND ($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostvbookieevent']))
   )
   AND
   ($forumperms & $vbulletin->bf_ugp_forumpermissions['canview'])
 );
 DEVDEBUG("can_post is $can_post");
 if ((!$editing AND !$threadinfo['visible']) OR $threadinfo['isdeleted'] OR !$can_post)
 {
  print_no_permission();
 }
*/ 

PHP Code:

/*lionel $forumperms = fetch_permissions($foruminfo['forumid']);
 if (
  $vbulletin->userinfo['userid'] != $threadinfo['postuserid'] OR 
  !($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR
  !($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostnew']) OR
  !($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostvbookieevent'])
 )
 {
  print_no_permission();
 }
*/ 

When I comment them out, the link posts. Problem is admin has permissions, but with that method, vbookie does not recognize them.

phpdevrus 10-03-2006 02:22 AM

Quote:

Originally Posted by cuphongle
vbookie doesnt work wit "vbux" on 3.61


vbookie does work with vbbux ;-)

phpdevrus 10-03-2006 02:23 AM

Quote:

Originally Posted by Eagle Creek
Where can I edit the NEWS & EVENTS part? Cause I want to delete the part that says vBookie installed and put news there.

at this point I dont believe that we can actually go in there to remove or edit any of the news. you can however remove it from the db.

phpdevrus 10-03-2006 02:25 AM

Quote:

Originally Posted by JamieLee2k
can anyone tell me why this might not let me make a bet or even how to use it

depends what money system you have it integrated with.

either way you need to make sure that your usergroup has vbookie permissions like creation, edit and post. then you also need to make sure that vbookie is allowed in that forum that you are posting to.

if you cant bet on vbookie events you create then make sure you are using the correct money system setting. for example for it to work with vbbux you need to set it to the custom / blank money system :-)

good luck.

phpdevrus 10-03-2006 02:28 AM

Hmmm how weird. I dont have that issue at all. someone else had a similar issue of winners being paid double/triple and we found out that he had not fully remove previous installs. after making sure that only 1 of each new hook/call was setup then it functioned properly.

so i would suggest re-installing but to make sure that only one of each call/hook is setup.

i have no problems with vbookies. however i have not come across the multi-page issue as i have that many different members place a bet.

Quote:

Originally Posted by Aclikyano
VBOOKIE 1.0.8 Needs to be released for 3.6.1 !!
with all compatible issues fixed... that would be great....
Because the problem I HAVE is when we settle bets.. people get 500 x more then what they bet (if they win).... and the odds arent that high or low...
So were puzzled... 3 people won.. yet 2 ppl got ALOT of money and the other person nothing....
"BUG FIX in 1.0.7" -> fixed events not being paid out correctly
^ Is not actually FULLY FIXED...... as alot of ppl are still not being payed, being payed WAY TOO MUCH.. or 1/3 of the ppl who WON that event get nothing while the other 66% get paid.
---------------
Cant wait for Vbookie 1.0.8 to be released for 3.6.1 (or 3.6.2) as its coming out shortly.
---------------


Eagle Creek 10-03-2006 05:24 PM

Can somebody reply?

1. Where can I edit the NEWS & EVENTS part? Cause I want to delete the part that says vBookie installed and put news there.

2. When the bet is done; how does the system now who won?

3. Can somebody explain the odd's to me? 1 - 1 ==> you get 1 dollar for every dollar you pay.
10 - 1 ==> you get 10 dollar for every dollar you pay
5 - 2 ==> hu?
The system says:
Quote:

2 to 5' means win 2 for every 5 bet
So I bet 5 dollars, and I win 2? Then I still lose; don't I?

EasyTarget 10-03-2006 05:35 PM

you get your original bet back, so if you bet 5 dollars and win 2 you'll get your original bet + the 2 you won.

Eagle Creek 10-03-2006 06:16 PM

Hmm... I don't know :D.

Can you give an example what to fill in at Winning and Losing. What would be normal?

bandare 10-03-2006 08:07 PM

Is there a latest vbookie bet addon for vbadvanced? There used to be on the old version I think...anyone help?

you know, like latest poll that works in the same way:)


All times are GMT. The time now is 12:52 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.03312 seconds
  • Memory Usage 1,862KB
  • 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_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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