vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBookie for vBulletin 3.5 (https://vborg.vbsupport.ru/showthread.php?t=94128)

turfy 08-12-2005 09:54 PM

Thanks FASherman :D

http://en.wikipedia.org/wiki/Parimutuel

Dream 08-12-2005 10:19 PM

are the phrases hardcoded in this one?

how many queries does it add and where are they added?

can this be disabled/enabled per forum? how are you using this modification, enabled in all forums? hows the experience so far?

Andreas 08-12-2005 10:26 PM

  1. A lot of Phrases are still hardcoded, yes.
    This is one of the ToDo-Entries
  2. It adds 2-3 Queries to showthread.php if a Thread contains an Event. If it doesn't there are no Queries added.
  3. Permissions can be defined for each Forum/Usergroup

FASherman 08-13-2005 01:36 AM

Quote:

Originally Posted by KirbyDE
I C.
Hmm, i'll think about if it's possible to implement that.

Its just a function:

IF (ODDS EQ PARAMUTUAL) THEN
ODDS ARE 1:(TOTAL BETS/BETS_THIS_OPTION)
ELSE
HOWEVER YOU DO IT NOW
ENDIF

Dream 08-13-2005 02:37 AM

installation went ok, there are some stuff in the intall.html you should remove, "installing vbookie/upload files/do code mods".

where does the money comes from, the house or from the others?

WOL for vbookie.php isnt set

any way you can add your little mod to it so the thread is only posted when the user finishes creating the event?

the posticon in the forum list is showing the poll image

the event poster cant edit his own event

when you edit an event all dates reset to the current day

"private bet" should have a <label>

Biker_GA 08-13-2005 05:24 AM

Quote:

Originally Posted by KirbyDE
@Biker_GA
You are doing smth. wrong.

Hmmmmm.... Don't think so. Done a lot of these, and I'm following the instructions to the letter. As soon as I put $vbookie_event in SHOWTHREAD and save, that error pops up.

Andreas 08-13-2005 09:15 AM

@Dream

The Payouts are: Stake + Odds*Stake

Yes, WOL is missing - gonna add that asap.

I could hide the Thread until the Event is ready, yes.
Gona think about that.

The Posticon should show a Dollar sign, at least it does for me?

Event Poster cannot Edit own Event: Hmm, should work. Gonna test that.

Dates resetting could be caused by a Bug in RC1, if you use this.

@Biker_GA
Revert your SHOWTHREAD Template, and then try to make the changes.
If this still doesn't work, send me a PM with ACP Login.

sabret00the 08-13-2005 09:17 AM

Quote:

Originally Posted by FASherman
Its just a function:

IF (ODDS EQ PARAMUTUAL) THEN
ODDS ARE 1:(TOTAL BETS/BETS_THIS_OPTION)
ELSE
HOWEVER YOU DO IT NOW
ENDIF

surely real time odd's aren't possible without getting the odds from RSS feeds?

MrNase 08-13-2005 10:55 AM

Quote:

Originally Posted by KirbyDE
@MrNase
Confirmed. Gonna look at that.


Fixed?

FASherman 08-13-2005 12:34 PM

Quote:

Originally Posted by sabret00the
surely real time odd's aren't possible without getting the odds from RSS feeds?

I don't think that was the request. He's not asking to have the current Vegas odds of the Patriots to win the 2006 Superbowl and update in realtime.
The request was to run an event as a paramutual event which means all of the data is internal.

This is pretty simple stuff. Lets say the Patriots are playing the Bengals and 100 people place bets. If all 100 bet $1 on the Patriots. then the odds are 1:1. You get back what you paid in, $1. Makes sense, right?

Lets say 99 bet on the Pats. One person bets on the Bengals. If the Pats win, those 99 get $1.01. The odds were 100:99.

However, if an "Any Given Sunday" miracle happens, the one person who bet on the Bengals at 100:1 odds gets $100 for his buck.

Payout is commensurate to risk.

.Tim 08-13-2005 02:53 PM

Quote:

Originally Posted by rinkrat
I just tried editing a bet and that works fine but I noticed that the payout time of 2 PM today Pacific time is being translated to 6 AM tomorrow for some reason in the actual thread.

I'm having the same problem. I choose 7:30pm and it shows up as 1:30pm.

Floris 08-13-2005 04:20 PM

Very nice work K, good job on all these resources and keep them coming. I will keep my eyes on this one for a while until it feels a bit more stable and has your todo list items implemented. I've tested it and it was fun to play with.

Andreas 08-13-2005 08:14 PM

Quote:

Originally Posted by .Tim
I'm having the same problem. I choose 7:30pm and it shows up as 1:30pm.

I don't really understand the Problem, nor am I able to reproduce it.
I've created a new Event with Bet End 28.08.2005 07:30 PM GMT+1, and this is exactly how it does show up in the Thread for me?

http://kirbydemos.ath.cx/forum/showthread.php?t=14

@MrNase
Should be fixed on my Board. Feel free to test it.

.Tim 08-13-2005 08:35 PM

Quote:

Originally Posted by KirbyDE
I don't really understand the Problem, nor am I able to reproduce it.
I've created a new Event with Bet End 28.08.2005 07:30 PM GMT+1, and this is exactly how it does show up in the Thread for me?

http://kirbydemos.ath.cx/forum/showthread.php?t=14

@MrNase
Should be fixed on my Board. Feel free to test it.

Well, it's coming out right for you because yours is set for GMT +1 and mine is GMT -5. There's the 6 hour difference I'm experiencing. If you changed your timezone to central time and created a new event I bet you'd experience the same issue I'm having. :ermm:

Andreas 08-13-2005 08:50 PM

OK, I changed my Timezone to Central Time, then posted a new Event 28.08.2005 07:30 PM GMT.
It shows up as 1:30 PM, which is correct?

.Tim 08-13-2005 09:19 PM

Quote:

Originally Posted by KirbyDE
OK, I changed my Timezone to Central Time, then posted a new Event 28.08.2005 07:30 PM GMT.
It shows up as 1:30 PM, which is correct?

Yes, that's what happens to me. If I want it to end at 7:30pm central time on August 14th. I have to set it to end at 1:30am August 15th, so that it adjusts to the correct time after submitting. It's kind of annoying that it doesn't show up as the time I choose, really the only problem I have with the hack though. :D

Andreas 08-13-2005 09:24 PM

Sorry, I don't understand the Problem.
If you want an Event to end at 14. August 2005 7:30 PM Central Time, then just submit it this way?

.Tim 08-13-2005 09:42 PM

Quote:

Originally Posted by KirbyDE
Sorry, I don't understand the Problem.
If you want an Event to end at 14. August 2005 7:30 PM Central Time, then just submit it this way?

I do but it shows up as 6 hours earlier than the time I chose. I choose for it to end at 7:30pm central time but after I submit it, it shows it as ending at 1:30pm central time.

Andreas 08-13-2005 09:46 PM

I cannot reproduce this Problem, sorry.
Did you test at my Board?

http://kirbydemos.ath.cx/forum

.Tim 08-13-2005 10:28 PM

Quote:

Originally Posted by KirbyDE
I cannot reproduce this Problem, sorry.
Did you test at my Board?

http://kirbydemos.ath.cx/forum

It doesn't give me the option to post an event at your board.

.Tim 08-13-2005 10:51 PM

Okay, here are some screenshots to show you what happens.

I choose 11pm central time and then submit, you'll see that in the first screenshot.
I submit it and in the thread, it shows up as 5pm.

Boots 08-13-2005 11:01 PM

great hack but the times are FUBAR. I'll take a look at the code and see if I can figure out whats going on.

Boots 08-13-2005 11:11 PM

When you create an event, time is saved in database as GMT

but

When displaying an event from the database the date is displayed as whatever timezone you are in (ie GMT-4 HOURS)

thats a bug...

Boots 08-13-2005 11:32 PM

if you create your event and you just manually add the timezone offset to the event it seems to display correctly.

ie my timezone is GMT -4

I created an event and made my end time +4 hours of what I actually wanted. It displays correctly now.

Andreas 08-14-2005 02:19 AM

Quote:

Originally Posted by .Tim
It doesn't give me the option to post an event at your board.

You have to join the necessary Usergroups :)
http://kirbydemos.ath.cx/forum/profi...editusergroups

I do understand your Problem, but as said I cannot reproduce it.

.Tim 08-14-2005 02:27 AM

Quote:

Originally Posted by KirbyDE
You have to join the necessary Usergroups :)
http://kirbydemos.ath.cx/forum/profi...editusergroups

I do understand your Problem, but as said I cannot reproduce it.

It works just fine on your board. :ermm:

I've tried everything I can think of, adjusting the default board timezone, my timezone. Nothing.

Andreas 08-14-2005 02:29 AM

That's, as said, my Problem: I can't reproduce the effect ...

.Tim 08-14-2005 02:32 AM

Quote:

Originally Posted by KirbyDE
That's, as said, my Problem: I can't reproduce the effect ...

Yeah I know, that's okay. I'll just tell my users about it and what to do.

Boots 08-14-2005 03:09 AM

Quote:

Originally Posted by KirbyDE
You have to join the necessary Usergroups :)
http://kirbydemos.ath.cx/forum/profi...editusergroups

I do understand your Problem, but as said I cannot reproduce it.

Your default time zone for your forum is GMT

Quote:


All times are GMT. The time now is 04:08 AM.
Set it to a different one like Atlantic Time (GMT-4) and then add an event. You will reproduce the error. When I switch my forum to GMT it works fine.

Lord Brar 08-14-2005 04:29 AM

Woeeeeeee! I was waiting for it :) Thanks.

kall 08-14-2005 05:07 AM

I can't find the Setting to allow a forum to have vbookie events posted to it. :(

Andreas 08-14-2005 12:12 PM

Quote:

Originally Posted by Boots
Your default time zone for your forum is GMT



Set it to a different one like Atlantic Time (GMT-4) and then add an event. You will reproduce the error. When I switch my forum to GMT it works fine.

I've changed the Board default Timezone to Central Time, then posted a new Event for 28.08.2005 7:30 pm Central Time:
http://kirbydemos.ath.cx/forum/showthread.php?t=19

Shows up as 29.08.2005 2:30 am, which is correct as my Timezone is GMT+1.

@Kall
ACP / Forums & Moderators / Forum Permissions

rinkrat 08-14-2005 12:48 PM

I have the same problem, like I said before.

jesus likes pie 08-14-2005 03:04 PM

woah

Boots 08-14-2005 04:01 PM

Quote:

Originally Posted by KirbyDE
I've changed the Board default Timezone to Central Time, then posted a new Event for 28.08.2005 7:30 pm Central Time:
http://kirbydemos.ath.cx/forum/showthread.php?t=19

Shows up as 29.08.2005 2:30 am, which is correct as my Timezone is GMT+1.

@Kall
ACP / Forums & Moderators / Forum Permissions

Would you like a testing account on my forum?

Andreas 08-15-2005 08:44 AM

Security Warning
This Hack contained a serious XSS vulnerbilitie.
If you are not using Version 1.0.5 Build 3 yet (eg. downloaded this Hack before 14.08.2005 19:10 CEST) I strongly recommend to update immediately to keep your installation safe.
Security Warning

kall 08-15-2005 08:49 AM

Quote:

Originally Posted by KirbyDE
@Kall
ACP / Forums & Moderators / Forum Permissions

D'oh! So it is.

Why isn't it in Forum Manager - Edit Forum (or is it Usergroup Manager?) We have to use Custom Permissions for vBookie? Just wondering.

kall 08-15-2005 09:01 AM

Oh, and.. You rock! It's working!

Quote:

If you leaev this box
bit of a typo in vbookie.php.. :)

Andreas 08-15-2005 09:04 AM

@kall
It's in Usergroup Manager as well ;)

kall 08-15-2005 09:18 AM

Quote:

Originally Posted by KirbyDE
@kall
It's in Usergroup Manager as well ;)

Maybe I spoke too soon..I can't seem to get it to allow me to bet. :(

*edit* Nevermind. Must be caching something or something. Or I'm just stupid. :) All good now.

(I did change the ucash to money (the name of the field on my forums) in the includes file...that may have helped.)


All times are GMT. The time now is 10:54 AM.

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.02109 seconds
  • Memory Usage 1,833KB
  • 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
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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