vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - vBookie for vBulletin 4 (https://vborg.vbsupport.ru/showthread.php?t=233473)

dartho 01-25-2010 03:37 AM

Quote:

Originally Posted by Steelersfan (Post 1965827)
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

Quote:

Originally Posted by TimberFloorAu (Post 1965861)
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

Quote:

Originally Posted by Regs (Post 1965878)
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

Quote:

Originally Posted by TimberFloorAu (Post 1965876)
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

Quote:

Originally Posted by TimberFloorAu (Post 1965869)
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

Quote:

Originally Posted by Regs (Post 1965902)
Someone needs to tell Will Hill that then :D

:D
We adjust ours because of that.

TimberFloorAu 01-25-2010 06:48 AM

Quote:

Originally Posted by GreigM (Post 1965932)
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

Quote:

Originally Posted by dartho (Post 1965941)
@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

Quote:

Originally Posted by dartho (Post 1965955)
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

1 Attachment(s)
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

Quote:

Originally Posted by merk_aus (Post 1966059)
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

Quote:

Originally Posted by TimberFloorAu (Post 1966467)
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#Ga..._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.

Code:

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



All times are GMT. The time now is 05:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01785 seconds
  • Memory Usage 1,825KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete