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)

Andreas 08-11-2005 10:00 PM

vBookie for vBulletin 3.5
 
vBookie

Introduction

This is a Port of the original vBookie Hack created by tdjrico; full credits to him for the idea and the kind permission to port his work :)

A t t e n t i o n
This Hack is unsopported and incompatible with vBulletin 3.6+
You are hereby advised to not use it.
Please do not ask me about support and/or updates - there will be none.

Dream 08-12-2005 02:00 AM

sounds cool gonna test this

Neal-UK 08-12-2005 02:08 AM

Quote:

Originally Posted by Dream
sounds cool gonna test this

ohh you nice* thing, gonna install this. Excellent work.

EDIT: * thought i'd better remove sexy just in case your a male :ermm:

Dream 08-12-2005 02:24 AM

I am, but im still sexay

tho I didnt make this mod, kirby did

you talking to me?

Neal-UK 08-12-2005 02:29 AM

Quote:

Originally Posted by Dream
I am, but im still sexay

tho I didnt make this mod, kirby did

you talking to me?

lol, no.

Where are the forum settings? I can turn it on and off via vb options but there's no extra menu on the left. I've rebuilt bitfields, etc

Andreas 08-12-2005 02:32 AM

Well, there are no new Entries in the Nav :)

=> Usergroup Manager and Forumpermissions

Rebuild Bitfields is not necessary, the Product XML does that already.

Dream 08-12-2005 02:33 AM

oh ok, you quoted me

Neal-UK 08-12-2005 02:35 AM

Quote:

Originally Posted by KirbyDE
Well, there are no new Entries in the Nav :)

=> Usergroup Manager and Forumpermissions

Rebuild Bitfields is not necessary, the Product XML does that already.

right all settings are correct, however when I go to create a new post the option to add a vBookie event is not showing

Andreas 08-12-2005 02:39 AM

LOL, all Plugins in the XML are disabled.
Might be a good Idea to enable them ^.^

Neal-UK 08-12-2005 02:44 AM

Quote:

Originally Posted by KirbyDE
LOL, all Plugins in the XML are disabled.
Might be a good Idea to enable them ^.^

Error when posting an event:

Quote:

Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:
SELECT FROM FORUM WHERE userid='';

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 'FROM FORUM WHERE userid=''' at line 1
Error Number : 1064
Date : Friday, August 12th 2005 @ 03:44:04 AM
Script : http://www.******.com/forum/showthread.php?t=1711
Referrer : http://www.******.com/forum/vbookie....=0&do=newevent

Andreas 08-12-2005 02:48 AM

That is a really strange corrupted Query ... doesn't happen to me.
When exactly do you get this?

Edit: I cant find a reference to FORUM (uppercase) in any Query.

Could it be that this is caused by another Hack?

Neal-UK 08-12-2005 02:49 AM

Quote:

Originally Posted by KirbyDE
That is a really strange corrupted Query ... doesn't happen to me.
When exactly do you get this?

after filling in all the vBookie bet details and then clicked submit. Will having a db prefix effect anything?

Andreas 08-12-2005 02:54 AM

It shouldn't. My Testbed has a Prefix too.

Neal-UK 08-12-2005 02:56 AM

Quote:

Originally Posted by KirbyDE
It shouldn't. My Testbed has a Prefix too.

FORUM is my table prefix, 'FORUMusergroup' for example.

Andreas 08-12-2005 03:00 AM

I C.
Then the above query doesn't even make less sense as it's totally missing a Table Name ... which could be caused by uCash

DS MrSinister 08-12-2005 03:04 AM

Nice job KirbyDE. now i need to get my test site backup and running. :banana:

Neal-UK 08-12-2005 03:05 AM

Quote:

Originally Posted by KirbyDE
I C.
Then the above query doesn't even make less sense as it's totally missing a Table Name ... which could be caused by uCash

yup, if i dont use ucash for vbookie it works fine

Andreas 08-12-2005 03:12 AM

Try the attached File please. If the uCash feature does work then i'll update the ZIP.

Neal-UK 08-12-2005 03:21 AM

Quote:

Originally Posted by KirbyDE
Try the attached File please. If the uCash feature does work then i'll update the ZIP.

lol, too late. Just removed uCash as no one bothered with it as no shop was available and vBookie was a very popular mod.

I'll try it however on my other forum (Second link in sig).

Neal-UK 08-12-2005 03:35 AM

Quote:

Originally Posted by nealparry
lol, too late. Just removed uCash as no one bothered with it as no shop was available and vBookie was a very popular mod.

I'll try it however on my other forum (Second link in sig).

No, get this:

Quote:

Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:
INSERT INTO vbookie_bets_placed (option_id, item_id, userid, bet_amount_placed, bet_odds_against, bet_odds_for, bet_private) VALUES (13, 7, 1, 50, 2, 1, 'N');

MySQL Error : Got error 28 from table handler
Error Number : 1030
Date : Friday, August 12th 2005 @ 05:29:34 AM
Script : http://www.meeting4fun.com/forum/vbookie.php
Referrer : http://www.meeting4fun.com/forum/showthread.php?t=75
IP Address : 195.92.168.164

BigIke 08-12-2005 04:34 AM

Kirby, I'm gonna come out and say it. I love you.

taffy056 08-12-2005 08:07 AM

Kirby,

Thanks very much for this hack, I am not saying I love you but it comes close :) by the way installed with no problems!

taffy

Andreas 08-12-2005 09:22 AM

@nealparry
That is a mySQL Problem then ... Disk full? Table damaged?

Link14716 08-12-2005 10:43 AM

Quote:

Originally Posted by KirbyDE
@nealparry
That is a mySQL Problem then ... Disk full? Table damaged?

Error code 28: No space left on device.

Neal-UK 08-12-2005 12:18 PM

Quote:

Originally Posted by Link14716
Error code 28: No space left on device.

naff hosting company, this site is still with the poor one. Glad I moved the main one a few weeks ago.

Gizmo5h1t3 08-12-2005 12:32 PM

works a charm..but i havent enabled ucash yet..;)

MrNase 08-12-2005 01:45 PM

I can't edit bets?! I tried to edit the odds but that didn't work..

rinkrat 08-12-2005 02:15 PM

Quote:

Originally Posted by KirbyDE
Try the attached File please. If the uCash feature does work then i'll update the ZIP.


I came to complain about the same error with the no name table and this fixed it (with Ucash). Now I can create a bet. So far so good. Go ahead and add that to the zip because it fixed the error.

rinkrat 08-12-2005 02:19 PM

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.

Biker_GA 08-12-2005 02:45 PM

Kirby. When I make the change to the SHOWTHREAD template, I receive this error:

Quote:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/social/public_html/forum/includes/adminfunctions_template.php(3510) : eval()'d code on line 543

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

TTG 08-12-2005 03:23 PM

Installed and working well .. thanks for working on the conversion KirbyDE .. great job.

Gizmo5h1t3 08-12-2005 04:30 PM

used the attached .php file, now it works fine with RC2...and ucash

TTG 08-12-2005 05:38 PM

Like most hacks .. this one adds quite a few templates to the list in your style manager.
Anyone wanting to tidy up their templates :-

edit your includes/adminfunctions_template.php .. search for
'aaa' => 'AAA Old Backup'

add this above 'vbookie' => 'vBookie',

Link14716 08-12-2005 06:50 PM

Quote:

Originally Posted by TTG
Like most hacks .. this one adds quite a few templates to the list in your style manager.
Anyone wanting to tidy up their templates :-

edit your includes/adminfunctions_template.php .. search for
'aaa' => 'AAA Old Backup'

add this above 'vbookie' => 'vBookie',

You don't need to do a file edit for that. I forget the name of the hook, but there is one.

turfy 08-12-2005 08:21 PM

Real Time Odds ? :(

Andreas 08-12-2005 08:28 PM

@MrNase
Confirmed. Gonna look at that.

@rinkrat
The Time displayed in the Thread follows your Timezone Settings, might this be the issue?
If not please explain the problem a bit further :)

@Biker_GA
You are doing smth. wrong.

@turfy
Don't understand your comment, sorry.

I've updated the ZIP with the modified functions_vbookie.php, so uCash should work now.
Also Templates are now grouped in Style Manager.

turfy 08-12-2005 09:04 PM

Real time is Odds who depends of the betting (pari mutuel).

In vbookie you choose the odds at the beginning and the odds don't change. I hope an option who the odds change with betting, the most bet is the favorite. The final and paid odd is the odd at the end time. Sorry for my english. You understand ?

Andreas 08-12-2005 09:13 PM

I don't understand a word, sorry :)
If somebody did, would be nice if he could explain it to me. Thanks.

FASherman 08-12-2005 09:23 PM

Bets determine the odds...

Lets say I have 100 bets spread out over 6 possibilities.

Option 1: 40 bets odds 2:5
Option 2: 20 bets odds 1:5
Option 3: 15 bets odds 3:20
Option 4: 18 bets odds 9:50
Option 5: 5 bets odds 1:20
Option 6: 2 bets odds 1:50

Odds are ever changing based on the betting trends. Every single new bet changes the odds slightly.

Andreas 08-12-2005 09:28 PM

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


All times are GMT. The time now is 11:57 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.02753 seconds
  • Memory Usage 1,820KB
  • 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
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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