PDA

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


Pages : [1] 2 3 4 5

dartho
01-18-2010, 10:00 PM
Please See the first post for a F.A.Q.
I will endevour to link to useful posts within this thread there as I spot them. You should check there before posting issues etc.
This is a port of vBookie for vBulletin 3.5 (https://vborg.vbsupport.ru/showthread.php?t=94128) by Andreas which was a port of vBookie - vBulletin Betting Hack (https://vborg.vbsupport.ru/showthread.php?t=65844) by tjdrico. Permission was given by tjdrico to port this.

vBookie is a 'bookmakers' or betting extension to vBulletin. It enables authorised members to post Events and Outcomes that forum members can bet on. Each Outcome has its own set of odds, and odds can be modified through the life of an Event (bets that are placed are stored with the prevailing odds, so even if the odds change, your users are paid at the correct rate).

Once the results are known, Events can be settled and forums members awarded their winnings.

vBookie uses its own vCash by default, but this has no more use than as 'bragging rights'.

Although vBookie does not have any built-in facility to integrate with any other store hacks, it's a very simple job to hack vBookie itself to integrate it with any store/points system you care to use.

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.
8. Check out Dismounted's Activity Stream addon (https://vborg.vbsupport.ru/showthread.php?t=266812)
9. Click Mark As Installed and Rate

Upgrade instructions
same as above, but undo edits made in point 4 if upgrading from pre 4.0.7! (see readme.txt for more info)

Version Control
4.0.0 (19 Jan '10 ) - Initial Release
4.0.1 (21 Jan '10 ) - Removed some junk from templates, added enable private bets option
4.0.2 (24 Jan '10 ) - fixed options for hiding vcash, added some more stuff to teh settings screen, added some vCash utilities (reset balances, give to everyone, set default balance) and fixed some template bugs.
4.0.3 (25 Jan '10) - fixed bugs I introduced in 4.0.2 :o see post #109
4.0.4 (25 Jan '10) - fixed time zone not being saved, can delete events, + plus a couple other things.
4.0.5 (Australia Day '10) - no longer uses bitfields for permissions, fixed vCash display, fixed stats page error
4.0.6 (27 Jan '10) - fixed TABLE PREFIX issue in vBookie stats page
4.0.7 (23 Mar '10) - 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.
4.0.8 (31 May '10) - hopefully fixed bug with updating number of outcomes when editing events. To upgrade from previous version (4.0.7) just overwrite vbookie.php
4.0.9 (25 July 10) - Added ability to select Reputation points for currency. Phrased had coded text. Fixed bug in displaying vCash balance in postbit.
4.2.0 (21 August 12) Added in navigation manager Code for vBulletin 4.2, disabled old nav plugin
4.2.1 (24 January 13) Added missing template, fixed Nav code, fixed some small bugs

dartho
01-18-2010, 10:03 PM
F.A.Q.

Q. Is there a release for 4.2?
A. Not yet, but this post (https://vborg.vbsupport.ru/showthread.php?p=2331967#post2331967) tells you how to get it mostly working:

Q. How can I use vbexperience with vBookie?
A. See this post: https://vborg.vbsupport.ru/showpost.php?p=2078574&postcount=435

Q. vBookie page doesn;t display quite right (vBookie 4.0.9 or earlier)
A. Check this post: https://vborg.vbsupport.ru/showthread.php?p=2077906#post2077906
Q. How can I limit the amount a member may bet?
A. Check this post: https://vborg.vbsupport.ru/showpost.php?p=2204455&postcount=678

Will be resolved in next release.

Q. How do I clear all past vBookie events?
A. See: https://vborg.vbsupport.ru/showthread.php?p=1959987#post1959987

Switch3130
01-18-2010, 10:06 PM
Wow bro awesome work.

Edit: How can you edit how is displays in postbit?

Magz
01-18-2010, 10:13 PM
Wow,

Did not expect to see this ported....

Thank you

TimberFloorAu
01-18-2010, 10:15 PM
Bout Bloody TIME ;) goodonya mate.

Can't wait :up:

Gnoll
01-18-2010, 10:21 PM
Tagged for future use :) , looks awsome

Switch3130
01-18-2010, 10:22 PM
Every time you change the user group settings they go right back to 'No'

how do we go about fixing this?

dartho
01-18-2010, 10:29 PM
rebuild bitfields I think

..../admincp/index.php?do=buildbitfields

bobster65
01-18-2010, 10:29 PM
Every time you change the user group settings they go right back to 'No'

how do we go about fixing this?

rebuild bit fields.... append this to your forums domain ...

/admincp/index.php?do=buildbitfields

Switch3130
01-18-2010, 10:33 PM
Yeah I ended up finding that in the other thread. Thanks guys for the quick help.

GreigM
01-18-2010, 10:33 PM
Awesome to see this ported :-)

dartho
01-18-2010, 10:34 PM
Edit: How can you edit how is displays in postbit?

Edit the vBookie: Add Cash to Postbit plugin

Switch3130
01-18-2010, 10:38 PM
Edit the vBookie: Add Cash to Postbit plugin

Thanks. :up:

bart6767
01-18-2010, 10:41 PM
Thanks .

Zaiaku
01-18-2010, 10:42 PM
Wow,

Did not expect to see this ported....

Thank you
I was thinking the exact samething

Trip3151
01-18-2010, 10:42 PM
Great MOD tagged this :)

ti07shadow
01-19-2010, 06:02 AM
There is a template issue in alignment.
the private betting check mark is on the far left while the rest is centered.

Delilahs
01-19-2010, 06:39 AM
Same problem as the last version, where it won't save the permissions on the usergroups as to who can; post, edit or bet

GreigM
01-19-2010, 06:46 AM
read the 2nd post how to fix

Delilahs
01-19-2010, 06:59 AM
Thanks for the heads up GreigM ;)

all working

jonty
01-19-2010, 07:04 AM
fantastic <clicks install> :up:

GreigM
01-19-2010, 07:22 AM
How can we change the starting value for vcash? I am sure it was a DB query on the old mod would it still be the same?

Also on the main forum display a vbookie thread displays the poll icon, thread view shows the vbookie icon, would that be able to be changed?

Also when a bet is settled it does not seem to give the details of who won etc

http://i68.photobucket.com/albums/i37/Ferrari27/39c6cdb7.jpg

other than that all seems great, so nice to see this mod back, thanks :-)

dartho
01-19-2010, 07:36 AM
There is a template issue in alignment.
the private betting check mark is on the far left while the rest is centered.

As an initial release, there are bound to be a few things like this. I'll look into this.

How can we change the starting value for vcash? I am sure it was a DB query on the old mod would it still be the same?
The DB query would be the same, as the DB structure is the same. If you find it before I get around to looking, post it here and I'll link to it in the first post and try and implement at some time.

Also on the main forum display a vbookie thread displays the poll icon, thread view shows the vbookie icon, would that be able to be changed?
I see that - I'll look into it. :up:

I've notice one or two other "small things" which I'll fix up soon also.

dartho
01-19-2010, 07:41 AM
actually - the small things are a little obtrusive, although they won;t affect any data - just look odd to your users, I'll fix up tonight (next few hours) and get a new release out.

If you want to manually get rid of the most obvious one in the mean time, edit the vbookie_eventresults_table template, scroll to the end and you'll see a table with data such as "Hello World" etc. Delete that whole table block :o

To see who won, click on the winning "Outcome" in the thread

GreigM
01-19-2010, 07:48 AM
For people wondering how to reset all user's vCash to 500, you need to execute this SQL query:

UPDATE user SET vbookie_cash=500;

If you totally want to clear all past events as well, execute these SQL queries:

DELETE FROM vbookie_news;
DELETE FROM vbookie_bets_placed;
DELETE FROM vbookie_item_options;
DELETE FROM vbookie_items;
DELETE FROM vbookie_groups;

Run these at your own risk...you may want to backup your DB first before running them. I run these once each year and have not had any problems with them.

from the old thread, just ran it on my install and it set everyone to 1000 which is what I set the vcash too :)

edit: actually this will work for members currently registered but anyone new would still start with 500, would it be possible to add a admincp option to set the default vcash value? I guess the 500 default is set in the xml import, maybe we could just change it in there?

TimberFloorAu
01-19-2010, 08:35 AM
Note:

The postbit icon isnt displaying for us.

Also wish to change title of navbar menu name from vbookie to The Bookies

TimberFloorAu
01-19-2010, 08:49 AM
Okies Icon is displaying lol ( thought it would be in the postbit ...duhhh)

Ste

btw love the roman numerals postcount on twf

dartho
01-19-2010, 08:57 AM
Also wish to change title of navbar menu name from vbookie to The Bookies


Edit the vbookie_navbar_link template and change the 2 occurences (currently on 3rd line and 2nd last lines) of {vb:rawphrase vbookie} with what you want...

Other wise you can just change teh phrase "vbookie" to be what you want and this will change all occurences



btw love the roman numerals postcount on twf


see here: https://vborg.vbsupport.ru/showthread.php?t=222213 Should work under 4.0 also :up:

dartho
01-19-2010, 09:00 AM
edit: actually this will work for members currently registered but anyone new would still start with 500, would it be possible to add a admincp option to set the default vcash value? I guess the 500 default is set in the xml import, maybe we could just change it in there?

You could edit your database with phpmyadmin and set teh default value for user.vbookie_cash then all new users will start with the default

TimberFloorAu
01-19-2010, 09:35 AM
Changed navbar link plugin to:


if (defined('The Bookies') )
{
$vbulletin->options['selectednavtab'] = 'The Bookies';
}
$template_hook['navtab_middle'] .= vB_Template::create('vbookie_navbar_link')->render();


Didnt change anything. Will look at phrases

dartho
01-19-2010, 09:39 AM
Not plugin changes, that messes up your Navbar links!

Template changes!

TimberFloorAu
01-19-2010, 10:04 AM
k so changed it to this:


<vb:if condition="$vboptions['selectednavtab'] == 'The Bookies'">
<li class="selected">
<a class="navtab" href="vbookie.php{vb:raw session.sessionurl_q}">{vb:rawphrase vbookie}</a>
<ul class="floatcontainer">
<li><a href="vbookie.php{vb:raw session.sessionurl_q}">vBookie Home</a></li>
<li><a href="vbookie.php?{vb:raw session.sessionurl}do=bets">Your Bets</a></li>
<li><a href="vbookie.php?{vb:raw session.sessionurl}do=stats">Bet Statistics</a></li>
<li class="popupmenu">
<a href="javascript://" class="popupctrl">Books</a>
<ul class="popupbody popuphover">
<li><a href="vbookie.php?{vb:raw session.sessionurl}type=OPEN">Open Books</a></li>
<li><a href="vbookie.php?{vb:raw session.sessionurl}type=CLOSED">Closed Books</a></li>
<li><a href="vbookie.php?{vb:raw session.sessionurl}type=SETTLED">Settled Books</a></li>
<li><a href="vbookie.php?{vb:raw session.sessionurl}type=ABANDONED">Abandoned Books</a></li>
</ul>
</li>
</ul>
</li>
<vb:else />
<li><a class="navtab" href="vbookie.php{vb:raw session.sessionurl_q}">{vb:rawphrase vbookie}</a></li>
</vb:if>


No difference

dartho
01-19-2010, 10:24 AM
I'll forgive you as you're English, and you're in Queensland ;)

As stated back a few posts, change {vb:rawphrase vbookie} on the 3rd and the 2nd last lines of that template - they are unchanged in the code you pasted ...

Revert the template, try again :)

shzad1
01-19-2010, 11:01 AM
bro pls teach me how 2 use vbookie? any tutorial i dunno how 2 add new bets

GreigM
01-19-2010, 11:09 AM
Create a new thread and tick the box for, Yes, post a vBookie Event with this thread, this will open the options for your bet, and odds etc and is well documented in that page :)

jonty
01-19-2010, 11:32 AM
from the old thread, just ran it on my install and it set everyone to 1000 which is what I set the vcash too :)

edit: actually this will work for members currently registered but anyone new would still start with 500, would it be possible to add a admincp option to set the default vcash value? I guess the 500 default is set in the xml import, maybe we could just change it in there?

ALTER TABLE user CHANGE COLUMN vbookie_cash vbookie_cash BIGINT(20) UNSIGNED NULL DEFAULT 1000 ;

Changes the default value to '1000' for new members (if you've already imported the product)

TimberFloorAu
01-19-2010, 11:45 AM
I'll forgive you as you're English, and you're in Queensland ;)

As stated back a few posts, change {vb:rawphrase vbookie} on the 3rd and the 2nd last lines of that template - they are unchanged in the code you pasted ...

Revert the template, try again :)

Without sounding like a Banana Bender could you post the code to change the NAVBAR replacement to "The Bookies"

Simple, Easy ;) thanks

dartho
01-19-2010, 11:54 AM
Without sounding like a Banana Bender could you post the code to change the NAVBAR replacement to "The Bookies"

Simple, Easy ;) thanks

Here's the code you wanted:
<vb:if condition="$vboptions['selectednavtab'] == 'vbookie'">
<li class="selected">
<a class="navtab" href="vbookie.php{vb:raw session.sessionurl_q}">The Bookies</a>
<ul class="floatcontainer">
<li><a href="vbookie.php{vb:raw session.sessionurl_q}">vBookie Home</a></li>
<li><a href="vbookie.php?{vb:raw session.sessionurl}do=bets">Your Bets</a></li>
<li><a href="vbookie.php?{vb:raw session.sessionurl}do=stats">Bet Statistics</a></li>
<li class="popupmenu">
<a href="javascript://" class="popupctrl">Books</a>
<ul class="popupbody popuphover">
<li><a href="vbookie.php?{vb:raw session.sessionurl}type=OPEN">Open Books</a></li>
<li><a href="vbookie.php?{vb:raw session.sessionurl}type=CLOSED">Closed Books</a></li>
<li><a href="vbookie.php?{vb:raw session.sessionurl}type=SETTLED">Settled Books</a></li>
<li><a href="vbookie.php?{vb:raw session.sessionurl}type=ABANDONED">Abandoned Books</a></li>
</ul>
</li>
</ul>
</li>
<vb:else />
<li><a class="navtab" href="vbookie.php{vb:raw session.sessionurl_q}">The Bookies</a></li>
</vb:if>

TimberFloorAu
01-19-2010, 12:03 PM
Actually no we havent removed it just Commented it out. I was playing with <!-- and -->

It will be reinstated mate, I NEVER remove copyright from other authors work

TimberFloorAu
01-19-2010, 12:17 PM
Reinstated, and all footer copyrights intact ( sorry was playing with target=_blank for your link

Many thanks for your code, all sorted now

ProFifaLeagues
01-19-2010, 02:39 PM
Working great and a simple install.Thanks

halkum
01-19-2010, 02:49 PM
Wow. Thanks!

GreigM
01-19-2010, 02:55 PM
ALTER TABLE user CHANGE COLUMN vbookie_cash vbookie_cash BIGINT(20) UNSIGNED NULL DEFAULT 1000 ;

Changes the default value to '1000' for new members (if you've already imported the product)

Thanks :)

ProFifaLeagues
01-19-2010, 03:31 PM
Are the vcash points only gained by winning bets??
or does this work like other cash systems and count posts etc towards amounts?
thanks

Magz
01-19-2010, 05:02 PM
Works just for the bets.

Use ucash, or the soon to be released vbcredits for vb4

cbehan
01-19-2010, 06:25 PM
dartho, you're my freaking hero. My board loves this mod and now can love it once we upgrade to vb4 too!

Love it.

Hornstar
01-20-2010, 06:26 AM
yeah nice work dartho! tagged for when I upgrade.

bandare
01-20-2010, 09:10 AM
When I used this a long time ago, it wasn't supported any more and there wasn't an easy way to reset everyone's money to a set amount. Is this or will this be possible in this version?

dartho
01-20-2010, 10:26 AM
I'll support as I can, see 1st post (F.A.Q.) for an easy way to reset peoples cash. I will likely add some admincp functions for doing things such as this.

badawidollah
01-20-2010, 11:29 AM
not work at VB4.0.1
installed but cant open events

www.nusantaraku.org

dartho
01-20-2010, 11:32 AM
what do you mean "Can't Open" events?

1. Have you followed the install instructions (particularly permissions)
2. Did you read teh F.A.Q. in post 1 (particularly the bit about rebuilding bitfields)
3. Now you can click install :)

bandare
01-20-2010, 11:47 AM
I'll support as I can, see 1st post (F.A.Q.) for an easy way to reset peoples cash. I will likely add some admincp functions for doing things such as this.

thanks very much...

badawidollah
01-20-2010, 01:01 PM
<a href="http://www.nusantaraku.org/forum/vbookie.php?type=OPEN" target="_blank">http://www.nusantaraku.org/forum/vbookie.php?type=OPEN</a>

installed
but cant click anything there

cbehan
01-20-2010, 01:44 PM
When I used this a long time ago, it wasn't supported any more and there wasn't an easy way to reset everyone's money to a set amount. Is this or will this be possible in this version?

It's pretty easy to run some php scripts to set/update money via mySQL.

I have some cron jobs resetting everyone to 1000 vbux every 6 months as well as giving everyone an allowance of 500 every week.

fly
01-20-2010, 02:02 PM
dartho is my new hero

bandare
01-20-2010, 02:04 PM
One thing that was annoying in the previous versions was the ability to make a private bet. Is there a way when setting up an event to have a tick box to allow private bets or not.?

GreigM
01-20-2010, 02:50 PM
You wish to stop private bets? no don't think there is such an option

bandare
01-20-2010, 05:10 PM
You wish to stop private bets? no don't think there is such an option

I know there isn't currently but I'd like a way for that not to be available.... I think it's good to see who votes for what, so public only, unless you tick to allow private :)

something for the future maybe...

TimberFloorAu
01-20-2010, 07:17 PM
http://www.nusantaraku.org/forum/vbookie.php?type=OPEN

installed
but cant click anything there

You need to add a BET on the system, those tabs are not tabs just tab headings.

If you cannot add a bet then usergroup permissions havent been set properly.

Quite frustrating, but well worth the 5 minutes it takes
( in my case : that is )

1.I set vbookie to be used in 3 forums
2.Then in usergroups i set which users could do what ( registered , admins mods and supermods ) each time having clicked save I rebuilt bitfields. ( easiest way to do that is...(see note 1 )
3. then in forum group permissions for each forum, and each usergroup I again set the permissions, and after clicking save on each one, I rebuilt bitfields. ( see note 1 )

Note 1.
Step 1
Open one window with admincp ( with forums link open ) Change permissions one step at a time, so click Administrators under a certain forum, change vbookie permissions, click save ) then move onto step 2

Step 2
Open another window tab ( and in notepad type this out. )

http://yourdomain.com/forum//admincp/index.php?do=buildbitfields
Changing the path to suit your domain. Highlight it, click CTRL+C then each time you have saved usergroup changes in STEP 1 , paste this link into the open tab, hit ENTER

Then go back to Step 1, and move to next usergroup. Repeat until you have done this for all usergroups, and all forum permissions.

STe

dartho
01-20-2010, 08:54 PM
4.0.1 released - Just cleaned up some "testing code" that was still in the templates and files and added a global option to allow/disallow Private Bets

bandare
01-20-2010, 10:08 PM
4.0.1 released - Just cleaned up some "testing code" that was still in the templates and files and added a global option to allow/disallow Private Bets

holy moses... that's fantastic... thankyou :)

dartho
01-20-2010, 10:53 PM
it was a very simple addition, so just slipped it in

badawidollah
01-21-2010, 02:32 AM
You need to add a BET on the system, those tabs are not tabs just tab headings.

If you cannot add a bet then usergroup permissions havent been set properly.

Quite frustrating, but well worth the 5 minutes it takes
( in my case : that is )

1.I set vbookie to be used in 3 forums
2.Then in usergroups i set which users could do what ( registered , admins mods and supermods ) each time having clicked save I rebuilt bitfields. ( easiest way to do that is...(see note 1 )
3. then in forum group permissions for each forum, and each usergroup I again set the permissions, and after clicking save on each one, I rebuilt bitfields. ( see note 1 )

Note 1.
Step 1
Open one window with admincp ( with forums link open ) Change permissions one step at a time, so click Administrators under a certain forum, change vbookie permissions, click save ) then move onto step 2

Step 2
Open another window tab ( and in notepad type this out. )

http://yourdomain.com/forum//admincp/index.php?do=buildbitfields
Changing the path to suit your domain. Highlight it, click CTRL+C then each time you have saved usergroup changes in STEP 1 , paste this link into the open tab, hit ENTER

Then go back to Step 1, and move to next usergroup. Repeat until you have done this for all usergroups, and all forum permissions.

STe

not work

TimberFloorAu
01-21-2010, 03:42 AM
not work

Thanks for the info !

GreigM
01-21-2010, 06:46 AM
create a new thread and tick the vbookie event box make sure the permissions are set correctly

GreigM
01-21-2010, 06:57 AM
I would like to manually add the vcash on the postbit, so I guess I would disable the postbit plugin, and then manually add the vcash command to the postbit template?

this is the plugin code

$template_hook[postbit_userinfo_right_after_posts] .= "<dt>".$vbphrase['vbookie_vcash']."</dt> <dd>".$post['vbookie_cash']."</dd>";

how would I call it manually in the postbit template, just use the .$post['vbookie_cash'] ?

Answering myself, but this seems to work fine for manually adding the vcash to the postbit

<dt>{$vbphrase[vbookie_vcash]}</dt> <dd>{$post[vbookie_cash]}</dd>

dartho
01-21-2010, 07:54 AM
putting the following code where you want
<dt>{vb:rawphrase vbookie_vcash}</dt><dd>{vb:raw post.vbookie_cash}</dd>

would probably me correct. Using things like $post[vbookie_cash] in templates is supposedly not the way to do it anymore...

GreigM
01-21-2010, 08:12 AM
Thanks works fine, thanks for the update as well :) great!

mandingo
01-21-2010, 12:23 PM
Although vBookie does not have any built-in facility to integrate with any other store hacks, it's a very simple job to hack vBookie itself to integrate it with any store/points system you care to use.
Can anyone point me in the right direction as to how to do this? Using uCash fyi

dcuellar
01-21-2010, 12:25 PM
Holy crap!!

My eyes MUST be deceiving me!!

THANK YOU SO MUCH!!

I just saw your post on the 3.5 thread and went crazy. You wouldn't happen to be taking suggestions for add-ons/features would you? There's one in particular I want. PM me if you interested. I am willing to pay.

dartho
01-21-2010, 08:05 PM
Can anyone point me in the right direction as to how to do this? Using uCash fyi

Try setting the "Cash/Points System" option in Admincp->Settings->Options->vBookie Settings to "uCash"

@dcuellar - I'll always listen to (well, read) suggestions, can't promise any more though

bart6767
01-21-2010, 08:11 PM
Is there any way of adding a block to the CMS that shows all Vbookie games ?

dcuellar
01-21-2010, 08:56 PM
I just want one on one bets. I want to allow my members to challenge others personally.

For example. dartho, I bet you 50K that the Orlando Magic will lose against the Cleveland Cavaliers. Challenges can be sent through PM's, e-mails, etc.

iguano
01-21-2010, 09:49 PM
I have installed uCash and turn in vbookie option from vcash to ucash, but in the posts i see again the vcash :o

dartho
01-21-2010, 10:07 PM
Sorry - my bad. You should be set the option to uCash in vBookie settings and disable the vBookie: Add Cash to Postbit plugin.

When bets are placed, is it being deducted ffrom uCash balances?

dartho
01-21-2010, 10:12 PM
I'll also look more at uCash (as the only vb4.0 points syetm sop far) integration at the next release to try and make easy to do

mandingo
01-21-2010, 10:38 PM
Sorry - my bad. You should be set the option to uCash in vBookie settings and disable the vBookie: Add Cash to Postbit plugin.

When bets are placed, is it being deducted ffrom uCash balances?

Oh right on. I just made a dummy bookie and won 500 uCashs, neat. thanks bro,didnt realize it was right there all along.

iguano
01-22-2010, 09:05 AM
You should be set the option to uCash in vBookie settings and disable the vBookie: Add Cash to Postbit plugin.


Disabilited but see the pics, i see again the vcash sistem @_@

Steelersfan
01-22-2010, 10:14 AM
Disabilited but see the pics, i see again the vcash sistem @_@

You need to go to the plugin manager and disable vBookie: Add Cash to Postbit. For some reason turning it off with the mod doesn't work. Least didn't for me.

dartho
01-22-2010, 10:20 AM
hi iguano,
Did you disable the vBookie: Add Cash to Postbit Plugin - not a settings - I mean in Plugin Manager.

I need to change a couple more things to make teh Settiungs work properly



Edit - Yes - just as Steelersfan said. It should be fixed in next version

iguano
01-22-2010, 06:03 PM
hi iguano,
Did you disable the vBookie: Add Cash to Postbit Plugin - not a settings - I mean in Plugin Manager.

ops . ... sorry i'm a idiot :D

dlynx
01-23-2010, 01:07 AM
Thanks so much for the conversion of this. It has been an integral part of my forum and one of the main things that has kept me from moving over to the new version.

:up:

Boots
01-23-2010, 02:55 AM
In on this mod for sure.

merk_aus
01-23-2010, 12:31 PM
Dartho,
we should talk I have spent the last three months working on a port for vBookie 3.5 to 3.8.4 then abandoned it when 4.0 came out to concentrate on porting it over to 4.0 we should talk as my version has a couple new features and is approved by andreas so could give you teh code for it or something to have added features.

COL NIL SATIS
01-23-2010, 02:34 PM
brilliant addittion!!! installed

TimberFloorAu
01-23-2010, 10:06 PM
Can we remove : vBookie installed! 19-01-2010

from the vbookie.php news and events cell ? If so How So !

dartho
01-23-2010, 10:36 PM
Sure - running the query:

DELETE FROM vbookie_news WHERE news_id = 1;

should do it (add a table prefix to vbookie_news if you have one ...

You could also do this via phpmyadmin if you have it

TimberFloorAu
01-23-2010, 10:49 PM
Sure - running the query:

DELETE FROM vbookie_news WHERE news_id = 1;

should do it (add a table prefix to vbookie_news if you have one ...

You could also do this via phpmyadmin if you have it

Tried that :

Get - An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'yobromof_forum.vbookie_news' doesn't exist

dartho
01-24-2010, 12:31 AM
"yobromof_forum" is your forum prefix?

Then query should be :
DELETE FROM yobromof_forumvbookie_news WHERE news_id = 1;

Forum Lover
01-24-2010, 01:38 AM
4. Edit "newthread" template as per readme.txt ionstructions

I did this, and usergroup permissions too.. but still not showing in newthread page. :(

dartho
01-24-2010, 02:49 AM
Did the usergroup permissions 'stick' and have you tried "rebuild bitfields" (see post #2) if not?

merk_aus
01-24-2010, 02:59 AM
Thanks for porting this - for some reason I click NO in the settings to not display vcash in the postbit however it still stays there how can i get rid of it?

dartho
01-24-2010, 04:06 AM
This has been addressed in the next version which will be out very soon, but in the mean time you will need to disable the vBookie: Add Cash to Postbit plugin to stop teh display of vCash in postbit

Forum Lover
01-24-2010, 04:26 AM
Its working now. Installed. Thanks. :)

dartho
01-24-2010, 08:38 AM
New version, fixed a couple things and added a few AdminCP options (mostly for vCash users)

Can now
change default vCash figure
give vCash to all users
reset vCash balance for all users

TimberFloorAu
01-24-2010, 08:54 AM
New version, fixed a couple things and added a few AdminCP options (mostly for vCash users)

Can now
change default vCash figure
give vCash to all users
reset vCash balance for all users

Thanks :up:

jonty
01-24-2010, 09:51 AM
New version, fixed a couple things and added a few AdminCP options (mostly for vCash users)

Can now
change default vCash figure
give vCash to all users
reset vCash balance for all users


Excellent :cool:
:up:

GreigM
01-24-2010, 11:48 AM
Thanks for update :) the bet statistics section in the bookie gives me a db error now, is it a problem at my end?

Database error in vBulletin 4.0.1:

Invalid SQL:
;

MySQL Error : Query was empty
Error Number : 1065

valendono
01-24-2010, 01:06 PM
nice.. installed ! its handy.

Steelersfan
01-24-2010, 01:58 PM
Any chance that when viewing an even to bet on it can show the amount you have to bet with?

wrestlepower
01-24-2010, 02:47 PM
Getting a database error when i attempt to abandon an event.

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 3893

Parse error: syntax error, unexpected T_STRING in /home/forums/public_html/vbookie.php(999) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: vbookie_confirm_abandon_event in [path]/includes/functions.php on line 3893

Parse error: syntax error, unexpected T_STRING in /home/forums/public_html/vbookie.php(1002) : eval()'d code on line 2

Steelersfan
01-24-2010, 02:55 PM
Also, since I upgraded I can't bet on events. All usergroups/forum persmissions seem ok.... Just no place to input bet.

https://vborg.vbsupport.ru/

wrestlepower
01-24-2010, 03:03 PM
Yip, same here steelersfan, as well as the db error i posted earlier.

Steelersfan
01-24-2010, 03:39 PM
Yip, same here steelersfan, as well as the db error i posted earlier.

I got the same DB error as you also on the abandon event.

jonty
01-24-2010, 03:59 PM
Small 'bug' :Changing the phrase for 'vcash' doesn't change the postbit (legacy).

iguano
01-24-2010, 04:37 PM
New version, fixed a couple things and added a few AdminCP options (mostly for vCash users)

Can now
change default vCash figure
give vCash to all users
reset vCash balance for all users

great :)

TimberFloorAu
01-24-2010, 06:42 PM
Ok few issues:

1. if we set the date as today 25. Jan 2010 12pm settle bets same as this date, when we view event it takes 24 hours off that set time ie. 24. Jan 2010 12pm

2. vcash has gone in postbit

3. global change of vbookie to other phrase doesnt change all instances.

4. still cannot figure out how to delete an event.

Example:
January 25 2010 05.00am

This is what displays in THREAD:

This event will accept bets until 25-01-2010 at 04:00 AM
This event will pay out after 25-01-2010 at 04:00 AM

Each time we return to edit event, this changes by one hour when we re-post. + GMT keeps resetting to London time

Plus when we edit event we get this on the page:

1:1:1:1:1

TimberFloorAu
01-24-2010, 07:07 PM
Getting db error when clicking Bet Statistics.


Database error in vBulletin 4.0.1:

Invalid SQL:
;

MySQL Error : Query was empty
Error Number : 1065
Request Date : Monday, January 25th 2010 @ 08:02:18 AM
Error Date : Monday, January 25th 2010 @ 08:02:18 AM
Script : http://www.yobromofo.com/forum/vbookie.php?do=stats
Referrer : http://www.yobromofo.com/forum/vbookie.php
IP Address : 124.186.98.206
Username : TimberFloorAu
Classname : vB_Database
MySQL Version : 5.0.87-community

dartho
01-24-2010, 08:56 PM
OK - have just gone through and looked.
Any chance that when viewing an even to bet on it can show the amount you have to bet with?
Can do
Getting a database error when i attempt to abandon an event.


Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 3893

Parse error: syntax error, unexpected T_STRING in /home/forums/public_html/vbookie.php(999) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: vbookie_confirm_abandon_event in [path]/includes/functions.php on line 3893

Parse error: syntax error, unexpected T_STRING in /home/forums/public_html/vbookie.php(1002) : eval()'d code on line 2
Fixed

Also, since I upgraded I can't bet on events. All usergroups/forum persmissions seem ok.... Just no place to input bet.

http://img715.imageshack.us/img715/2876/24224209.jpg
Fixed
Small 'bug' :Changing the phrase for 'vcash' doesn't change the postbit (legacy).
Fixed
Ok few issues:

1. if we set the date as today 25. Jan 2010 12pm settle bets same as this date, when we view event it takes 24 hours off that set time ie. 24. Jan 2010 12pm


I can;t reproduce this - is it actaully 24 hours? There is a time zone issue where it will disaply in GMT even if you have selected a diff TZ when making teh book.

2. vcash has gone in postbit

Can't re-produce this one either?

3. global change of vbookie to other phrase doesnt change all instances.

Correct - you'll need to search and replace on vBookie as the word 'vBookie' appears in other phrases (such as "Edit vBookie Event"). That change only changes teh phrase "vBookie"

4. still cannot figure out how to delete an event.

You can;t as such. You can abandon an event. You can of course delete the thread containing a vBookie event

Each time we return to edit event, this changes by one hour when we re-post. + GMT keeps resetting to London time

I'm still looking into the GMT issue, but can;t reproduce teh 1 hour one :confused:

Plus when we edit event we get this on the page:
1:1:1:1:1
fixed this one...

I'll release a 4.0.3 version now which fixes as stated above and keep looking at the other issues.

TimberFloorAu
01-24-2010, 08:58 PM
Thanks Mate.

I have rolled back to previous version until all is working fine.

Respect :up: Ste

dartho
01-24-2010, 09:19 PM
Any chance that when viewing an even to bet on it can show the amount you have to bet with?

You can edit the vbookie_event_table and search for

<div class="blocksubhead" align="center"><b>
{vb:rawphrase vbookie_this_event_will_pay_out_after} {vb:raw eventinfo.payafter_date} at {vb:raw eventinfo.payafter_time}
</b></div>

and add the fopllowing below it:
<div class="blocksubhead" align="center"><b>
You have {vb:raw user_cash} vCash to spend.
</b></div>

stangger5
01-24-2010, 10:03 PM
Getting db error when clicking Bet Statistics.


Database error in vBulletin 4.0.1:

Invalid SQL:
;

MySQL Error : Query was empty
Error Number : 1065
Request Date : Monday, January 25th 2010 @ 08:02:18 AM
Error Date : Monday, January 25th 2010 @ 08:02:18 AM
Script : http://www.yobromofo.com/forum/vbookie.php?do=stats
Referrer : http://www.yobromofo.com/forum/vbookie.php
IP Address : 124.186.98.206
Username : TimberFloorAu
Classname : vB_Database
MySQL Version : 5.0.87-community


This error is cause by the includes/functions_vbookie.php file..

dartho
01-24-2010, 11:40 PM
Ok few issues:

Example:
January 25 2010 05.00am

This is what displays in THREAD:

This event will accept bets until 25-01-2010 at 04:00 AM
This event will pay out after 25-01-2010 at 04:00 AM

Each time we return to edit event, this changes by one hour when we re-post. + GMT keeps resetting to London time


Long shot - but do you have daylight savings enabled on your site (AdminCP->Settings->Options->Date and Time Options)?

dartho
01-24-2010, 11:57 PM
This error is cause by the includes/functions_vbookie.php file..

Ah - see teh issue now. This is also fixed in the latest version (4.0.3)

So only the time issue left? with VB4, they changed the way some time functions worked and what they returned. This may take a little longer to fix up - but should still make for an opertaional vBookie of you remember to fix up time zones etc when you create / edit books

dartho
01-24-2010, 11:58 PM
4. still cannot figure out how to delete an event.


Found bug and will be fixed in the next version release so you can delete vBookie events.

Magz
01-25-2010, 12:01 AM
I, along with many others I'm sure, appreciate your support for this Mod.

Nominated.

Steelersfan
01-25-2010, 12:35 AM
You can edit the vbookie_event_table and search for

<div class="blocksubhead" align="center"><b>
{vb:rawphrase vbookie_this_event_will_pay_out_after} {vb:raw eventinfo.payafter_date} at {vb:raw eventinfo.payafter_time}
</b></div>

and add the fopllowing below it:
<div class="blocksubhead" align="center"><b>
You have {vb:raw user_cash} vCash to spend.
</b></div>

Worked like a charm! Thanks for taking the time to fix these issues. Will install new version first chance I get.

dartho
01-25-2010, 02:50 AM
OK Have fixed up all that I could, inlcuding the timezone not being saved right. The only outstanding issue is with YBMF losing an hour :confused: which I suspect is something to do with DLS ... Sorry about all the bugs and updates.

TimberFloorAu
01-25-2010, 03:06 AM
OK Have fixed up all that I could, inlcuding the timezone not being saved right. The only outstanding issue is with YBMF losing an hour :confused: which I suspect is something to do with DLS ... Sorry about all the bugs and updates.

Mate dont ever be sorry for supporting your own mod. It shows you care. We place our trust in you, and so afford you the odd hiccup. Its the nature of the beast.

< Sincere thanks for bearing with "it" and "us"

Steelersfan
01-25-2010, 03:28 AM
OK Have fixed up all that I could, inlcuding the timezone not being saved right. The only outstanding issue is with YBMF losing an hour :confused: which I suspect is something to do with DLS ... Sorry about all the bugs and updates.


Great work dartho! New version seems to be working fine.

dartho
01-25-2010, 03:37 AM
New version seems to be working fine.



phew ... :)

mandingo
01-25-2010, 03:38 AM
Cheers for the updates bro. great job.

TimberFloorAu
01-25-2010, 04:26 AM
Installed STATS still giving db error :(

vcash not showing in Postbit. Ticked to Yes.

Bitfields rebuilt

Steelersfan
01-25-2010, 04:30 AM
Installed STATS still giving db error :(

I got no DB errors checking stats with the new install. Just an FYI.

TimberFloorAu
01-25-2010, 04:34 AM
Will uninstall.
Delete all files.

Re upload and try again, perhaps we have some extraneous files left over

jonty
01-25-2010, 04:41 AM
seems to be ok here;postbit legacy changed ok :up:

TimberFloorAu
01-25-2010, 04:44 AM
Argghhh this is doing my head in now, gotta change every frigging usergroup permission and forum permission interspersed with rebuild bitfields.

TimberFloorAu
01-25-2010, 04:52 AM
Now cannot bet.

Can you tell us what tables n stuff to drop in php myadmin i will just delete everything.

Regs
01-25-2010, 04:56 AM
Awesome work in porting this!

I've just installed on a new clean board and have the same issues as timberfloorau (v4.0.4)

Can't bet
No cash in postbit
Stats returns db error

Cheers,

Regs.

Regs
01-25-2010, 05:00 AM
Awesome work in porting this!

I've just installed on a new clean board and have the same issues as timberfloorau (v4.0.4)

Can't bet
No cash in postbit
Stats returns db error

Cheers,

Regs.
And suddenly they are all there.

All I did was to not allow private bets, hit save and then rebuilt bitfields.

dartho
01-25-2010, 05:15 AM
Now cannot bet.

Can you tell us what tables n stuff to drop in php myadmin i will just delete everything.

Uninstalling should take care of dropping tables.

*dartho goes off to uninstall and reinstall from vBulletin on his test site

TimberFloorAu
01-25-2010, 05:16 AM
Cheers mate:

Have uninstalled.
Still have ftp'd files on server.
Still had the 1 hr issue.

Regs
01-25-2010, 05:31 AM
How hard would it be for the richest users listing to use usergroup html markups?

For example, if I'm in the top 20 and my username is green everywhere, it would show up as green in the list?

Furthermore, if I wanted to change it to list out the top 30 or top X, where/what should I edit?

I run a monthly contest using this (previous versions) where the top 3 win stuff (physical items). Each month I note who the top 3 were and then reset everyone's cash.

I can do this now but what would be an improvement would be if I could reset different cash amounts for different usergroups... the ultimate would be if a cronjob could do all of this and automatically save the top X in a contest area.

I'm rambling now but what the heck ... :)

There was an issue in the previous version where if you had a tonne of settled bets and went to view them all, it would almost kill your server :) Has that been addressed? Would it be possible to set a limit on how many are returned (say by date, i.e., last 30 days or something like that)?

Lastly, and this has always been a slight irritant, if I bet $20 on a bet that wins with payout of 2/1, I should get back $40 not $60.

TimberFloorAu
01-25-2010, 05:35 AM
You should get back $60.

Stake + winnings

Regs
01-25-2010, 05:40 AM
Someone needs to tell Will Hill that then :D

TimberFloorAu
01-25-2010, 05:44 AM
LOL < never gambled in real life, so have no idea

GreigM
01-25-2010, 06:20 AM
Upgraded and still have DB error on bet stats, and now nobody can bet, permissons all fine, have gone back to 4.01 and that works fine for us :)

GreigM
01-25-2010, 06:36 AM
Argghhh this is doing my head in now, gotta change every frigging usergroup permission and forum permission interspersed with rebuild bitfields.

rebuilding the bitfields should just need to be done once, do it before setting permissions then they should stick for every usergroup :)

jonty
01-25-2010, 06:37 AM
Someone needs to tell Will Hill that then :D

:D
We adjust ours because of that.

TimberFloorAu
01-25-2010, 06:48 AM
rebuilding the bitfields should just need to be done once, do it before setting permissions then they should stick for every usergroup :)

For some reason, we set permissions for admin > have to run rebuild bitfields, and so on and so on for every usergroup.

Then we have to do same in forum permissions, for every usergroup, in every forum. Does get exceedingly tedious

Delilahs
01-25-2010, 06:56 AM
Installed 4.04
Rebuilt all bitfields
created vbookie event.

No-one, not even admins can actually make a bet on it.

Is there a quick fix Dartho?

dartho
01-25-2010, 07:13 AM
@Delilahs - Install, rebuild bitfields, change usergroup permissions (check they stick), change forum permissions...

I'm thinking I'm going to remove using bitfields for permissiosn management and go for an old school "What usergroups can bet/edit/create?" type scenario...

I hope to get some time this evening.

Delilahs
01-25-2010, 07:19 AM
Dartho, tried all those options and it isn't working.

TimberFloorAu
01-25-2010, 07:27 AM
@Delilahs - Install, rebuild bitfields, change usergroup permissions (check they stick), change forum permissions...

I'm thinking I'm going to remove using bitfields for permissiosn management and go for an old school "What usergroups can bet/edit/create?" type scenario...

I hope to get some time this evening.

Sounds like the best option mate

dartho
01-25-2010, 07:38 AM
OK - I just installed on a virgin install I had on localhost (which was RC4) - it behaved in teh same manner some describe here (errors on stats, can't bet etc) but after frantically clicking , typing adjusting permissions etc for 3 minutes it all came good.

I do not know how, or why - but it did.

I will, when I get time, start a fresh install and try again (and document everyting I do) to try and track the issue down.

Make sure you make the template edit to NEWTHREAD template also

jonty
01-25-2010, 07:47 AM
OK - I just installed on a virgin install I had on localhost (which was RC4) - it behaved in teh same manner some describe here (errors on stats, can't bet etc) but after frantically clicking , typing adjusting permissions etc for 3 minutes it all came good.

I do not know how, or why - but it did.

I will, when I get time, start a fresh install and try again (and document everyting I do) to try and track the issue down.

Make sure you make the template edit to NEWTHREAD template also

Just noticed the change (aligns the check box with others) :up: (I'd done it manually before)

I've now managed to mess up the table showing the news and events :D but it's a test site so not important (table showing news and events not showing the right cell border after the date)

jonty
01-25-2010, 08:56 AM
We currently show the vCash through a custom navbar edit.

From a quick look it'll now go in the header - I should really make these change into product rather than template edits :erm:

(we have a sub-forum for just vBookie bets, so the vCash link (called vButtons - it's a long story :D) links to there, rather than the vbookie .php page.)

merk_aus
01-25-2010, 11:23 AM
Jonty that looks like your using 3.8!

Good Work on this Dartho

jonty
01-25-2010, 11:50 AM
Jonty that looks like your using 3.8!

Good Work on this Dartho

That was ;)
Looking for something similar in 4 as part of the migration :cool:

Rat1972
01-25-2010, 08:11 PM
i uninstalled and i reinstalled, but still db problem with stats. Anyone a idea to fix this?

TimberFloorAu
01-25-2010, 08:16 PM
Dartho is re doing the MOD, without auto bitfield. This could be causing some issues. Please bear with him :up:

Rat1972
01-25-2010, 10:28 PM
Dartho is re doing the MOD, without auto bitfield. This could be causing some issues. Please bear with him :up:

offcourse! Glad that someone will fix this for us for free. I didnt read the topic good enough. My bad :)

dartho
01-26-2010, 12:41 AM
For people with 4.0.4:
issue with stats only occurs iof there are no vBookie events after installing (The query ois empty coz there ios nothing to query)

issue with vCash not showing up an no one being able to bet is a bug which can be fixed by changing cash type to something otehr than vCash, and then back to vCash again.

I've got a new version ready which no longer uses bitfields for permission checking which worked 'out of the box' on a clean install.

I'll post it up shortly

dartho
01-26-2010, 01:38 AM
4.0.5 Released - no longer uses bitfields for permissions, fixed vCash display, fixed stats page error.

To upgrade, install product, upload all files, and recheck you settings

You can also delete the bitfield_vbookiehack.xml from your includes/xml folder as it is no longer needed (perform a rebuild bitfields afterwards) - however leaving it shouldn't have any effect.

Fingers crossed

Switch3130
01-26-2010, 01:45 AM
I haven't had a problem with this since installing, but I upgraded anyways.

Nice work.

Delilahs
01-26-2010, 04:44 AM
working nicely my end ')

GreigM
01-26-2010, 06:43 AM
Great job all seems fine with our install now, thanks again :)

One question, I would like the VBookie tab in the navbar to only show when in the forum section, not in CMS etc, would that be possible at all?

valendono
01-26-2010, 11:27 AM
can u explain what is Odds and playing with it ? how we calculate price for the winner ?

dartho
01-26-2010, 11:35 AM
mm... I could try, but would probably fail miserably. Have a read of http://en.wikipedia.org/wiki/Odds#Gambling_odds_versus_probabilities


[Edit] OK - I'll have a try anyway:

A simple example is tossing a coin and picking the outcome (Heads or Tails) the probablility is 1 to 2 (or 0.5) of getting either, so teh odds may well be 1 to 2 also (although in real life the bookie may make the odds more in his favouir so her makes a profit). In gambling 1 to 2 means to win 1, you must be 2. Your original bet is also returned if you win.

Say you put $10 on heads at 1 to 2 odds. In order to win 1, you must bet 2. Given we have bet $10, we will win $5 if the outcome is heads, you will also get your original $10 back.

allbuffs
01-26-2010, 08:23 PM
Just made the jump from 4.0.1 to 4.0.5 I get a database error when clicking on stats.


Database error in vBulletin 4.0.1:

Invalid SQL:
SELECT COUNT(*) as numitems FROM vb_`vbookie_news`;

MySQL Error : Table 'rassa_vb.vb_' doesn't exist
Error Number : 1146
Request Date : Tuesday, January 26th 2010 @ 05:20:24 PM
Error Date : Tuesday, January 26th 2010 @ 05:20:24 PM
Script : http://www.mysite.com/vbookie.php?do=stats
Referrer : http://www.mysite.com/vbookie.php?do=bets
Classname : vB_Database
MySQL Version : 5.1.42

TimberFloorAu
01-26-2010, 08:34 PM
Have you added any Bets yet ? if not try adding some bets then run stats again

dartho
01-26-2010, 08:52 PM
that one looks like a bug ... lemme check...

[Edit: Yep - errant appostrophe - wouldn;t affect people unless they use a table prefix.. new version up in a couple minutes

dartho
01-26-2010, 09:01 PM
Should be OK now in 4.0.6, again - only affect those that use table prefixes

allbuffs
01-26-2010, 10:06 PM
awesome work dartho! Thanks for looking into that so fast.

TimberFloorAu
01-26-2010, 11:34 PM
w o r k i n g

Yayyy. Good Onya mate.

Ok now how can we spruce the actual bet thang up a bit please. Is there a template to edit ? If so please point me in the right direction.

Regards Ste

dartho
01-27-2010, 12:24 AM
vbookie_event_table & vbookie_outcome_bits for OPEN events
vbookie_event_table & vbookie_outcomebits_nobet for CLOSED events
vbookie_eventresults_table & vbookie_resultbits for SETTLED events

Regs
01-27-2010, 01:33 AM
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.

TimberFloorAu
01-27-2010, 05:59 AM
Only niggle is the 1 hr thing.

We set a bet to finish on 27/Jan/2010 at 09.00 pm and the dst settings are +10 gmt ( unless we should be different for QLD ;) )

Update event and lo and behold:

This event will accept bets until 27-01-2010 at 08:00 PM

WEBDosser
01-27-2010, 06:26 AM
i get a database error on clicking

myurl/vbookie.php?do=stats

dartho
01-27-2010, 06:38 AM
Only niggle is the 1 hr thing.

We set a bet to finish on 27/Jan/2010 at 09.00 pm and the dst settings are +10 gmt ( unless we should be different for QLD ;) )

Update event and lo and behold:

This event will accept bets until 27-01-2010 at 08:00 PM

Do you have "Daylight Savings" enabled in your vBulletin date and time settings (or in your own COntrol Panel)? That's my only guess. .. at the moment

dartho
01-27-2010, 06:39 AM
i get a database error on clicking

myurl/vbookie.php?do=stats

Upgrade to 4.0.6!

TimberFloorAu
01-27-2010, 08:16 AM
Cheers Dartho will check , its not a major issue. I am guessing its our end. As QLD doesnt have dst I guess its the banana benders fault again !

Just to let you know, ran 1st bet .. works a charm, bets settled, stats updated, Excellent

GreigM
01-27-2010, 08:18 AM
Yeah all seems fine here, great job, thanks so much for porting this over and supporting it so well :)

dartho
01-27-2010, 08:53 AM
OK - Happy enough with the feedback to mark it no longer as Beta.

Suggestions for updates will now be entertained.

GreigM
01-27-2010, 08:59 AM
If possible could you remove the outer border when viewing event info and maybe the stat page outer border? It's not a big issue but the border does take away from those lovely round corners in VB4 :D

dartho
01-27-2010, 09:13 AM
I've noticed that, although my solution was probablygoing be to try and get rid of the curves :D

GreigM
01-27-2010, 09:31 AM
hehe well that would work too :)

willy888
01-27-2010, 10:45 AM
Thanks4 this mod ... works great
I don't want to apear the link to the navnar
how can I delete it from there ?

jonty
01-27-2010, 11:09 AM
just been pulling my hair out disabling plugins, mods etc as the main vbookie screen doesn't render properly.

Then it dawned on me that I'm in ie8... :mad: - the 'Bookie News and Events' don't show properly.

Turn compatability off and it's fine. :up:

Steelersfan
01-27-2010, 11:24 AM
No problems with the new one. Great work dartho!! Much easier to set things up in the ACP now.

dartho
01-27-2010, 11:28 AM
Thanks4 this mod ... works great
I don't want to apear the link to the navnar
how can I delete it from there ?

Disable the vBookie: Insert Navbar Link plugin.

I'll (try to remember to) add this as an option in the next release

WEBDosser
01-27-2010, 03:28 PM
Upgrade to 4.0.6!

i am using the latest version?.

willy888
01-27-2010, 05:08 PM
Disable the vBookie: Insert Navbar Link plugin.

I'll (try to remember to) add this as an option in the next release

thanks man

dcuellar
01-27-2010, 05:33 PM
One on one bets would be great. One member can challenge another (via Postbit) and a message is sent to them. The other member can accept the amount or raise/lower it.

History of bets, current bets, and bets willing to make can appear in sig and profile.

TimberFloorAu
01-27-2010, 08:07 PM
Okies Dartho me old mucker.

DST is off. Correct Time Zones enabled. Could it be server time offset ?
They are in NSW we are in QLD.

To prove I did a Screencast.

View here:

http://www.yobromofo.com/forum/tutorials/vbookie/vbookie.html

See the time of the event !
Then when its posted look at the time !

dartho
01-27-2010, 08:49 PM
i am using the latest version?.

No you're not. You're using 4.0.5, latest is 4.0.6.

WEBDosser
01-28-2010, 02:57 AM
No you're not. You're using 4.0.5, latest is 4.0.6.

:eek:.. you are right my friend, thanks for that.

Arved Yagami
01-29-2010, 07:57 PM
I have an error when I click VbCash Utilities in the admin settings:

Database error in vBulletin 4.0.1:

Invalid SQL:

SHOW Columns
FROM vbuser
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 : Friday, January 29th 2010 @ 03:55:12 PM
Error Date : Friday, January 29th 2010 @ 03:55:12 PM
Script : http://xxxxxxxx/forum/admincp/vbookie_admin.php
Referrer : http://xxxxxxxx/forum/admincp/options.php?do=options&dogroup=vbookie&advanced=0

dartho
01-29-2010, 09:01 PM
I think if you edit vboooke_admin.php line 71 and change

WHERE Field = "vbookie_cash" to WHERE Field = vbookie_cash

Odd that it doesn;t throw an error on mine - perhaps it a MySQL version thing?

Arved Yagami
01-29-2010, 09:08 PM
I think if you edit vboooke_admin.php line 71 and change

WHERE Field = "vbookie_cash" to WHERE Field = vbookie_cash

Odd that it doesn;t throw an error on mine - perhaps it a MySQL version thing?Didnt work either. It's a pretty straight installation, its the first time I have a problem with a plugin. Hope somebody can help, I liked the original vbBookie a lot. :D

dartho
01-29-2010, 09:12 PM
Yeah - I just made that change on mine - and it started throwing errors, bu tthe original is OK.

What is your MySQL version?

Any MySQL folk able to see what could be wrong with the query
SHOW Columns FROM user WHERE Field = "vbookie_cash"; ?

In the mean time Arved you could just not use the vCash utils section and make the changes manually - it wouldn't affect any otehr area of vBookie

dartho
01-29-2010, 09:14 PM
One other suggestion - change that line to
WHERE field = "'. TABLE_PREFIX . 'user.vbookie_cash"
I wouldn;t havce thought it was necessary, but you never know ...

Edit : No that wouldn't work either.

Arved Yagami
01-29-2010, 09:30 PM
:( Why me? :(

SQL version is 4.1.21-standard

TimberFloorAu
01-29-2010, 09:32 PM
Wouldnt be old xml files residning on the server from previous upgrades would it, including old db

Arved Yagami
01-29-2010, 09:41 PM
Wouldnt be old xml files residning on the server from previous upgrades would it, including old dbDont think so, its my first installation of vBookie in this DB. How can I check any conflictive file or XML?
I guess the problem is just my admin file.

dartho
01-30-2010, 12:42 AM
It wouldn;t be anything to do with the installation...

Whilst MySQL 4.1.21 is supported, it is quite old now. If you (or your host) are up for any maintenance, and upgrade may be worthwhile? I don't know if this will fix the issue, but would *guess* it does.

Minimum Requirements: vBulletin is designed to run on every server that has PHP 5.2 or greater and MySQL 4.1.0 or greater installed.

It is recommended to use PHP 5.2.6, or later and MySQL 5.0.19 or later.

Boots
01-30-2010, 01:57 PM
So what's the consensus, is this running well for people?

ProFifaLeagues
01-30-2010, 03:20 PM
yes mate running a1 here!

w-elbalad.com
01-30-2010, 03:50 PM
nice work

Arved Yagami
01-30-2010, 05:32 PM
It wouldn;t be anything to do with the installation...

Whilst MySQL 4.1.21 is supported, it is quite old now. If you (or your host) are up for any maintenance, and upgrade may be worthwhile? I don't know if this will fix the issue, but would *guess* it does.Gotta ask my hosting to upgrade.

Thanx.

jack the lad
01-30-2010, 08:20 PM
Nice mod mate ;)

Is there a way of when a thread is deleted we can also delete the vBookie event?

Many thanks

dartho
01-30-2010, 09:02 PM
This does happen - however only when a thread is 'physically removed', a soft deletion does not remove the vBookie event

jack the lad
01-30-2010, 09:22 PM
This does happen - however only when a thread is 'physically removed', a soft deletion does not remove the vBookie event

Sorry I meant in the "News & Events" window.

Jack

dartho
01-30-2010, 09:53 PM
Ah - OK. Currently they are text only with no links back to the actual vBookie event so it would involve recoding a few things. I'll look into it. May be able to add a 'Delete' button for admins next to each news item also?

jack the lad
01-30-2010, 11:10 PM
Ah - OK. Currently they are text only with no links back to the actual vBookie event so it would involve recoding a few things. I'll look into it. May be able to add a 'Delete' button for admins next to each news item also?

Cheers mate, your a star :up:

TimberFloorAu
01-31-2010, 02:44 AM
Ah - OK. Currently they are text only with no links back to the actual vBookie event so it would involve recoding a few things. I'll look into it. May be able to add a 'Delete' button for admins next to each news item also?

I would agree, that would be wicked.

Could we also code it so that in Postbit it reads: vbcash $500 instead of vbcash 500

Aclikyano
01-31-2010, 07:19 PM
everytime i change a admin or gmod status in usergroup permissions or even forum and moderators or whatever it goes right back to NO NO NO after i save... wtf
i made a vbookie thread, it worked good but after i bet on it i dont see the option to settle the bet.... help!

TimberFloorAu
01-31-2010, 07:23 PM
Are you running latest verion of vbookie ?

Have you rebuilt bitfields.

Aclikyano
01-31-2010, 07:25 PM
yes i am on 4.0.1 and i just installed it now....

no what bitfields must i rebuild?

TimberFloorAu
01-31-2010, 07:30 PM
Latest version of vbookie is 4.06

http://www.yourdomain.com/forum/admincp/index.php?do=buildbitfields

dartho
01-31-2010, 08:23 PM
Could we also code it so that in Postbit it reads: vbcash $500 instead of vbcash 500

Edit the vBookie: Add Cash to Postbit plugin and change ".$post['vbookie_cash']." to $".$post['vbookie_cash']."

everytime i change a admin or gmod status in usergroup permissions or even forum and moderators or whatever it goes right back to NO NO NO after i save... wtf
i made a vbookie thread, it worked good but after i bet on it i dont see the option to settle the bet.... help!
Those permissions no longer have any affect, permissions are set in vBookie Settings.

Delete /includes/xml/bitfield_vbookie.xml and then rebuild bitfields to remove these redundant options (http://YOURSITE/admincp/index.php?do=buildbitfields)

You can only settle a vbookie event when the date/ time is after what you configured the event to payout after.

Aclikyano
01-31-2010, 08:58 PM
please explain better what i should do? thanks

Aclikyano
01-31-2010, 09:00 PM
ok nevermind i got it now, thanks alot! :) great update, loving 4.0.1 atm

Bluefin221
02-01-2010, 06:56 AM
I installed 4.0.6 and still get an error when clicking on stats, I have created my first bet, but for some reason I can't bet on the actual event. I have double checked all the permissions and everything is as it should be.

TimberFloorAu
02-01-2010, 07:11 AM
Have you set usergrp permissions and rebuilt bitfields

Bluefin221
02-01-2010, 07:13 AM
Have you set usergrp permissions and rebuilt bitfields

Yes.

TimberFloorAu
02-01-2010, 07:22 AM
Then something has cocked up.

Ensure you did everything in theis order:

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.

If it still isnt working, either wait for Dartho.. or reinstall it all over again.
It does work, we have it running at the mo.

Bluefin221
02-01-2010, 07:47 AM
I have supercharged installed and since I installed vbookie it has completely messed up my forum, I've uninstalled it for now and I'm retracing my steps to see what the problem is.

TimberFloorAu
02-01-2010, 08:15 AM
Yeah same issue here. I got shot of supercharged.

dartho
02-01-2010, 08:20 AM
I installed 4.0.6 and still get an error when clicking on stats, I have created my first bet, but for some reason I can't bet on the actual event. I have double checked all the permissions and everything is as it should be.

Happy to help if I can. I have no idea what "supercharged" is though ...

DragonBlade
02-02-2010, 02:20 PM
dartho,

I'm trying out your modification and am in the process of installing it, but I have a question for ya...

Rather than having us make a template modification above {vb:raw threadmanagement}, as it says in the instructions, could you not add that bit as an extra template and add it to $threadmanagement in the newthread_form_complete hook location?


Like...


TEMPLATE (vbookie_threadmanagement):
<vb:if condition="$show['vbookieevent']">
<div class="blockrow">
<p class="label">Post a {vb:rawphrase vbookie} Event</p>
<dl class="group dep_group">
<dt>
<label for="cb_postvbookieevent">
<input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" {vb:raw checked.postvbookieevent} class="dep_ctrl" /> {vb:rawphrase yes_post_a_vbookieevent_thread}
</label>
</dt>
</dl>
</div>
</vb:if>

PLUGIN (newthread_form_complete):$templater = vB_Template::create('vbookie_threadmanagement');
$templater->register('show', $show);
$templater->register('vbookie', $vbookie);
$templater->register('checked', $checked);
$templater->register('yes_post_a_vbookieevent_thread', $yes_post_a_vbookieevent_thread);
$threadmanagement = $templater->render() . $threadmanagement;
$show['additional_options'] = ($show['misc_options'] OR !empty($attachmentoption) OR $show['member'] OR $show['poll'] OR !empty($threadmanagement));





I'm sorry if it seems like I'm butting in, or if the above code wouldn't work, but it just makes sense to me to have as few template edits as possible, and wouldn't that reduce your template edits to zero? :3

DragonBlade
02-02-2010, 02:57 PM
----------

Also, a question on Custom "cash".

I've been working on my own modest "cash" system, and the field which handles said cash is called "han" (short for "Hansatsu"; don't ask XD), and I'd like to try and integrate vBookie with it. It seems straightforward enough, but I want to make sure before I go destroying things.

Basically, in each plugin that has it, in vbookie.php, and in includes/functions_vbookie.php, replacing vbookie_cash with my custom field han would be the correct way to go, correct?

ldma
02-02-2010, 06:44 PM
I'm having trouble getting it working. All permissions are set up correctly, I can set up events, but even as Admin I can't place bets.

dartho
02-02-2010, 08:59 PM
dartho,
I'm sorry if it seems like I'm butting in, or if the above code wouldn't work, but it just makes sense to me to have as few template edits as possible, and wouldn't that reduce your template edits to zero? :3

I was thinking of doing this once I was happy everything was working, but then decided to keep it a manual edit. The new temlate engine would probably happily merge those manual changes into any future updates.

If you release a cash system, I could modify the vbookie code to work with it out out of the box.

Otherwise, vbookie has hooks where you can write plugins to handle other cash - no need to edit source files.

vbookie_do_charity
vbookie_get_richest
vbookie_get_user_cash
vbookie_give_user_cash
vbookie_take_user_cash

Have a look at the functions_vbookie.php file for sample code for putting in these hook locations

dartho
02-02-2010, 09:05 PM
I'm having trouble getting it working. All permissions are set up correctly, I can set up events, but even as Admin I can't place bets.

was this a fresh install, or an upgrade from a previous version of vBookie?

Bluefin221
02-03-2010, 09:21 AM
Ok, I uninstalled supercharged and tried a fresh install of 4.0.6 of vbookie.

I still get a database error on the stats page.

I have rebuilt bitfields, I have checked the permissions which are all fine, I made my first bookie event as a test. Funnily enough now that I've made the event no one appears to be able to make an actual bet.

dartho
02-03-2010, 09:41 AM
what is your site - if you PM me deatils, I'll be happy to have a look. I may need admin details to dig deeper if you woudl like me to...

Bluefin221
02-03-2010, 10:57 AM
what is your site - if you PM me deatils, I'll be happy to have a look. I may need admin details to dig deeper if you woudl like me to...

I know what the problem is, when you initially go into vbookie options you don't have the full list of options, when I rebuilt bitfields for some reason I had a whole heap of options, once I went through these setting them up for my site everything is working as it should. Strange though that the options wouldn't show properly at first though.

DragonBlade
02-03-2010, 11:04 AM
I was thinking of doing this once I was happy everything was working, but then decided to keep it a manual edit. The new temlate engine would probably happily merge those manual changes into any future updates.

If you release a cash system, I could modify the vbookie code to work with it out out of the box.

Otherwise, vbookie has hooks where you can write plugins to handle other cash - no need to edit source files.

vbookie_do_charity
vbookie_get_richest
vbookie_get_user_cash
vbookie_give_user_cash
vbookie_take_user_cash

Have a look at the functions_vbookie.php file for sample code for putting in these hook locations

Thanks, Dartho. And ha, amg, now that I actually read your functions_vbookie.php without sleep deprivation, I can easily see the aformentioned hooks. XD Thanks for putting something in there for us to be able to customize so easily! I probably would have never thought of that. XP

As for releasing my cash system, well, it's very unprofessional. See, I started it over a year ago when I was first learning about vBulletin coding, so at first I was directly editing the database and didn't even KNOW about templates--I was passing the HTML just as a PHP literal. XP I've been modifying it a bit here and a bit there, but it's still far from what I'd burden the vBulletin community with. XD I'll certainly release it when it's complete, and when I make the plugins you mention to change the cash field to "han," I'll include those. :3

ldma
02-05-2010, 10:34 PM
was this a fresh install, or an upgrade from a previous version of vBookie?

I did have it installed previously but uninstalled it before i upgraded to vb4, then installed Vbookie again.

I have rebuilt bitfields, I have checked the permissions which are all fine, I made my first bookie event as a test. Funnily enough now that I've made the event no one appears to be able to make an actual bet.


Same here.

Steelersfan
02-05-2010, 11:16 PM
Dartho, I can't seem to edit events. Well I can, but then when I hit update it says "This thread already has a vbookie attached to it". Other people can't either even though their user group is set to allow.

dartho
02-06-2010, 02:21 AM
I think I'm going to need admincp access to a couple of the folk who are having issues to see what's going on...

Steelersfan
02-06-2010, 05:21 AM
I think I'm going to need admincp access to a couple of the folk who are having issues to see what's going on...

PM sent

dartho
02-06-2010, 07:45 AM
That's one bug found thanks to Steelers fan... anyone else want to let me help them with specific issues?

romeo12
02-06-2010, 12:08 PM
Will this work in vB 3.8.4? I cant find vBookie for 3.8

dartho
02-06-2010, 08:11 PM
Will this work in vB 3.8.4? I cant find vBookie for 3.8

No it won't - there is no 3.8 version, but the 3.5 version can work under 3.8 with a little tweaking

Steelersfan
02-07-2010, 01:30 PM
Dartho, when you go to bet a second time, you cant see how many points you have to bet with. I did the edit you said to earlier in the thread and it works for the first time you bet and showing points. But not when you allow multiple bets.

Edit - Never mind, they didn't tell me they were using a skin I was working on and I hadn't applied the edit yet

TimberFloorAu
02-12-2010, 05:32 AM
Suggestion.

On betting page ( in thread view )

Could we have under the bets:

You have $xxx.xx available to bet with

dartho
02-12-2010, 06:37 AM
check https://vborg.vbsupport.ru/showthread.php?p=1965601#post1965601 for how to do this ...

TimberFloorAu
02-12-2010, 06:58 AM
Thanks :)

dcuellar
02-13-2010, 01:25 AM
Have you given any thoughts to adding one-on-one betting between users?

dartho
02-13-2010, 03:54 AM
No, not really - that would be a whole other mod, which would be a lot of work, which is something I do my damndest to stay away from :)

dcuellar
02-13-2010, 10:20 PM
No, not really - that would be a whole other mod, which would be a lot of work, which is something I do my damndest to stay away from :)

LOL...

alright. Fair enough.

romeo12
02-14-2010, 07:27 AM
No it won't - there is no 3.8 version, but the 3.5 version can work under 3.8 with a little tweaking

Hey, I installed 3.5 version. The thread don't redirect to vbookie.php page when i post an event :(. I checked plugins in Plugin Manager, but all are active.

However, if i manually add
vbookie.php?t=xxx&vbookieeventoptions=0&do=newevent
to the thread link, where xxx is thread id, i am able to place event.

Help me.

Edit & Update:
Problem solved. Found it here
https://vborg.vbsupport.ru/showpost.php?p=1612805&postcount=2016

Regs
02-14-2010, 05:39 PM
dartho,

Do you have a list of improvements you are working on (if any)?

How difficult would it be to start to improve the vBookie home? Some ideas I have:

- Show all open bets on a page with the ability to place a bet right there w/o going to the thread
- Create bet tickets where multiple bets can be added to a ticket but if one loses, your ticket is a loser (this would probably be a big task)
- Introduce a subscribe feature where forum users could subscribe to vbookie and be notified by email whenever a new bet was set up.

Thanks,

Regs.

dartho
02-16-2010, 08:54 AM
I'm not actively working on any enhancements at the moment, but don't let that stop you from asking :)

dcuellar
02-16-2010, 10:10 PM
I've finally installed this and I can't seem to place a bet. I'm able to create one, but not bet on one.

Am I doing something wrong?

GreigM
02-17-2010, 04:44 PM
Seems to be working fine with 4.0.2

dartho
02-17-2010, 08:47 PM
I've finally installed this and I can't seem to place a bet. I'm able to create one, but not bet on one.

Am I doing something wrong?

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.

Pro-eSports.com
02-17-2010, 09:25 PM
Where can I remove the "vBookie" link from the navigation bar?