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)

ChromeDome 11-18-2011 03:06 AM

I get this error when I surf on one of the vbookie pages:

Code:

Database error in vBulletin 4.1.8:

Invalid SQL:
SELECT
              SUM(bet_amount_won) AS sumbets
              FROM vb_vbookie_bets_placed
              WHERE bet_settled='Y' AND userid=1
              AND dateline > 315532800
              GROUP BY userid;

MySQL Error  : Unknown column 'dateline' in 'where clause'
Error Number  : 1054
Request Date  : Thursday, November 17th 2011 @ 11:01:50 PM
Error Date    : Thursday, November 17th 2011 @ 11:01:50 PM
Username      : Unregistered
Classname    : vB_Database_MySQLi
MySQL Version :


Successfulsteps 12-20-2011 12:13 AM

I just upgraded to 4.1.9 and keep getting this db error. Can't settle bets nor can we make new ones or create new items to bet on:

Database error in vBulletin 4.1.9:

Invalid SQL:
SELECT
SUM(bet_amount_won) AS sumbets
FROM vbookie_bets_placed
WHERE bet_settled='Y' AND userid=2
AND dateline >
GROUP BY 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 'GROUP BY userid' at line 6
Error Number : 1064
Request Date : Monday, December 19th 2011 @ 07:10:52 PM
Error Date : Monday, December 19th 2011 @ 07:10:52 PM
Script : http://www.1stdegreefreebies.com/for...and=1324343450
Referrer : http://www.1stdegreefreebies.com/forums/index.php
IP Address : **left off on purpose**
Username : Unregistered
Classname : vB_Database
MySQL Version :

thenamesgould 12-20-2011 06:42 AM

Hi dartho, wow, another great mod from you (or ported at least) ... I've just installed this on my forum, and it should go down a treat, I reckon! (When people aren't busy posting in the girlfriend thread).

Just one simple question, where can I edit the template for the bet info? Eg:

https://vborg.vbsupport.ru/external/2011/12/22.jpg

I want to change that odds column where it says (1.10) and (0.83) to $2.10 and $1.83, which I'm correct in saying would be the actual return, wouldn't it? Just to make it a bit simpler for the less seasoned gamblers to use. Should be easy enough, whack in a $ and add one to the numbers, I assume?

Cheers for any help. :)

dartho 12-21-2011 11:05 AM

edit the vBookie: Show Events in Showthread plugin, search for
PHP Code:

$outcome['odds_decimal'] = sprintf("%0.2f", ((float)$outcome['odds_against']/(float)$outcome['odds_for'])); 

replace with
PHP Code:

$outcome['odds_decimal'] = sprintf("%0.2f", ((float)$outcome['odds_against']/(float)$outcome['odds_for'])+1); 

then edit the vbookie_outcomebits_nobet and vbookie_outcomebits temapltes and search for
HTML Code:

<td class="{vb:raw bgclass}" align="right"> ({vb:raw outcome.odds_decimal}) </td>
and change to
HTML Code:

<td class="{vb:raw bgclass}" align="right"> (${vb:raw outcome.odds_decimal}) </td>

thenamesgould 12-22-2011 06:32 AM

Thanks dartho!!! Works perfectly, of course! :)

thenamesgould 12-25-2011 11:06 AM

I'm just having a mess around with this, and I'd like the $ change to take effect on bet.odds_decimal as well ... is that possible? This is for the event info screen. I've got the $ sign in there, but can't get the 1 to add on.

SRSC 12-25-2011 12:58 PM

Hi dartho,
Please let me know where I can find the yellow word in the pictures to translate in to my language? I use "Search in Phrases" but no thing is change
Thanks

https://vborg.vbsupport.ru/external/2011/12/3.png

https://vborg.vbsupport.ru/external/2011/12/4.png

dartho 12-25-2011 10:29 PM

@SRSC, they are all phrased an can be changed in Phrase Manager.

The language in the second screen capture you have will not change until new information is posted as those statements are recorded in the database based on phrases at the time they were created.

@thenamesgould - check the vbookie.php file andsearch for ['odds_decimal'] and make changes like you did in the plugin

SRSC 12-26-2011 06:10 AM

Quote:

Originally Posted by dartho (Post 2280971)
@SRSC, they are all phrased an can be changed in Phrase Manager.

The language in the second screen capture you have will not change until new information is posted as those statements are recorded in the database based on phrases at the time they were created.

I already changed "OPEN" to new phrase but it not change in the 1st picture? or it will change from new bet created on?
please confirm that

Jakub03 01-04-2012 04:23 AM

Is it possible to change the name vCash to something else? Instead of in profiles of showing up as vCash i want it to show MPH Chips is this possible to do?


All times are GMT. The time now is 02:39 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.02706 seconds
  • Memory Usage 1,752KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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