vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Casino (w/ 10 player poker) (https://vborg.vbsupport.ru/showthread.php?t=159151)

tiger_scot 01-19-2008 11:19 AM

I have error:

Parse error: syntax error, unexpected '<' in /home/harved2/public_html/casino.php(135) : eval()'d code on line 1

sandt38 01-19-2008 12:44 PM

Quote:

Originally Posted by wickedstangs (Post 1424230)
Just upgraded to .91 and the Ajax games arent working, the slots won't stop, and also on the roulette table.

reload casino.php

wolfyman 01-19-2008 06:17 PM

My sports mod wants to add bets with up to 30 options. Is this possible?

Andrew Green 01-19-2008 07:45 PM

It was, but it needs a couple of edits to get it back on track. (Was supposed to be only 1)

sportspool.php

First line,

Code:

$maxoutcomes = 10;
change the 10 to 30

Second, on line 297:
Code:

        for($x = $x+1; $x < $11; $x++)
should be:
Code:

        for($x = $x+1; $x < $maxoutcomes+1; $x++)

Crapaddict 01-19-2008 09:59 PM

Excellent mod, our users love it and are posting frenzy just for the cash :D

Installed .91 few days ago, and have a few comments;
  1. (minor)
    After importing the xml, i was searching all over the admincp for the games section.
    It took me a while before i found out i had to refresh the left-frame of the admincp. ;)

  2. (minor)
    I needed to set the sports betting groups to be able to set some games to bet on.
    I first was under the assumption that the admingroup should have the neccessary rights by default. Maybe this could be documented more clearly?

  3. (minor)
    If you bet - for instance - $20 in Blackjack, you have to move your mousecursor to click twice on the same chip because the phrase "place your bet" dissapears, moving all chips aside.
    rather than dissapearing the phrase, just hiding it would be an idea?

  4. I get reports from blackjack taking away money and simply freezing now and then.
    there are some javascript errors reported. (have a look at the attached image.)
    Used browser is IE7 :eek:

  5. I inserted all matches for the european soccer championship into the sports betting,
    realizing it became a lot of scrolling afterwards. (24 matches times three possible outcomes: team 1 or 2 wins, and a tie)
    I came up with the idea to make a "Future events" group, and by default only fetch events from the database which occur within 21 days from now.
    My simple solution: (sportspool.php)
    PHP Code:

    (line 339 and up:)
        if (
    $recentevents == 1)
        {
            
    $time time();        
            
    $time2 time() - (14 24 60 60);        
            
    $query "SELECT * FROM casino_sb_events WHERE groupid = $groupid AND eventdate > $time2 AND eventdate < $time ";
        }
        else if (
    $recentevents == 2)
        {
            
    $time time();        
            
    $query "SELECT * FROM casino_sb_events WHERE groupid = $groupid AND eventdate < $time";
        }
        else if (
    $recentevents == 3)
        {
            
    $time time();        
            
    $query "SELECT * FROM casino_sb_events WHERE groupid = $groupid AND result IS NULL";
        }
        else if (
    $recentevents == 4)     // Add a fourth event to fetch all events.
        
    {
            
    $time time();        
            
    $query "SELECT * FROM casino_sb_events WHERE groupid = $groupid AND result IS NULL";
        }
        else 
        {
            
    $time time();    
            
    // Add a variable to set the treshold for upcoming events
            
    $time3 time() + (21 24 60 60);    
            
    // Alter the query to not fetch events occuring after $time3
            
    $query "SELECT * FROM casino_sb_events WHERE groupid = $groupid AND (eventdate > $time AND eventdate < $time3) AND result IS NULL";
        } 

    (Added a recentevents #4, and changed the default query...)
    Maybe you could add something similar in future revisions?

    One could bet on future games if one knows the url, but it is less crowdy in the frontend.
    offcourse you can add the link in the casino_sportspool_main template if condition=$canedit so it is easy accessible for usergroups with the appropiate rights.

    (just an idea ;))

lurkerx 01-20-2008 09:00 PM

I had an error on the install and I tried to uninstall and reinstall and now I get this error

Code:


Database error in vBulletin 3.6.8:
 
Invalid SQL:
ALTER TABLE user ADD casino_cash integer default 250;
 
MySQL Error : Duplicate column name 'casino_cash'


sweede 01-20-2008 09:29 PM

Andrew you should add the $vbulletin->db->HideErrors(); Show errors around that alter statement. it probably would have reduced the number of posts in this thread by 1/2

Mark.B 01-21-2008 05:42 AM

Quote:

Originally Posted by lurkerx (Post 1425420)
I had an error on the install and I tried to uninstall and reinstall and now I get this error

Code:


Database error in vBulletin 3.6.8:
 
Invalid SQL:
ALTER TABLE user ADD casino_cash integer default 250;
 
MySQL Error : Duplicate column name 'casino_cash'


Please use the search facility to search this thread. That question has been asked (and answered) around 2,584 times.

Andrew Green 01-21-2008 02:24 PM

Quote:

Originally Posted by lurkerx (Post 1425420)
I had an error on the install and I tried to uninstall and reinstall and now I get this error

Code:


Database error in vBulletin 3.6.8:
 
Invalid SQL:
ALTER TABLE user ADD casino_cash integer default 250;
 
MySQL Error : Duplicate column name 'casino_cash'



http://vbgaming.org/forum/showthread.php?t=130

skcyber 01-21-2008 07:50 PM

I've a problem ... I can't change the default cash ! It is set up on 0 and I can't put an other amount :(


All times are GMT. The time now is 11:37 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.04956 seconds
  • Memory Usage 1,764KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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