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)

mandingo 02-28-2010 03:54 PM

Quote:

Originally Posted by dartho (Post 1993782)
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'); 


Worked like a charm,thanks for the kwik response!

romeo12 03-04-2010 06:58 AM

On the bet stats page, is there any option to increase number of members to display under Richest People tab? Default if only 5, i want to increase to 10-15.

dartho 03-04-2010 08:20 AM

Not at the moment, but I'll look into adding it in next the release...

fly 03-04-2010 12:16 PM

The readme says
Quote:

Setup your permissions in Usergroups / Usergroup Manager (and, if necessary, in Forums & Moderators / Forum Permissions too)
However, I see nothing in there, for any group. I don't see anything in forum permissions either.

dartho 03-04-2010 06:55 PM

Sorry, as of the last couple versions all permissions are now set via AdminCP->Settins->Options->vBookie Settings

Jabong82 03-06-2010 09:26 AM

Great Mod. Installed!

One question though regarding setting up bets

I want to allow all users to set up bets etc. however they wish.

So lets say I let all "Registered" users create events.

So say someone creates a vbookie thread. Basically that thread is open to Edit/Settled by practically anyone else?

Is there a way to make it so that only the person who started the thread can make the edits?

Thank you again.

dartho 03-06-2010 10:12 AM

I haven;t gone back to double check, but I'm pretty sure whoever creates the vbookie event can also edit it without extra permissions.

Granting usergroups editing rights allows them to edit other users events.

So you'd set up registered users can create events, mods/admins can edit...

Aclikyano 03-07-2010 12:15 AM

on 3.8 it said how many 'CHIPS' my members had in the thread above where they place the bet so they know how much they want to put down.

how can i make this show??? please help!

Jabong82 03-07-2010 12:58 AM

Theoretical question, I was messin around with Vbookie, and in theory couldn't people creating bets abuse the system?

Say for example you use Ucash for other things to reward your members, if you allow members to make/settle their own bets, couldn't people just abuse the system by cheating to inflate their own accounts (ie. betting and then settling bets paying themselves out?).

Is there a way to restrict this? Or is there pretty much no way to regulate this unless only say admins handle the settling. Thank you.

TimberFloorAu 03-07-2010 01:47 AM

Its not real money Jab :)

Just restrict who can add bets, we do.

Jabong82 03-07-2010 02:24 AM

Quote:

Originally Posted by TimberFloorAu (Post 1998828)
Its not real money Jab :)

Just restrict who can add bets, we do.

I know :)

I am just debating to add this because I currently use the Point Market system by Mayhem that uses Ucash also, and I feel the market works great because it encourages forum participation because members can earn points to buy items in the market. However if everyone has a ton of points I feel it may render the market kinda useless.

How do you have it running on your board?

dartho 03-07-2010 03:16 AM

I appoint "Book Makers" in the same way I appoint Moderators, and only they can create new vBookie events ...

TimberFloorAu 03-07-2010 06:03 PM

The issue Jabong with point systems is that in an effort to get people interested, you make the credits achieveable , this then means you have to keep adding and adding stuff for them to spend money on.

Darthos, Vbookie and vbcash, if done restrictively, means people shouldnt start earning millions of credits.
I would like to see a restrictive bet limit of certain increments.

mmacrypt 03-09-2010 04:34 AM

I love the mod, one of the main reasons we upgrade from PHPBB to Vb.

ProFifaLeagues 03-09-2010 06:33 AM

Must say our members love this mod also and i would recommend using it to anyone!
Easy to set up and very easy to use when installed and works A1

Aclikyano 03-10-2010 12:41 AM

Quote:

Originally Posted by Aclikyano (Post 1998793)
on 3.8 it said how many 'CHIPS' my members had in the thread above where they place the bet so they know how much they want to put down.

how can i make this show??? please help!

PLEASE?

mmacrypt 03-10-2010 12:56 AM

Quote:

Originally Posted by Aclikyano (Post 2000618)
PLEASE?

I just fixed this on mine, let me take a quick look.

mmacrypt 03-10-2010 12:57 AM

ok, it's post #2 on this thread.
Quote:

Q. How to add a users vCash balance to the event page so they can see how much money they have to bet?
A. See: https://vborg.vbsupport.ru/showpost....&postcount=111

Aclikyano 03-10-2010 01:47 AM

haa thanks mmac :x

KURTZ 03-12-2010 11:05 AM

nice add-on! :)

Aclikyano 03-13-2010 06:04 PM

where do i access where i can fix around the info that shows in postbits????
Chipz : 1500

i need to put a border around it and what not. thanks!

dartho 03-13-2010 08:03 PM

You can edit the vBookie: Add Cash to Postbit plugin to change how it displays.

ShadyUS 03-13-2010 08:34 PM

Alright so i installed this and on 2 of my 3 templates in the postbit it shows vCash 3 times? Any help?

mcyates 03-15-2010 10:59 AM

Is it possible to have the old bit of text above the betting options which used to tell you how much you can bet ?

Thanks

EDIT:

Found the answer here:
https://vborg.vbsupport.ru/showpost....&postcount=111

Aclikyano 03-15-2010 03:19 PM

Quote:

Originally Posted by dartho (Post 2003027)
You can edit the vBookie: Add Cash to Postbit plugin to change how it displays.

what? please explain better! thanks

Aclikyano 03-15-2010 03:20 PM

Quote:

Originally Posted by dartho (Post 2003027)
You can edit the vBookie: Add Cash to Postbit plugin to change how it displays.

no i was saying is there a template or what template can i edit to change the location of vCash in postbit!
i know how to enable it, just want to customize it some
thanks :)

mcyates 03-15-2010 03:58 PM

Quote:

Originally Posted by Regs (Post 1967582)
In the previous version, I was able to hack in a bet limit... users could only bet max $500 in a single bet (https://vborg.vbsupport.ru/showthrea...it#post1387588)

(1) would that be somewhere in the same file?
(2) could that be introduced as a feature/option in the settings?

Another feature request - an option to add/update text on the left side of the bookie home page.

Excellent stuff, keep it going!

Cheers,

Regs.

I would like to have a MAX amount my members can bet.

War.Frog 03-15-2010 04:52 PM

Quote:

Originally Posted by mcyates (Post 2004149)
I would like to have a MAX amount my members can bet.

+1. Thank you!

dartho 03-15-2010 09:20 PM

Quote:

Originally Posted by Aclikyano (Post 2004133)
no i was saying is there a template or what template can i edit to change the location of vCash in postbit!
i know how to enable it, just want to customize it some
thanks :)

You would need to edit that plugin and change the templatehook location and /or markup, and possibly also manually edit your postbit template.

dartho 03-15-2010 09:21 PM

Quote:

Originally Posted by mcyates (Post 2004149)
I would like to have a MAX amount my members can bet.

I used to have a max limit on my site (although users could get around this by placing multiple bets) - I'll have a look

TimberFloorAu 03-19-2010 08:42 PM

Hey Dartho perhaps you can help.

I am trying to style the cash in Postbit.

I have edited plugin ( postbit_display_complete) but its producing errors and I cannot see why:

Original code is:

Code:

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

What I want to do is put this in a div . like so:

Code:

if (($vbulletin->options['vbookieactive']) && ($vbulletin->options['vbookiecash']=="vCash") && ($vbulletin->options['vbookiecashon']))
{
$template_hook[postbit_userinfo_right_after_posts] .= "<div class="australia_postbit">".$vbphrase['vbookie_vcash']." : <b>$ </b>".$post['vbookie_cash']."</div>";
}

Getting errors when parsing the template ( is it the : that is causing the error do you think ? )

TimberFloorAu 03-19-2010 08:45 PM

I am a twat. Just changed " to ' in div tag

Code:

if (($vbulletin->options['vbookieactive']) && ($vbulletin->options['vbookiecash']=="vCash") && ($vbulletin->options['vbookiecashon']))
{
$template_hook[postbit_userinfo_right_after_posts] .= "<div class='australia_postbit'>".$vbphrase['vbookie_vcash']." : <b>$ </b>".$post['vbookie_cash']."</div>";
}

Fixed.

Darkwaltz4 03-21-2010 03:59 AM

Hey dartho

I am writing a currency integration with vBookie, but there is a serious bug preventing the proper use of the "Custom" currency setting - the casing is wrong.

In the setting code, you are using
HTML Code:

<option value=\"custom\" " . iif($setting['value']=='custom','selected="selected"') . ">Custom</option>
but it really should be

HTML Code:

<option value=\"Custom\" " . iif($setting['value']=='Custom','selected="selected"') . ">Custom</option>
fixing that will allow your addon to actually call all those nice hooks with the switch statements on that setting :D Until this is fixed, my addon will have to correct this for you... but of course thats not very ideal.

Thanks for porting this to vb4!

*edit - while youre in there, would you consider adding some hooks around these areas?

vbookie.php line 1419 (for additional validation of a new event)
vbookie.php line 1560 (for additional processing after new event is added/updated)
function_vbookie.php line 168 (for additional processing after event is deleted)

It would be much appreciated!

dartho 03-22-2010 03:49 AM

Just sent you a PM (actually, just about to!)

War.Frog 03-22-2010 05:10 PM

I'm VERRRRY happy to see you two working on integration! :D

dartho 03-23-2010 10:57 AM

4.0.7 (23 Mar '10) released - fixed redirect bug when editing events, fixed display of cash holdings in events, added plugin to make template mods (no template mods needed now) and updated code to 4.0.2 standards, added hooks for vbcredits integration.
NOTE 0- if upgrading from pre 4.0.7, you will need to eitehr revert your "newthread" temp[late, or manually undo template edits as there is now a plugin which does this for you. Check teh readme.txt in the archive for more info.

War.Frog 03-23-2010 12:23 PM

Thanks for the update! Just a note too - you may want to include in the Readme.txt to delete the edit adding user cash to spend that some people added to vbookie_event_table.

Looks like that's now redundant. :)

Code:

<div class="blocksubhead" align="center"><b>
        You have {vb:raw user_cash} vCash to spend.
</b></div>


Boots 03-23-2010 02:08 PM

Installed!

It'd be sweet if users could do private wagers :)

mmacrypt 03-23-2010 10:51 PM

Quote:

Originally Posted by War.Frog (Post 2008714)
Thanks for the update! Just a note too - you may want to include in the Readme.txt to delete the edit adding user cash to spend that some people added to vbookie_event_table.

Looks like that's now redundant. :)

Code:

<div class="blocksubhead" align="center"><b>
        You have {vb:raw user_cash} vCash to spend.
</b></div>


thank you for the reminder, this is something I needed to so after the update.

Thanks.

GreigM 03-24-2010 07:17 AM

Thanks for the update :)


All times are GMT. The time now is 10:34 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.01967 seconds
  • Memory Usage 1,836KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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