PDA

View Full Version : Add-On Releases - vBookie for vBulletin 4


Pages : 1 [2] 3 4 5

dartho
02-17-2010, 10:05 PM
Disable the vBookie: Insert Navbar Link plugin

Bacon Butty
02-18-2010, 01:28 PM
Thanks a bunch for porting this, awesome work.

I don't suppose its possible to transfer members vcash on 3.8 to this on 4?

dcuellar
02-18-2010, 08:21 PM
Not sure why that would be the case. If you fixed it, I'd like to know how. If not I'll be happy to have a look at your site and try and work out why.

Could it be something with vbcredits?

I set it to custom and am using their old vbookie integration.

DarkWaltz is in the process of making anoter integration compatible with his new vbcredits II and this vbookie.

dartho
02-18-2010, 08:29 PM
@dcuellar - old integration should work assuming the vbcredits hasn't changed too much. I didn't even realise vbcredits is out for vb4 - I'm happy to put support into vBookie for it our of the box.

@bacon butty - you should be able to upgrade and keep (over write fuiles, install new XML) and your vcash balances should be preserved. Backup DB first though

dcuellar
02-18-2010, 08:33 PM
I'm part of the beta team for their vbCredits II release. II is a complete rewrite, so yes that would be the case.

Good thing is he is will have the integration ready by the next beta release.

I will let him know about vBookie support out of the box. Perhaps you can join the beta team.

dartho
02-18-2010, 08:46 PM
I just need to know where the vbcredits colum is and what it is called to add support. I would guess "vbcredits" on the user table. When you find out, let me know

Gnoll
02-20-2010, 05:58 PM
where i am making mistake ?

i used 1.2 1,2 1;2 1:2 still accepting as 1

dartho
02-20-2010, 08:29 PM
I don't understand? Do you mean when entering odds? If so, you put whole numbers in both boxes ie. a "1 " in the first and a "2" in the second meaning to win "1" you must bet "2"

Gnoll
02-21-2010, 06:50 PM
I don't understand? Do you mean when entering odds? If so, you put whole numbers in both boxes ie. a "1 " in the first and a "2" in the second meaning to win "1" you must bet "2"

i want to make 1.25 / 1

bet 1 won 1.25 , or bet 1 won 1.36

dartho
02-21-2010, 08:13 PM
You would have to bring it up to whole numbers

1.25 = 5/4
1.36 = 34/25

Gnoll
02-22-2010, 09:11 AM
You would have to bring it up to whole numbers

1.25 = 5/4
1.36 = 34/25

thank you :) , now i got it

dartho
02-22-2010, 09:48 AM
You're welcome :)

GMislandguy
02-22-2010, 08:31 PM
Install Instructions
1. Unzip product file
2. Upload files from 'Upload' folder to your forum
3. Install product XML
4. Edit "newthread" template as per readme.txt ionstructions
5. Set usergroup permissions
6. Set vBookie settings
7. Enjoy.

Can someone tell me how to find this template please??

Is it suppose to be in my Style manger>>skin style>>edit Template menu???

Pro-eSports.com
02-23-2010, 11:02 AM
Can someone tell me how to find this template please??

Is it suppose to be in my Style manger>>skin style>>edit Template menu???

Style Manager - Search In Templates - Select Your Style - Search For newthread

literatestylish
02-23-2010, 04:30 PM
This may be a ridiculously easy question for all the experts out there, but i'm having some trouble.

1) I don't see a place to set Vbookie permissions in user manager
2) I don't see a place to make a bet/wager. I uploaded everything, set the settings up, but I don't see a place to start a bet or bet on an existing one. The Vbookie tab and page is there but it's just a page that shows "Currently showing open bets" - no place to make one

Wseries
02-23-2010, 05:30 PM
1) I don't see a place to set Vbookie permissions in user manager
2) I don't see a place to make a bet/wager. I uploaded everything, set the settings up, but I don't see a place to start a bet or bet on an existing one. The Vbookie tab and page is there but it's just a page that shows "Currently showing open bets" - no place to make one

Fair dinkum!

1. vBulletin Options -> vBookie Settings.
2. New Post -> Additional Options -> Yes, post a vBookie Event with this thread.

The second option will only appear if you've done the required template edit. Instructions are in the readme.txt file.

literatestylish
02-23-2010, 05:43 PM
Fair dinkum!

1. vBulletin Options -> vBookie Settings.
2. New Post -> Additional Options -> Yes, post a vBookie Event with this thread.

The second option will only appear if you've done the required template edit. Instructions are in the readme.txt file.

Thank you!

literatestylish
02-23-2010, 05:44 PM
Just a suggestion for the MOD creator. If there was a way to create a Bookie Event from the actually Vbookie page, that would awesome!

Wseries
02-23-2010, 06:23 PM
Having an eye for detail I've just noticed the required template edit for the new vBookie doesn't quite match the new styling of vBulletin 4. So with much respect to the author of this mod I've updated it to match. To see the differences view the before and after pics I've attached to this post. Be aware I changed the 'yes_post_a_vbookieevent_thread' phrase on my forum in the after shot.

Here is the code:

<vb:if condition="$show['vbookieevent']">
<fieldset class="blockrow">
<legend>{vb:rawphrase vbookie}</legend>
<dl class="group dep_group">
<dt>
<label for="cb_postvbookieevent">
{vb:rawphrase yes_post_a_vbookieevent_thread}
</label>
</dt>
<dd class="rightcol">
<label for="cb_postvbookieevent">
<input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" {vb:raw checked.postvbookieevent} class="dep_ctrl" />
</dd>
</dl>
</fieldset>
</vb:if>

Dartho I hope you don't mind?

literatestylish
02-23-2010, 06:29 PM
Having an eye for detail I've just noticed the required template edit for the new vBookie doesn't quite match the new styling of vBulletin 4. So with much respect to the author of this mod I've updated it to match. To see the differences view the before and after pics I've attached to this post. Be aware I changed the 'yes_post_a_vbookieevent_thread' phrase on my forum in the after shot.

Here is the code:

<vb:if condition="$show['vbookieevent']">
<fieldset class="blockrow">
<legend>{vb:rawphrase vbookie}</legend>
<dl class="group dep_group">
<dt>
<label for="cb_postvbookieevent">
{vb:rawphrase yes_post_a_vbookieevent_thread}
</label>
</dt>
<dd class="rightcol">
<label for="cb_postvbookieevent">
<input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" {vb:raw checked.postvbookieevent} class="dep_ctrl" />
</dd>
</dl>
</fieldset>
</vb:if>

Dartho I hope you don't mind?

Awesome! Thank you!

literatestylish
02-23-2010, 06:54 PM
Does the person who starts the thread have to make the payouts?

Wseries
02-23-2010, 07:30 PM
Does the person who starts the thread have to make the payouts?

No, anyone in the usergroup which has permissions to do so can settle the event. I would recommend keeping that group to a smallest number possible. vBookie does not have an undo function so if you make an error when settling an event you are basically screwed.

dartho
02-23-2010, 08:11 PM
Having an eye for detail I've just noticed the required template edit for the new vBookie doesn't quite match the new styling of vBulletin 4. So with much respect to the author of this mod I've updated it to match. To see the differences view the before and after pics I've attached to this post. Be aware I changed the 'yes_post_a_vbookieevent_thread' phrase on my forum in the after shot.

Here is the code:

<vb:if condition="$show['vbookieevent']">
<fieldset class="blockrow">
<legend>{vb:rawphrase vbookie}</legend>
<dl class="group dep_group">
<dt>
<label for="cb_postvbookieevent">
{vb:rawphrase yes_post_a_vbookieevent_thread}
</label>
</dt>
<dd class="rightcol">
<label for="cb_postvbookieevent">
<input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" {vb:raw checked.postvbookieevent} class="dep_ctrl" />
</dd>
</dl>
</fieldset>
</vb:if>

Dartho I hope you don't mind?

I think you will find that is because you are not using the default style and your code changes will only be useful to people using teh same style you are :)

Here's a default screen shot:

https://vborg.vbsupport.ru/attachment.php?attachmentid=112897&stc=1&d=1266963030

Wseries
02-23-2010, 08:53 PM
I think you will find that is because you are not using the default style and your code changes will only be useful to people using teh same style you are :)

But I am using the default style dartho. Well, at least I think I am! I only have one style that I've made all my customisations to and it's called 'vB4 Default Style'. So now your screenshot has got me wondering what's going on. Perhaps it had something to do with my recent upgrade to vB4?

dartho
02-23-2010, 09:18 PM
Although I just this minute upgraded from 4.0.1 to 4.0.2 and you are correct - they've changed the style around in 4.0.2.

Thanks!

Sounds like you've edited your default style, which is OK - but it means you can no longer view what it looks like out of the box - which often is useful as a sanity check.

Just add a new style with no parent and call it "vBulletin Original" and it will be the vbulletin default style unmodified.

Wseries
02-25-2010, 06:07 PM
You're welcome dartho. Just noticed something else I think needs to be looked at though. In previous versions of vBookie, on the showthread page, there was a notice above an events outcomes and odds that went along the line of "{1}You may bet on this event. You have x cash and have placed x bet(s) on this Event. {2}You may bet more than once on this Event." Obviously {1} and {2} are updated to reflect the correct permissions.

Anyway, any chance you could include this in a future update please? As it stands a member doesn't know how much vCash they have to bet with when viewing an event.

dartho
02-25-2010, 07:47 PM
see https://vborg.vbsupport.ru/showthread.php?p=1965601#post1965601 for adding vcash balance

[ed: actually, I have implemented the above from wseries' post- will add in next release]

iamme1
02-26-2010, 08:40 PM
by chance does anyone know if this will work w/ vbulletin 3.6.x ?

mandingo
02-28-2010, 03:07 PM
Not sure if this has been covered. went to edit event to add new options to an existing bookie and it won't let me save it.
This thread already has a vBookie event attached to it

dartho
02-28-2010, 03:28 PM
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

// Main page content
$templater = vB_Template::create('vbookie_new_event');

mandingo
02-28-2010, 03:54 PM
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

// 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
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
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
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
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.
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.php?p=1965601&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.php?p=1965601&postcount=111

Aclikyano
03-15-2010, 03:19 PM
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
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
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/showthread.php?p=1387588&highlight=bet*+limit#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
I would like to have a MAX amount my members can bet.

+1. Thank you!

dartho
03-15-2010, 09:20 PM
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
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:


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:


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


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

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


<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 (https://vborg.vbsupport.ru/showpost.php?p=1965601&postcount=111) to vbookie_event_table.

Looks like that's now redundant. :)

<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
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 (https://vborg.vbsupport.ru/showpost.php?p=1965601&postcount=111) to vbookie_event_table.

Looks like that's now redundant. :)

<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 :)

Bacon Butty
04-03-2010, 01:55 PM
Finally got around to upgrading the forum to 4, and have upgraded vBookie.

Just a quick question. Is there any chance to remove 'vBookie' from the navbar, but still have the sub tab accessible the "/forum/vbookie.php" link?

dartho
04-03-2010, 10:24 PM
it's either all or none for vbookie, unless you make manual edits to your navbar templates I guess ...

Bacon Butty
04-04-2010, 08:36 AM
Ah okay, thanks for your prompt reply and thanks again for porting this mod.

will555559
04-05-2010, 06:26 PM
Finally got around to upgrading the forum to 4, and have upgraded vBookie.

Just a quick question. Is there any chance to remove 'vBookie' from the navbar, but still have the sub tab accessible the "/forum/vbookie.php" link?

If you want to do this, go to the Plugin Manager in your admincp and disable "vBookie: Insert Navbar Link."

Delilahs
04-25-2010, 01:51 PM
anyone now unable to add a new event?

Th box is there to tick, but it doesn't then direct me to the correct page. but just goes as a normal post, I've checked the readme file and everything appears to be in order.

dartho
04-25-2010, 09:44 PM
what (if anything) changed that you know of to cause this?

Delilahs
04-26-2010, 02:25 AM
i've installed couple of mods this week, but I went through the whole lot and disabled them all apart from vbookie, but to no avail.

the box is still there when I create a new thread to include a vbookie event, but it doesn't then direct to the vbookie ner event page

dartho
04-26-2010, 09:28 AM
it's a plugin that does the redirect when a new vBookie thread is posted.

Check teh newthread_post_complete plugiun is enabled, also try changing its execution order to say 10

Delilahs
04-26-2010, 09:58 AM
done that, still no good, this is the code for it.

if ($newpost['postvbookieevent'])
{
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
eval(print_standard_redirect('redirect_postthanks_ moderate', true, false));
}

dartho
04-26-2010, 11:00 AM
after creating a thread, take a note of th threadid and try manually entering the following URL:

http://......./vbookie.php?t=threadid&do=newevent Does this let you then add a vBookie event?

If so, you'll need to do some testing to see what the issue is. I'm happy to do this if you can give me admin access I'll happily look - it may cause some odd text for users for a few minutes while I run over things, but shouldn't take long.

Delilahs
04-26-2010, 03:05 PM
Tried that and it does let me add a new event. the original url was..

http:///forum/showthread.php/1581-this-is-a-test

I changed it to. http:///forum/vbookie.php?t=1581&do=newevent

and it works no problem, so it looks like a rewrite url problem

gone through the url rewrite options in vbulletin, and changing them doesn't rectify it either.

share4vn.com
04-30-2010, 06:17 PM
I dont know why the events always CLOSED although the end date is not yet expired.

Please help

FrankieGersnet
05-06-2010, 12:55 PM
Hmmm... tried to install this today and have followed all the instructions but no VBookie link on the navbar or the option to add events in new threads? :(

We did have a previous install on 3.8x that worked fine.

4.0.7 used.

TheBish
05-06-2010, 03:11 PM
As simple an install as they come.

I do have a minor issue where on the vBookie page my style gets a touch messed up. Top right corner links pushed over right, top spacing gone, and spacing beneath the navbar / breadcrumbs is gone.

http://www.localgolflinks.com/vbookie.php

If I could be pointed in the right direction to fix this I would greatly appreciate it. When we launch next week and begin placing sponsor banners this will be an issue.

Thanks again and I just love this mod!

dartho
05-06-2010, 09:40 PM
@Frankie - when you upgrade to vBulletin 4, did you disable the vBookie plugins or product, and is it still disabled after installling the new vBookie?

@TheBish - Sounds like you are viewing using Internet Explorer in "Compatibility Mode" - try turning this off

TheBish
05-07-2010, 01:29 AM
@Frankie - when you upgrade to vBulletin 4, did you disable the vBookie plugins or product, and is it still disabled after installling the new vBookie?

@TheBish - Sounds like you are viewing using Internet Explorer in "Compatibility Mode" - try turning this off

Man I wish that were the case. I am viewing the same issue in all browsers (IE8, FF, Chrome, Opera, Safari).

I am almost positive it is my custom design. I cannot tell if there is a difference in the vb base style although it does shift to the right a touch. However, due to the style it does not really do much. I just cannot tell what is causing the issue.

dartho
05-07-2010, 01:58 AM
Ah - I see now - didn't notice the up top links.

Try this:

edit your VBOOKIE template and replace everything between the <head> and </head> tags with

{vb:raw headinclude}
<title>{vb:raw vboptions.bbtitle} - {vb:raw title}</title>
{vb:raw headinclude_bottom}

TheBish
05-07-2010, 02:37 AM
Ah - I see now - didn't notice the up top links.

Try this:

edit your VBOOKIE template and replace everything between the <head> and </head> tags with

{vb:raw headinclude}
<title>{vb:raw vboptions.bbtitle} - {vb:raw title}</title>
{vb:raw headinclude_bottom}


Did the trick... You absolutely rock!

FrankieGersnet
05-07-2010, 06:16 AM
@Frankie - when you upgrade to vBulletin 4, did you disable the vBookie plugins or product, and is it still disabled after installling the new vBookie?



Thanks for the prompt reply mate... :)

In the product manager, the following message is displayed:

'Warning: Plugins are currently globally disabled via config.php.'

As such, I've removed the appropriate line in the config file and all seems to be fine now!

Many thanks for taking the time to re-release and upgrade this software! :)

dartho
05-07-2010, 08:07 AM
woot - 2 for 2!

share4vn.com
05-07-2010, 02:22 PM
My settings: start day < end day > current time
but all events can't bet >'<
Can you help me make an event without CLOSED please :(

dartho
05-07-2010, 09:44 PM
@share4vn - can you give me a link to your site? PM if needed

nonstoprob
05-08-2010, 12:55 PM
I read here that people have similar bugs with vbookie stats. (4.0.7)

I get a database error with: Query was empty

What is the workaround??

And is there a way to show your vcash-amount near your posts? (like joindate, location an no. of posts)

dartho
05-08-2010, 08:27 PM
I'm suprised that issue is happening - but the way to get around it would be to create an event.

vCash should already be showing in your postbit template.

Delilahs
05-12-2010, 05:50 AM
Tried that and it does let me add a new event. the original url was..

http:///forum/showthread.php/1581-this-is-a-test

I changed it to. http:///forum/vbookie.php?t=1581&do=newevent

and it works no problem, so it looks like a rewrite url problem

gone through the url rewrite options in vbulletin, and changing them doesn't rectify it either.

Dartho, is there a work around for this problem? < I've tried all sorts of things and it just isn't having any of it

BF777
05-14-2010, 04:15 AM
I just upgraded to VB 4.03 and now the "Post New Event" button is missing. I'm no longer provided with the option to post an event. I've checked the settings. I'm authorized to create an event and all the plug ins are active. Why am I still not able to post an event?

BF777
05-14-2010, 02:48 PM
Update: I figured out the problem. When I upgraded, I reverted the newthread template. Adding the additional code noted in the readme.txt file solved the issue. I can now post events again!

Delilahs
05-15-2010, 07:25 AM
BF77, where abouts did you add the code because the readme text says to remove it, I'm having trouble adding new events so this could solve it for me

nonstoprob
05-17-2010, 01:10 PM
We still have a (big) problem with vCash / vBookie on our forum.

I have hacked it so far, that it shows the ammount of vCash near the users.. but the statistics and the betting doesnt work!!

Where do I have to look to fix this? Or what do I have to change??


MySQL Error : Query was empty
Error Number : 1065
Request Date : Monday, May 17th 2010 @ 03:01:47 PM
Error Date : Monday, May 17th 2010 @ 03:01:47 PM
Script : http://www.mixfight.nl/forum/vbookie.php?do=stats
Referrer : http://www.mixfight.nl/forum/vbookie.php

dartho
05-17-2010, 09:44 PM
Try editing vbookie.php and replace: (line 613 - 619)

$result = vbookie_get_richest();
$richest_people = '';
while ($bit = $db->fetch_array($result))
{
$user = $bit['username'];
$richest_people .= construct_phrase($vbphrase['x_has_a_total_of_y'], $user, $bit['cash']);
}

with

// $result = vbookie_get_richest();
$richest_people = '';
// while ($bit = $db->fetch_array($result))
// {
// $user = $bit['username'];
// $richest_people .= construct_phrase($vbphrase['x_has_a_total_of_y'], $user, $bit['cash']);
// }

and let me know how it goes

SliceofLife
05-18-2010, 09:11 AM
Hi. Just wondering, I created a 'test event' and gave a date and time for it to close, and that has now passed. How do I now settle the event? There is no option to settle the event that I can see?

dartho
05-18-2010, 04:10 PM
check the tick boxes for the winning outcomes

SliceofLife
05-18-2010, 08:25 PM
check the tick boxes for the winning outcomes

There are no tick boxes at all available. It's move itself to a closed event. But either in the vBookie area, or the thread, there is no option to settle?

dartho
05-18-2010, 10:46 PM
check the date for bets can be settled after - it may not be teh same as teh accept bets until date ...

jpwilliams
05-20-2010, 05:04 PM
Get the following database error when clicking on vCash utilities in admincp. I want to be able to reset funds monthly.

Database error in vBulletin 4.0.3:

Invalid SQL:

SHOW Columns
FROM phpbb3_user
WHERE Field = "vbookie_cash";

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE Field = "vbookie_cash"' at line 3
Error Number : 1064
Request Date : Thursday, May 20th 2010 @ 02:03:32 PM
Error Date : Thursday, May 20th 2010 @ 02:03:32 PM
Script : http://www.blickees.com/admincp/vbookie_admin.php
Referrer : http://www.blickees.com/admincp/options.php?do=options&dogroup=vbookie
IP Address : 216.215.192.134
Username : Fe1on1ous Monk
Classname : vB_Database_MySQLi
MySQL Version : 4.1.18-nt

dartho
05-20-2010, 10:04 PM
I would guess it's because you are running an old MYSQL version...

Try editing the /admincp/vbookie_admin.php file, search for
$types = $db->query_read('
SHOW Columns
FROM ' . TABLE_PREFIX . 'user
WHERE Field = "vbookie_cash"
');

and replace with
$types = $db->query_read('
SHOW Columns
FROM ' . TABLE_PREFIX . 'user
LIKE "vbookie_cash"
');

Adam H
05-23-2010, 07:22 PM
Is there anyway to get a leader board of the how much cash each member has ?

dartho
05-23-2010, 09:57 PM
In the bet statistics it has the 10 richest people. Otherwise you can always run a query like:

select username, vbookie_cash from user order by vbookie_cash desc

Adam H
05-23-2010, 10:07 PM
In the bet statistics it has the 10 richest people. Otherwise you can always run a query like:

select username, vbookie_cash from user order by vbookie_cash desc

Sorry i meant something all members can see ? like the richest members ?

dartho
05-24-2010, 12:18 AM
all members can see richest members in teh stats page can't they?

Adam H
05-24-2010, 05:11 AM
Stats page ? sorry this is the first time using vbookie , how would some one find this stats page ? we do not use the post bit code if thats how you get there, there isnt any links what so ever on the vbookie.php page ?

dartho
05-24-2010, 05:18 AM
/vbookie.php?do=stats

It's off teh vBookie tab in the navbar (if you have that enabled)

Adam H
05-24-2010, 05:40 AM
ah that would explain it :P i use a custom navbar. Thanks for the help ill make another link for members in their Navbars

Asterix_ita
05-31-2010, 08:19 AM
I apologize immediately if the subject has been already addressed but I found nothing.

I would like to know if you can format vcach point:

now: 100000 - 1000000
format: 100.000 - 1.000.000

Thanks

jonty
05-31-2010, 09:01 AM
*bug*

When editing a bet, it you select 'update number of outcomes', then the tick-box 'Allow multiple bets' becomes 'true' if previously set to false.

jonty
05-31-2010, 09:18 AM
*bug*
When editing someone elses bet, and changing the number of outcomes, 'permission denied' page is shown.
Other details (odds, 'allow multiple bets' can be changed ok)

(permission groups set correctly in vbookie settings)

jonty
05-31-2010, 01:11 PM
'Allow multiple bets' is fixed :up:
Updating number of outcomes still throws a permission denied error :(

FrankieGersnet
06-02-2010, 12:51 PM
Is there a way to reset the bet stats section?

Thanks in advance! :)

Delilahs
06-17-2010, 04:53 AM
Dartho, I un-installed all files and completey re-installed the new version, the same problem where a new event cannot be posted is there still., all the usergroup permissions are in place and everything seems to be in place.

But it still will not add a new event event though the tick button is there.

If I send you the admincp log in details, can you have a look to see what is going wrong please?

Thanks

dartho
06-17-2010, 09:52 AM
Hi Delilahs,
Yep - PM me details and also the times when your site is at it's quietest/busiest (and your timezone) I wouldn't need to take your site down, but I may need to added some comment/debug code to the vBookie plugins which may momentarily cause issues or 'uglyness' for users.

JustinTiburon
06-18-2010, 03:50 AM
fixed

dartho
06-18-2010, 01:13 PM
Dartho, I un-installed all files and completey re-installed the new version, the same problem where a new event cannot be posted is there still., all the usergroup permissions are in place and everything seems to be in place.

But it still will not add a new event event though the tick button is there.

If I send you the admincp log in details, can you have a look to see what is going wrong please?

Thanks

Looks like I worked out the issue. You have 2 other plugins on the same hook as vBookie uses to bringup teh vBookie form. The thing is, these 2 plugins do the same thing - so I don't think you need them both anyway? Disabling one (either one it seems) results in vBookie working as expected. More info in PM to come.

Delilahs
06-19-2010, 12:55 AM
Works a treat now I've disabled the vbulletin to twitter plug in.

Thanks for looking Dartho.

svvish
06-22-2010, 05:49 PM
is there anyone that could help me install this? please PM me

TheBish
06-23-2010, 06:40 PM
After upgrading to vb4.0.4 I am no longer seeing the bookie cash in the postbit legacy. Any thoughts on this?

sportsfroma2
06-24-2010, 02:03 PM
After upgrading to vb4.0.4 I am no longer seeing the bookie cash in the postbit legacy. Any thoughts on this?

I haven't upgraded my site to 4.0.4 yet (seems like I will wait until 4.0.5) BUT I see that all the postbit templates were updated:

http://www.vbulletin.com/forum/showthread.php?354631-vBulletin-4.0.4-Maintenance-Release-Now-Available

(total guess, maybe it would be better to wait for dartho to confim before trying)-

if you re-install the product does that fix it? my theory is that by re-running the product install that the temples edits would be added back on

TheBish
06-24-2010, 06:23 PM
I haven't upgraded my site to 4.0.4 yet (seems like I will wait until 4.0.5) BUT I see that all the postbit templates were updated:

http://www.vbulletin.com/forum/showthread.php?354631-vBulletin-4.0.4-Maintenance-Release-Now-Available

(total guess, maybe it would be better to wait for dartho to confim before trying)-

if you re-install the product does that fix it? my theory is that by re-running the product install that the temples edits would be added back on

Appreciate the response. I did try to re install the product, with overwrite on, and no difference. I can see the hook in the template, just not working.

dartho
06-24-2010, 09:30 PM
I'm looking into this, as a temp work around for those that are indeed using vCash, you can edit the vBookie: Add Cash to Postbit plugin and add a double slash (//)to the front of the very first line to comment out the conditional. This way the vCash will always show .

dartho
06-24-2010, 09:47 PM
OK - To fix, replace the entire vBookie: Add Cash to Postbit contents plugin with:

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>";
}

TheBish
06-25-2010, 03:22 AM
Works great now. Thank you!

hardboiled
06-28-2010, 09:36 PM
Installed everything according to the read-me, but nothing shows up in usergroup permissions or forum permissions.

dartho
06-28-2010, 09:44 PM
No - usergroup and forum permissions are set in the vBookie settings...

hardboiled
06-28-2010, 09:51 PM
In the vbookie setting, both user ids for admins and mods are in place, but still, cannot add events.

dartho
06-28-2010, 10:23 PM
You need to use group ID's (probably 5 & 6) , not userids for user permissions

hardboiled
06-28-2010, 10:30 PM
NEVERMIND! I got it to work! AMAZING!!!!!!!!!

DevilGreeny
06-29-2010, 04:12 PM
Event not show checkbox Pay Out when done,pls tell me why ?

dartho
06-29-2010, 09:09 PM
Because the "Payout" date hasn't passed yet?

merk_aus
07-09-2010, 12:54 AM
I know the chances of people helping are slim however I just brought a skin and installed it on my site everything is looking fine until I go to the vbookie section the entire template is all messed up.

http://www.sports-force.net.au/betting.html (down the bottom there is the template changer it is Sports Force v2 that is the theme I am working on) can someone offer any assistance as to how to fix it?

dartho
07-09-2010, 05:17 AM
It looks similar to an issue I have seen before - the fix might be simple. I;ll have a look later when I have some time....

dartho
07-10-2010, 05:37 AM
Merk - how does it look if you have standard URL's rather than "friendly" ones?

Also, try adding <base href="http://www.sports-force.net.au/" /><!--[if IE]></base><![endif]--> to the VBOOKIE template immediately after <head>

leeman
07-12-2010, 05:43 PM
Installed like a dream ...

Now my members are happy again :D

hcmls.net
07-15-2010, 06:25 PM
I cant add event or manager vbookie because I dont see it at ACP :(

dartho
07-15-2010, 10:11 PM
Events are added when you create a new thread

tjdrico
07-16-2010, 12:05 PM
Great to see my old hack still being ported on. Thanks to both Andreas and dartho for keeping the old girl alive. :D

wEbAddEr
07-18-2010, 01:01 AM
How can i integrate vBCredits II into vbookie ?

dartho
07-18-2010, 02:57 AM
Ask the vBCredits guys - all the hooks are there for them, and I think they even added native vBookie support.

wEbAddEr
07-18-2010, 03:21 AM
thanks, will take there a look :)

Asterix_ita
07-20-2010, 03:36 AM
I can not translate as shown in picture

I translated the language variables

help me

thanks

dartho
07-20-2010, 04:49 AM
Those words are hard coded. I will look at phrasing them to help make your translation complete.

Asterix_ita
07-20-2010, 06:52 AM
Thanks

sticky
07-24-2010, 08:02 AM
Can you use rep points as currency?

That is what I am using with Ucash.

jesus likes pie
07-24-2010, 08:14 AM
Incredible.

Thank you so much - I thought this would be one of the mods I had that would not make it to the vb4 transition.

Thanks!!

edit: I believe I had the 3.5 version modified a bit so that it would go off of reputation rather than "Cash". Is there an easy way to do the same thing here? You might even consider adding it as a setting if it isn't already and if it isn't too hard.

manutdvn
07-24-2010, 02:43 PM
Thank you for your mod. You said this mod integrates with ucash, so that is this mod you mentioned?

https://vborg.vbsupport.ru/showthread.php?t=227910&highlight=ucash

sticky
07-24-2010, 09:17 PM
Incredible.

Thank you so much - I thought this would be one of the mods I had that would not make it to the vb4 transition.

Thanks!!

edit: I believe I had the 3.5 version modified a bit so that it would go off of reputation rather than "Cash". Is there an easy way to do the same thing here? You might even consider adding it as a setting if it isn't already and if it isn't too hard.
Same question, I want to use rep points as currency.

dartho
07-24-2010, 10:55 PM
It wouldn;t be hard to change it so rep points were used as currency

dartho
07-24-2010, 10:56 PM
Thank you for your mod. You said this mod integrates with ucash, so that is this mod you mentioned?

https://vborg.vbsupport.ru/showthread.php?t=227910&highlight=ucash

Yep - should work with a default uCash install

sticky
07-24-2010, 11:52 PM
How do I edit this to use TP.user.reputation for cash?

sticky
07-25-2010, 12:26 AM
It wouldn;t be hard to change it so rep points were used as currency
How do I do this?

manutdvn
07-25-2010, 08:59 AM
Yep - should work with a default uCash install
Thank you. Just click install boths ^^.

dartho
07-25-2010, 12:30 PM
New version released. Fixed some missing phrases (https://vborg.vbsupport.ru/showpost.php?p=2071839&postcount=398), added reputation points as a 'currency', found and fixed bug disaplying vCash balance in postbit.

Asterix_ita
07-25-2010, 01:24 PM
thanks for the ugrade, but still some phrases in English is correct?

http://img101.imageshack.us/img101/9196/25072010161700.png

I have a strange behavior, if I continue to view the live betting - Suspended abandoned closed, 4 return to page view appears so

http://img80.imageshack.us/img80/7780/25072010162021.png

dartho
07-25-2010, 01:28 PM
Old news items will not update. Are the items in image 1 old (pre-upgrade)?

Image 2 - I do not quite understand under what situation that screen appears. More information would help, or a URL/link

manutdvn
07-25-2010, 01:29 PM
New version released. Fixed some missing phrases (https://vborg.vbsupport.ru/showpost.php?p=2071839&postcount=398), added reputation points as a 'currency', found and fixed bug disaplying vCash balance in postbit.
I installed ucash. Do I need to upgrade to 4.0.9 version? anyway, I read upgrade instruction, there is one edit template, but it is removed from last version (4.0.8)?

Asterix_ita
07-25-2010, 01:47 PM
Old news items will not update. Are the items in image 1 old (pre-upgrade)?

Yes the items are pre upgrade

for the second problem I've made a little video, I hope it is clear

http://www.megaupload.com/?d=LJM85XL7

thanks

dartho
07-25-2010, 02:10 PM
That's a strange error! I can not reproduce on my site, but I can on your site - but do not know what is causing it?

For the last couple translation issues, you can edit the vbookie_main template and search for

{vb:rawphrase currently_showing_x_events, {vb:raw type}}
and delete it - it is not really needed. Or if you want to keep the phrase in there, you can replace with the following. It's a little clumsy, but it should work:

<vb:if condition="$type=='OPEN'">{vb:rawphrase currently_showing_x_events,{vb:rawphrase event_open}}
<vb:elseif condition="$type=='CLOSED'" />{vb:rawphrase currently_showing_x_events,{vb:rawphrase event_closed}}
<vb:elseif condition="$type=='SETTLED'" />{vb:rawphrase currently_showing_x_events,{vb:rawphrase event_settled}}
<vb:elseif condition="$type=='ABANDONED'" />{vb:rawphrase currently_showing_x_events,{vb:rawphrase event_abandoned}}
</vb:if>

Then search for

value="Go"
and replace with
value="Andare" or the translation of your choice which is likely better than mine. I'll fix these in the next release.


Just had a though on the strange error. WHile you are editing the template, search for
{vb:raw pagenav}
</form>

and replace with

</form>
{vb:raw pagenav}


See if that helps?

sticky
07-25-2010, 05:29 PM
New version released. Fixed some missing phrases (https://vborg.vbsupport.ru/showpost.php?p=2071839&postcount=398), added reputation points as a 'currency', found and fixed bug disaplying vCash balance in postbit.

That was fast, wow! Thank you, works great with the rep points.

Asterix_ita
07-26-2010, 04:30 AM
Thanks now everything is translated

dartho
07-26-2010, 04:55 AM
Typo on teh last bit there, Asterix. I'll try bagain:


Just had a thought on the strange error. While you are editing the vbookie_main template, search for
{vb:raw pagenav}
</form>

and replace with

</form>
{vb:raw pagenav}


See if that helps?

Asterix_ita
07-26-2010, 05:49 AM
thanks problem solved

dartho
07-26-2010, 06:16 AM
excellent

anabolicsociety
07-26-2010, 11:05 PM
Sorry if this has already been posted, but I upgraded to 4.0.5(vbullentin) and haven't had any issues except one. vCash currency is no longer in the postbit. Any ideas on how to correct this?

anabolicsociety
07-26-2010, 11:08 PM
Nevermind, found it on page 26, thanks.

dartho
07-27-2010, 12:26 AM
Upgrading to the latest version of vBookie would fix this also

TitanJeff
07-27-2010, 11:53 AM
Checking through the pages here but can't find whether or not this might work for 3.8.6.

Anyone? Thanks.

DS MrSinister
07-27-2010, 12:05 PM
No it will not work sir. it for vb4.

download 3.5 version https://vborg.vbsupport.ru/showthread.php?t=94128 and click link below and make the fixes to make it work on 3.8.6

https://vborg.vbsupport.ru/showpost.php?p=1910760&postcount=2291

doobiefillin
08-01-2010, 04:16 PM
I'm having a problem where when i click on the vBookie icon in my toolbar the vbookie page that shows up shrinks all my text on the screen. Not sure how else to explain it other than it looks like it's own CSS might be interfering with the CSS of the site and causing the whole site to change font sizes when it pops up.

dartho
08-01-2010, 10:00 PM
Can you link me up?

Robbed
08-02-2010, 12:43 AM
Been working with style creators on the same issue. If a style uses additional.css it doesn't display right with a few addons

Fix:

Since version 4.0.1, there has been an additional template variable call (to grab additional.css) in the HEAD.

Please add the following:

{vb:raw headinclude_bottom}

Before </head> in your template and you're all set.

dartho
08-02-2010, 02:19 AM
Thanks for the info - I'll sort it in the next version + add comment in first post.

doobiefillin
08-02-2010, 02:32 AM
Can you link me up?

http://www.orangeballrally.com/forums/

it's wierd. thanks for helping

doobiefillin
08-02-2010, 02:37 AM
Been working with style creators on the same issue. If a style uses additional.css it doesn't display right with a few addons

Fix:

Since version 4.0.1, there has been an additional template variable call (to grab additional.css) in the HEAD.

Please add the following:

{vb:raw headinclude_bottom}

Before </head> in your template and you're all set.

i found the </head> tag in the page template. I added that piece of code right before the tag and it didn't change the problem :S actually the piece of code was already there originally before I even modded it but i posted it again with no change.

thanks though.

<head>
{vb:raw headinclude}
<title>{vb:raw pagetitle}</title>
<vb:each from="head_views" value="head_view">{vb:raw head_view}</vb:each>
{vb:raw headinclude_bottom}
</head>

Robbed
08-02-2010, 04:10 AM
what template is that from?

edit...

not the actual page template.

the page template for the addon, so it would be vbookie template

dartho
08-02-2010, 07:37 AM
http://www.orangeballrally.com/forums/

it's wierd. thanks for helping

I tried, but:

"An error has occurred Guest. The Admin does not allow forum visitation behind proxy servers."

doobiefillin
08-02-2010, 01:17 PM
ahhhhhhhhhh ;) i disable it. click on The Sportbook up on top.

i just fixed it using the line that Robbed posted. worked like a charm!

Phalynx
08-03-2010, 01:31 PM
You can now use also vBExperience as a cash system.

If you have already vBExperience installed, you just need the plugin for it. Download vBExperience401_20100803.zip and install ZIP\extras\Addons\vBookie.xml as a product. After that choose "Custom" as your "Cash/Points System".

paulvev
08-03-2010, 02:14 PM
Ive installed vbookie but on the vbookie.php page (which loads up ok), i dont see any way of creating a new event. I have set my administrator rights in the permissions, but nothing is showing up allowing me to create a new event?

Update: Doh! Got it now. Just read start of this thread.

dartho
08-03-2010, 09:12 PM
You can now use also vBExperience as a cash system.

If you have already vBExperience installed, you just need the plugin for it. Download vBExperience401_20100803.zip and install ZIP\extras\Addons\vBookie.xml as a product. After that choose "Custom" as your "Cash/Points System".

Cool! Updated on Post #2

FReeSTER
08-07-2010, 06:34 PM
ok, let me get stupit for a bit, lol

How in the world you make a new betting event? I have looked every where and no clue where to start

FReeSTER
08-07-2010, 06:53 PM
Honestly I can find anything that give options to add events. Im blind sorry but I am
Any input will appreciate

FReeSTER
08-07-2010, 06:53 PM
Ive installed vbookie but on the vbookie.php page (which loads up ok), i dont see any way of creating a new event. I have set my administrator rights in the permissions, but nothing is showing up allowing me to create a new event?

Update: Doh! Got it now. Just read start of this thread.

hmmmmm I did read everything but I dont get it
can you explain what you did

dartho
08-07-2010, 09:06 PM
When you create a new thread, you can choose to add a vBookie event similar to how you create a poll.

FReeSTER
08-08-2010, 02:23 AM
When you create a new thread, you can choose to add a vBookie event similar to how you create a poll.

thank you mate very much, it helped

TitanJeff
08-13-2010, 11:51 AM
Anyone recognize the following error?

"Deprecated: Assigning the return value of new by reference is deprecated in /home/xxxxx/public_html/xxxxx/includes/init.php on line 55"

And it repeats on a number of other lines. Then it ends with...

"Deprecated: Assigning the return value of new by reference is deprecated in /home/xxxx/public_html/xxxx/includes/class_core.php on line 2552

dartho
08-13-2010, 10:49 PM
when/where do you get these errors? Also, what versions of vBookie, PHP and vBulletin. You did not download vBookie from here, so I can not see the version

TitanJeff
08-13-2010, 10:59 PM
This was the older vBookie version. It was an issue where I had to recompile apache and php and all went back to normal.

Krusty1231
08-15-2010, 07:36 PM
Nice - thank you for this.

TitanJeff
08-16-2010, 12:59 PM
Quick question:

If a player bets $50 on a game, is that $50 removed from their account at the time of the bet or after it is settled? Reason I ask is I set the odds for a game at 1:1 and the stats say that I won $50.

What I am wanting is for someone to win $50 if they bet $50.

dartho
08-16-2010, 09:58 PM
if a player bets $50, taht $50 is removed immediately.

if the odds are 1:1, and the player wins, his original stake of $50 is returned, plus they get $50 in winnnings

razorflowers
08-20-2010, 08:07 PM
A bookie doesn't work like that :)

Stake * odds = winnings return, not stake + (stake*odds) = winning return

I use the vbexperience plugin and the stake is always count x2, as i mention, for a winning bet.

For example :

A member has 13 points for participation
He makes a winning bet : 8 points @ 4.00 = 32 points and another loosing one 2 points @ 2.00

Why this member has a total of 42 points ?

dartho
08-20-2010, 09:18 PM
Yes - a bookie does work like that. You get you stake back if you win + returns. You lose your stake if you lose.

By your logic, if the odds are 1:2 and the user makes a 100 stake and wins, he will only get back 50 meaning he actually loses 50

fly
08-20-2010, 09:25 PM
Technically it's missing the vig. Most bookies charge one...

razorflowers
08-20-2010, 09:54 PM
Yes - a bookie does work like that. You get you stake back if you win + returns. You lose your stake if you lose.

By your logic, if the odds are 1:2 and the user makes a 100 stake and wins, he will only get back 50 meaning he actually loses 50

When you bet on a real bookie, you will have a 150 bankroll after this bet, it's the logic yes, not stake + (stake*odds).

I think the problem comes with the fact vbexperience and vbookie work separately.
On the vbexperience ranking page, we have a total points column (for vbexperience) and a various points column (for vbookie)
For a winning bet, stake is refunded in the vbexprience column and (stake*odds) is added in the various points column.

I'm the webmaster of a community betting website in france and my members dont understand why vbookie works differently than a real bookie.

Hope you will understand my poor english ^^

dartho
08-20-2010, 10:11 PM
Yes - I am having trouble working out what you are trying to tell me.

vbookie: you bet 100, if you win, your 100 is returned and you win stake * odds. Where is the problem in this?

I do not use vbexperience and do not know what you mean by ranking page. Is it vbexperience that you are having issues with?

I could add in a vigorish I guess if there was a call for it...

razorflowers
08-20-2010, 10:21 PM
vbookie: you bet 100, if you win, your 100 is returned and you win stake * odds. Where is the problem in this?



That's the problem in a real bookie you can't win your stake + (stake*odds) on a bet.

You bet 100 at 1/2 you cant have 250 in your bankroll, only 150..

Its (stake*odds) - 1 = your winnings or (stake*odds)-stake

Is it better ?

Maybe you are right when you say its a possible problem with vbexperience, cause the amount is right with vbookie, but stake is refunded always on vbexperience too...

dartho
08-20-2010, 11:57 PM
Yes - sounds like a vbexperience issue.

DS MrSinister
08-21-2010, 01:30 AM
dartho

Idea for your next release sir..

something like a Separate Sticky and Normal mod options. but entitled it Open and Closed or completed events.

razorflowers
08-21-2010, 07:25 AM
Yes - sounds like a vbexperience issue.

In vbookie pack :

I want to remove the refunded stake for a winning bet. My problem is just for winning bet. Can i change a line code in php files, where ?

I mean put that : (stake*odds)-stake = winning bet

Thanks for your help and patience :)

dartho
08-21-2010, 08:28 AM
Untested, but you could probably comment out line 1110 in vbookie.php which should read:

$amount_to_pay = $amount_won + $bet['bet_amount_placed'];// stake back

razorflowers
08-21-2010, 03:50 PM
Untested, but you could probably comment out line 1110 in vbookie.php which should read:

$amount_to_pay = $amount_won + $bet['bet_amount_placed'];// stake back

Thanks a lot man, now it's ok :)

Krusty1231
08-21-2010, 07:13 PM
So to make sure I have my stakes right.

1 to 1 odds pays you your stake back plus your bet. Example - I bet 100 - I win 100 so I get 200 back right?

2 to 1 odds pays you your stake back plus your bet. Example - I bet 100 - I win 200 so I get 300 back right?

Or am I wrong?

Thanks for any reply.

dartho
08-21-2010, 09:18 PM
@Krusty - correct.

Edrondol
08-21-2010, 10:39 PM
1 to 1 means you double your money? Huh?

I have to agree with razorflowers - that's wrong. 1 to 1 means you bet 100 and win you get your 100 back and no more. 2 to 1 means that you bet 100 you get 200 if you win. Total.

Is there any way other than odds manipulation that we can get this corrected?

FReeSTER
08-22-2010, 03:39 AM
Im sorry to ask this dumb question but Im new to betting. lol

How do you make the odds?
Because I settled to 7/10 and is only paying .70 of a dollar

How can I make it for the winners to make double of what they bet.

Thanks

dartho
08-22-2010, 05:02 AM
1 to 1 means you double your money? Huh?

I have to agree with razorflowers - that's wrong. 1 to 1 means you bet 100 and win you get your 100 back and no more. 2 to 1 means that you bet 100 you get 200 if you win. Total.

Is there any way other than odds manipulation that we can get this corrected?

This method is correct, you're just thinking about it all wrong. The original 100 stake is always yours unless you lose the bet, it is simply being held as assurance that you can meets you bets. You are risking 100 in order to possibly win 100.

The way odds work - think of 1 to 1 as meaning in order win 1, you must risk 1. 2 to 1 measn in oder to win 2, you must risk 2.

The bet you had at 7 to 10 meant in order to win 7, you must risk 10, that is why it paid 0.7 on 1.

For double, you would use odds of 2 to 1 - say for the toss of a coin.

Is this clear?

Krusty1231
08-22-2010, 06:39 AM
Is this clear?

Perfectly. Thank you for the reply. Here is a screen of what I did - I wanted something simple that non betters could easily play along.

dartho
08-22-2010, 07:30 AM
Good stuff . Although you're probably being generous with your odds, but we're not talking real cash here anyway.

When I put books up, I often check with real online bookies for a guide to what odds to use

FReeSTER
08-22-2010, 03:44 PM
This method is correct, you're just thinking about it all wrong. The original 100 stake is always yours unless you lose the bet, it is simply being held as assurance that you can meets you bets. You are risking 100 in order to possibly win 100.

The way odds work - think of 1 to 1 as meaning in order win 1, you must risk 1. 2 to 1 measn in oder to win 2, you must risk 2.

The bet you had at 7 to 10 meant in order to win 7, you must risk 10, that is why it paid 0.7 on 1.

For double, you would use odds of 2 to 1 - say for the toss of a coin.

Is this clear?
Yes my friend and thank you very much, this mod is great and is bringing lots of fun to my board.

Thanks you,

mcyates
08-23-2010, 02:25 PM
Hello,

Is there a way to show the top 5 or top 10 vcash earners in a block or as a list on a custom vbulletin page!!

Thanks in advance.

dartho
08-24-2010, 05:14 AM
something like:

$result = $vbulletin->db->query_read("SELECT username AS user, vbookie_cash AS cash FROM " . TABLE_PREFIX . "user ORDER BY cash DESC LIMIT 5");
if ($result) while ($bit = $db->fetch_array($result))
{
echo $bit['user'] ." has " $bit['cash'] . " vCash";
}


should do it. Just change the 5 to a 10 in Limit for more

Edrondol
08-24-2010, 05:21 PM
This method is correct, you're just thinking about it all wrong. The original 100 stake is always yours unless you lose the bet, it is simply being held as assurance that you can meets you bets. You are risking 100 in order to possibly win 100.

The way odds work - think of 1 to 1 as meaning in order win 1, you must risk 1. 2 to 1 measn in oder to win 2, you must risk 2.

The bet you had at 7 to 10 meant in order to win 7, you must risk 10, that is why it paid 0.7 on 1.

For double, you would use odds of 2 to 1 - say for the toss of a coin.

Is this clear?

I understood what you said the first time but didn't think that was right. So I went to a bunch of different bookie sites...and man am I wrong! If you bet $100 on 3-1 odds and you win you get back $400 ($300 in winnings plus your original stake of $100). I've been betting for YEARS and have never gotten this right!

So thanks for the clarification, for putting up with my utter wrongness and for a great mod!

bruneiguru
08-30-2010, 12:25 PM
Hi there, I'm trying to upload the upload folder to my forum but am getting the following message :

XML Error: not well-formed (invalid token) at Line 1

Any ideas? I'm a complete noob :) Also, its vb 4.04. Thanks

dartho
08-30-2010, 01:09 PM
Step 3. in teh instructions should be done ia teh Product Manager (AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product] -> Browse to the XML, and then click 'Import' button

bruneiguru
08-31-2010, 05:26 AM
OK thanks I'll give it a try now

bruneiguru
08-31-2010, 06:03 AM
OK I uploaded the files to my server home directory and extracted the files. Then did the xml through vb cpanel as described.

The button is now showing on the forum tabs but is a broken link. What have I missed please? The link to site is www.bruneiguru.com any help much appreciated

dartho
08-31-2010, 07:08 AM
Where did you upload vbookie.php to? If you uploaded teh zip to your home, chances are teh files are in your home directory and not your web directory.

Try unzipping to a temp local directory, and then upload to the root of your web space (httpdocs / public_html or some such thing) - same place you uploaded your vBulletin files to

bruneiguru
08-31-2010, 09:21 AM
Still no good :( Re-uploaded all files to /public_html

The folders are showing and the plugins are all active in the vb admin panel but the link is dead. I've gone to general options and vbookie is active there too. Only thing I can't find is user permissions to edit.

Completely stuck now. I must be missing some simple step

dartho
08-31-2010, 11:03 AM
Hi Bruneiguru. You are not meant to upload teh "upload" folder itself, you should upload the contents of it to /public_html (http://bruneiguru.com/upload/vbookie.php (http://bruneiguru.com/upload/vbookie.php) exists on your server, but it should be http://bruneiguru.com/upload/vbookie.php)

bruneiguru
08-31-2010, 12:22 PM
Hi dartho, thanks very much for your help today. Been a great help. I think its a step beyond me for the time being. I'm with urljet so I'm just firing a support ticket off to them to see if they can rejig the files. I think you're spot-on though, I did just wholesale upload the complete file.

Thanks again for your help, Its much appreciated. Will let you know the outcome

Selene
09-06-2010, 01:09 AM
awesome! installed, fav and nominated! thankyou very much.

Selene
09-06-2010, 02:02 AM
Fixed, I downloaded 4.0.6 instead of 4.0.9

Now few questions.

1) I know that by default each member will have 500 of vcash. So it is up to them how they use the 500. Is that the only way they can play?

I mean lets say I have a forum with 30,000 members and I open a vbookie event.

Now lets say 10 of those members use their max vcash which is 500.

And next day they want to place another new bet, but they will be on 0?

How do I tackle this. If they are on 0 and I manually give them vcash from settings, will it not be unfair for the other members?.

NobbyTSL
09-06-2010, 07:36 AM
Fixed, I downloaded 4.0.6 instead of 4.0.9

Now few questions.

1) I know that by default each member will have 500 of vcash. So it is up to them how they use the 500. Is that the only way they can play?

I mean lets say I have a forum with 30,000 members and I open a vbookie event.

Now lets say 10 of those members use their max vcash which is 500.

And next day they want to place another new bet, but they will be on 0?

How do I tackle this. If they are on 0 and I manually give them vcash from settings, will it not be unfair for the other members?.

You have an option of "Give to the poor" which means that whenever a new event is created anyone with 0 will get 'X' amount given to them.

Or you could install a hack like 'ucash' where members can earn points per post etc... To 'spend' in the vbookie.

dartho
09-06-2010, 09:22 AM
What Noddy said.

Regs
09-06-2010, 07:03 PM
Another option is to reset everyone each month or something.

For my uses, I give everyone $1000 to start with each month (after recording the top 10 for the previous month - hint Dartho to code in a monthly top earners feature :) ).

I also set a max bet limit of $500 so people can't blow it all in one go (another hint to Dartho so I don't have to keep hacking this in :) ) - search the old vbookie thread for "max limit" and you'll find the necessary hack to do this.

Cheers,

Regs.

neverstop
09-09-2010, 10:38 PM
I am using vbcredits as currency for this. When I place bets the credits arent changed for me (admin) but it seems to be working for everyone else. Any thoughts dartho? Cool mod btw

neverstop
09-09-2010, 11:41 PM
Also this is probably a dumb question but this:

5. Set usergroup permissions


I dont see any usergroup permission settings other than who can post events in the vbookie settings page. Are there more permissions?

dartho
09-09-2010, 11:48 PM
Yep - in settings is where you can set who can create events, edit events and bet on events

neverstop
09-09-2010, 11:52 PM
ok thanks,

any idea why my credits arent going down despite the fact i have bet on like 15 events? they seem to be decreasing for others who are making the same bets.

dartho
09-10-2010, 12:01 AM
mmm... No... Are you using the vbcredits integration in vbookie, or vbookies integration in vbcredits?

dartho
09-10-2010, 12:02 AM
Actually - just had a thought. Does the same happen if you bet on an event created by someone else, or only on your own events. Also - when you settle an event that you created - do you get the money?

I know I changed vBookie for myself so that funds went into, and came out of the balance of teh person creating the event. Perhaps I inadvertently released this version!

neverstop
09-10-2010, 12:12 AM
I create all of the events so that is answer to question 1.

I havent settled any events yet, i will create a dummy event and settle it and see what happens

(btw, im not sure what you mean in post #488)

neverstop
09-10-2010, 12:16 AM
ugh so now i just created a dummy event and when i bet on it my credits were subtracted, maybe i am going crazy.

neverstop
09-10-2010, 12:22 AM
OK I am almost positive my credits werent being subtracted earlier, I wouldnt have made the thread. But, everything seems to be working now, I guess I will have to report back if it happens to me again. Thanks for the prompt reply dartho

dartho
09-10-2010, 12:42 AM
Glad it's all working - what ever the reason

neverstop
09-12-2010, 06:31 PM
Suggestion for future version:

When viewing a gthread that you have already placed a bet, maybe have somewhere you can see what you have bet on (and how much)? Maybe how like in a vb poll it italicizes the option you voted for?

again, this mod is fantastic

Selene
09-12-2010, 06:43 PM
How can I add a money or a small dollar gif , an image next to where it says vCASH: amount in the postbit.

I want to add a little money currency gif.

Can someone tell me which template to edit and which part exactly to place the image.

dartho
09-12-2010, 09:30 PM
You need to edit the vBookie: Add Cash to Postbit plugin and place your image code immediately after <dd>

Selene
09-12-2010, 11:29 PM
dartho one thing I dont like is that when I have to make new betting events, I have to give the odd in fractions, can I now give it in decimals format like 1.5 or 0.5 instead of doing 4/2 1/2 etc etc.

mjp1111
09-15-2010, 01:20 AM
Hi, would it be possible to add a feature which allows regular users to post betting events? The winnings would come from their personal points (they would need to choose a maximum loss limit from their points and have those points "locked up" until the event is over).

dartho
09-15-2010, 03:48 AM
@Selene - I'll look into that at some time
@mjp111 - Unlikely to implement. I have in the past changed my install so that funds come from personal points, but did not look into restricting bets - I ultimately allow 'Book Makers' to go negative. I could dig up instructions on how to do this.

Selene
09-15-2010, 05:35 AM
dartho on main page of /vbookie.php

I have one bookie event under "item" column.

Thing is one of my mods deleted and messed that thread up. Now when I click on that thread event it gives URL error.

How can I get rid of that thread.

http://fastuploader.com/images/sss.jpg

Check that barca thread, basically that thread is giving invalid URL. gives me "http://*******.com/forums/showthread.php?t=".

Cannot get rid of it!