Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBookie for vBulletin 3.5 Details »»
vBookie for vBulletin 3.5
Version: 1.0.7, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 08-11-2005 Last Update: 02-17-2006 Installs: 633
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

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.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #1612  
Old 09-26-2007, 11:48 AM
Mark K Mark K is offline
 
Join Date: Aug 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed perfectly on 3.6.8, no problems at all, thx!

Note: when you have a winning bet, you should get whatever you staked back plus the odds, atm you only just get the odds small bug/error whatever you wanna call it!
Reply With Quote
  #1613  
Old 09-27-2007, 02:14 PM
jbd jbd is offline
 
Join Date: Jul 2004
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all,

We used to have vBookie integrated with vbbux/vbplaza. As that is now defunct we switched to vbCredits but had problems getting vbookie to integrate. As a result I have reinstalled vBookie but now get the following DB error when attempting to add an event..

Quote:
Database error in vBulletin 3.6.7:

Invalid SQL:
UPDATE user SET =25 WHERE < 25;

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 '=25 WHERE < 25' at line 1
Error Number : 1064
Date : Thursday, September 27th 2007 @ 04:07:43 PM
Script : http://www.mydomain.co.uk/forums/vbookie.php
Referrer : http://www.mydomain.co.uk/forums/vbo...=0&do=newevent
IP Address : xx.189.47.233
Username : thisuser
Classname : vB_Database
I am using the most recent release and have already make the required changes to the
vBookie: Redirect to vbookie.php when posting new Event plugin.

Does anyone have any advice?
Reply With Quote
  #1614  
Old 09-28-2007, 06:32 AM
jambo_1969 jambo_1969 is offline
 
Join Date: May 2007
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jbd View Post
Hi all,

We used to have vBookie integrated with vbbux/vbplaza. As that is now defunct we switched to vbCredits but had problems getting vbookie to integrate. As a result I have reinstalled vBookie but now get the following DB error when attempting to add an event..



I am using the most recent release and have already make the required changes to the
vBookie: Redirect to vbookie.php when posting new Event plugin.

Does anyone have any advice?
In your functions_vbookie.php check you have a function called...


Quote:
function vbookie_do_charity()
That is the function that gives the amount 25 if a user has less than 25 in the bank.

Code:
case 'vcash':
				$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbookie_cash=" . $vbulletin->options['vbookiegivetopoor'] . " WHERE vbookie_cash < " . $vbulletin->options['vbookiegivetopoor']);
Maybe try re-uploading the php file, overwriting the existing one ?
Reply With Quote
  #1615  
Old 09-28-2007, 02:23 PM
jbd jbd is offline
 
Join Date: Jul 2004
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reply.

I have since resolved the problem. It was caused by a legacy plugin associated with vbPlaza. The automatic uninstall of vbBux/vbPlaza leaves behind 5 enabled plugins, they are:

vBookie With vbPlaza - Do Charity
vBookie With vbPlaza - Get Richest Users
vBookie With vbPlaza - Get User Cash
vBookie With vbPlaza - Give User Cash
vBookie With vbPlaza - Take User Cash


It was the Do Charity plugin causing the error.

Disabling these plugins resolved the issue.

Those who previously had vbPlaza installed and now wish to use vbCredits (or any other custom points system) will likely need to do the same.
Reply With Quote
  #1616  
Old 09-30-2007, 04:07 PM
Deadman_014 Deadman_014 is offline
 
Join Date: Jun 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I'm using vBux and I posted an event but its not letting me bet. The white betting boxes aren't there and it says I can't bet on this event. And yes, all the permissions are right. Any help with this? I'm using 3.6.8 and I believe I've done everything correctly :/.
Reply With Quote
  #1617  
Old 10-03-2007, 10:04 PM
Geez Geez is offline
 
Join Date: Aug 2007
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BozzaJos View Post
Is it possible to remove 1 single match? Upgraded my forum and imported the database but a couple of matches appear @ OPEN and CLOSED but when I click on thread it says invalid page. Is it possible to remove those matches via phpmyadmin? If so, can anyone tell me exactly how? I ain't good with mysql and php.

Much appreciated! Thanks in advance...

*EDIT*

Never mind.. already found it! Thanks anyway!

anyone know where this can be found, and possibly how to do it? im brand new to the vb scene
Reply With Quote
  #1618  
Old 10-04-2007, 09:29 AM
timnp timnp is offline
 
Join Date: Sep 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pgowder View Post
Having a strange problem.

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

I have enough events for 3 pages, and the script shows that there should be 3 pages.

But when you click on page 2 or 3, the vbookie loads, but doesn't show any events.

Anyone seen this? Is there a fix?
Hi

We were having this problem too. Its a little bug in the code. Here is the fix.
In vbookie.php, find the line that says the following, in my copy it was line 361.

Your looking for:

PHP Code:
$pagenav construct_page_nav($pagenumber$perpage$n_page_items'vbookie.php?' $vbulletin->session->vars['sessionurl'] . "do=main&type=type"); 
and change it to:

PHP Code:
$pagenav construct_page_nav($pagenumber$perpage$n_page_items'vbookie.php?' $vbulletin->session->vars['sessionurl'] . "do=main&type=" $type); 
A very tiny change. You're changing the end of the line so that it doesn't read

PHP Code:
&type=type"); 
and so that it does read

PHP Code:
&type=" . $type); 
Hope that helps
Reply With Quote
  #1619  
Old 10-04-2007, 12:19 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by timnp View Post
Hi

We were having this problem too. Its a little bug in the code. Here is the fix.
In vbookie.php, find the line that says the following, in my copy it was line 361.

Your looking for:

PHP Code:
$pagenav construct_page_nav($pagenumber$perpage$n_page_items'vbookie.php?' $vbulletin->session->vars['sessionurl'] . "do=main&type=type"); 
and change it to:

PHP Code:
$pagenav construct_page_nav($pagenumber$perpage$n_page_items'vbookie.php?' $vbulletin->session->vars['sessionurl'] . "do=main&type=" $type); 
A very tiny change. You're changing the end of the line so that it doesn't read

PHP Code:
&type=type"); 
and so that it does read

PHP Code:
&type=" . $type); 
Hope that helps
Thanks, but my page 2 is still blank.

http://www.luckpredictions.com/vbook...pe=type&page=2
Reply With Quote
  #1620  
Old 10-04-2007, 12:30 PM
timnp timnp is offline
 
Join Date: Sep 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pgowder View Post
Thanks, but my page 2 is still blank.

http://www.luckpredictions.com/vbook...pe=type&page=2
Hi, I don't think that you can have made the change properly.
Can you check?

The link to your second page should be this: http://www.luckpredictions.com/vbook...pe=OPEN&page=2

Notice how in the one you posted it has &type=type, but the one I just posted has &type=OPEN, (OPEN would normally change depending on what type of bet you are viewing (closed, open, abandoned, etc). I can't see how you would still be having this problem if the patch wasnt applied as &type=type only has one occourence in that file and it should have been removed if you did the fix I suggested.

Also, if you keep using the link that you posted it will always be an empty page. The link its self is broken because it has the type=type problem, go to your page one and click the link to the next page each time, dont bookmark until its fixed
Reply With Quote
  #1621  
Old 10-04-2007, 12:42 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this line now:

Code:
$pagenav = construct_page_nav($pagenumber, $perpage, $n_page_items, 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "do=main&type=" . $type);
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:04 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06735 seconds
  • Memory Usage 2,348KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (8)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete