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)

Cornie 10-07-2007 12:38 PM

This add-on is hard-encoded. Can you make this with phrases. Is better to translat in other language.

sandt38 10-07-2007 01:05 PM

Quote:

Originally Posted by evesve (Post 1354695)
Now I wait for multiplayer Texas Holdem! :up: ;)

My staff and members are clamoring for the same.


Thanks.

Andrew Green 10-07-2007 02:08 PM

Quote:

Originally Posted by Robbed (Post 1354609)
If we set the daily bonus, it seems like it awards every hour when the scheduled task runs.

I fixed that on my live site, but guess I forgot on my development one, will be fixed next update, and can be manually fixed until them if you want.

Quote:

Originally Posted by Cornie (Post 1354750)
This add-on is hard-encoded. Can you make this with phrases. Is better to translat in other language.

Yes, but that will likely be one of the last things I do.

Cigarcritic 10-07-2007 07:29 PM

DB Error when I settled a bet.

Invalid SQL:

UPDATE casino_bet_stats
SET won = won + 210
WHERE userid = 9
AND gameid =;

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 '' at line 4
Error Number : 1064

Andrew Green 10-07-2007 07:45 PM

Quote:

Originally Posted by Cigarcritic (Post 1354964)
DB Error when I settled a bet.

Invalid SQL:

UPDATE casino_bet_stats
SET won = won + 210
WHERE userid = 9
AND gameid =;

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 '' at line 4
Error Number : 1064

Fixed in next update, temporary measure:

line 21 of admincp/casino_sb_settle.php

Code:

        AND cs1.switch2='sportspool.php'
too

Code:

        AND cs1.switch2='sportspool'

Andrew Green 10-07-2007 08:19 PM

.20 is up, with a new game :)

duckdodger 10-07-2007 08:37 PM

Thanks, this is a really cool mod. I haven't even told anyone about it or put links to the page yet and my members have still found it :D

Ski-Whiz 10-07-2007 08:40 PM

Nice... Installed .20 and works flawlessly!!

SBlueman 10-07-2007 09:02 PM

Very cool. The staff is loving it so far.

Someone did ask....is it possible to add sound?

sandt38 10-07-2007 09:26 PM

I have also installed .20 and I am quite impressed. I really love this hack. I have even made my own markers to jazz up the casino a bit. I love how you made it so easy to add your own markers, too.

Is there any way to disable the lottery and sports betting pool options on the stats page? I have disabled the use of them (I use vBookie and vBCredits, thereby making the need for these non-existant) but they still show up on the stat sheets.

sinisterpain 10-07-2007 09:26 PM

The template for slots "casino_slots_play" is uncached also getting the problem hit three cherrys gives payout undefined" and the obvious fruit outside the boxes(see attached). Using IE7

Andrew Green 10-07-2007 09:26 PM

Quote:

Originally Posted by SBlueman (Post 1355028)
Very cool. The staff is loving it so far.

Someone did ask....is it possible to add sound?


Javascript and sound don't really get along very well. I know IE can do it, but I've not seen a method of doing it in other browsers.

Andrew Green 10-07-2007 09:27 PM

Quote:

Originally Posted by sinisterpain (Post 1355052)
The template for slots "casino_slots_play" is uncached also getting the problem (see attached)

Internet explorer? I can't test in that at home, and it has a tendency to screw with CSS...

Andrew Green 10-07-2007 09:29 PM

Quote:

Originally Posted by sandt38 (Post 1355051)
I have also installed .20 and I am quite impressed. I really love this hack. I have even made my own markers to jazz up the casino a bit. I love how you made it so easy to add your own markers, too.

Is there any way to disable the lottery and sports betting pool options on the stats page? I have disabled the use of them (I use vBookie and vBCredits, thereby making the need for these non-existant) but they still show up on the stat sheets.

I'll fix that for the next update, only have games that are turned on in there.

sinisterpain 10-07-2007 09:34 PM

Quote:

Originally Posted by Andrew Green (Post 1355055)
Internet explorer? I can't test in that at home, and it has a tendency to screw with CSS...

see updated post above

sandt38 10-07-2007 09:46 PM

Shoot, the issue with the dealers total is showing up in blackjack again in the .2 DL.

Andrew Green 10-07-2007 09:55 PM

Fixed file is in main post, archive is corrected. That's what I get for fixing a problem on a different computer...

sandt38 10-07-2007 09:57 PM

I just replaced the blackjack_deal.php with the .php from .12. I assume this was the correct fix (rather then having to re-dl and load the whole thing again), or was there more added to the .php for this update?

TTG 10-07-2007 10:00 PM

Installed and working perfectly using the latest version 2 vbbux / vbplaza points system.

Great addition .. thanks Andrew

Andrew Green 10-07-2007 10:06 PM

Quote:

Originally Posted by sandt38 (Post 1355073)
I just replaced the blackjack_deal.php with the .php from .12. I assume this was the correct fix (rather then having to re-dl and load the whole thing again), or was there more added to the .php for this update?


Added a new one to the first post, should replace it with that one.

sandt38 10-07-2007 10:20 PM

Quote:

Originally Posted by Andrew Green (Post 1355078)
Added a new one to the first post, should replace it with that one.

You can now split 2 different face cards. I just split a J and a K.

SBlueman 10-07-2007 10:42 PM

Slot won't work, got 3 rows fruits from the top to the bottom of my screen. got 3 cherries in a row, but it says payout undefinded.

rwilkins108 10-07-2007 10:56 PM

edit... never mind, everything works great :D

can't get slots to work in firefox, if I click Slots, it just updates the casino page....

Tulsa 10-07-2007 10:58 PM

Slots are working fine with firefox for me.

rwilkins108 10-07-2007 11:04 PM

Quote:

Originally Posted by rwilkins108 (Post 1355114)
can't get slots to work in firefox, if I click Slots, it just updates the casino page....

sorry, my mistake, updated all files but casino.php... working great now!

Thanks!

Andrew Green 10-07-2007 11:23 PM

Quote:

Originally Posted by sandt38 (Post 1355086)
You can now split 2 different face cards. I just split a J and a K.


Always could, I've never played where you couldn't?

Andrew Green 10-07-2007 11:25 PM

Quote:

Originally Posted by SBlueman (Post 1355104)
Slot won't work, got 3 rows fruits from the top to the bottom of my screen. got 3 cherries in a row, but it says payout undefinded.

Internet explorer thing, Will hopefully have a fix tomorrow. Half the problem I know how to work around, but busy for tonight, so I'll try and get this tomorrow afternoon. For now it's Firefox / Opera / etc only, no IE ;)

SBlueman 10-07-2007 11:32 PM

Quote:

Originally Posted by Andrew Green (Post 1355130)
Internet explorer thing, Will hopefully have a fix tomorrow. Half the problem I know how to work around, but busy for tonight, so I'll try and get this tomorrow afternoon. For now it's Firefox / Opera / etc only, no IE ;)

I keep trying to educate members on my site....STOP USING IE! When will they learn???

Robbed 10-08-2007 12:54 AM

Quote:

Originally Posted by Andrew Green (Post 1354792)
I fixed that on my live site, but guess I forgot on my development one, will be fixed next update, and can be manually fixed until them if you want.



Yes, but that will likely be one of the last things I do.

Was this fixed in the new version? it;s still doing it for me.

Also on the stats page if you can have per game stats like top a blackjack etc

Cigarcritic 10-08-2007 02:06 AM

Quote:

Originally Posted by sinisterpain (Post 1355052)
The template for slots "casino_slots_play" is uncached also getting the problem hit three cherrys gives payout undefined" and the obvious fruit outside the boxes(see attached). Using IE7

Same problem here with IE.

Andrew Green 10-08-2007 04:32 AM

Quote:

Originally Posted by Robbed (Post 1355186)
Was this fixed in the new version? it;s still doing it for me.

Yes, but I'm new to the product system, so it might just not be updating the times. In scheduled tasks go to "Update Casino cash" and change hour from a * to whatever time you want it to run, Middle of the night is best.

Quote:

Also on the stats page if you can have per game stats like top a blackjack etc
Yes, I'll probably expand on the stats page at some point.

rwilkins108 10-08-2007 02:17 PM

Still lovin' this casino!

In the card games, is there anyway to not refresh the screen each time you perform an action?

Also, can the user's total always be displayed instead of when just betting.

1 more, how about :
You Win or Dealer Wins in Blackjack
Instead of Pair +25, something like Pair, you win 25 for Poker

Keep up the great work!
:D

Andrew Green 10-08-2007 02:35 PM

Quote:

Originally Posted by rwilkins108 (Post 1355497)
Still lovin' this casino!

In the card games, is there anyway to not refresh the screen each time you perform an action?

The screen doesn't refresh, just the play area, card games and slot machine use AJAX and do the minimal refreshing they can get away with. So when you perform a action it clears the area and sends the request to the server for an update on what cards and buttons to display, but everything outside of that is not refreshed.

Quote:

Also, can the user's total always be displayed instead of when just betting.

1 more, how about :
You Win or Dealer Wins in Blackjack
Instead of Pair +25, something like Pair, you win 25 for Poker

Keep up the great work!
:D
When I get to phrasing I'll be looking at all my wordings and things :)

Andrew Green 10-08-2007 06:47 PM

v .21
Slots should work in Internet Explorer now
Template should cache properly
Inactive games aren't included in stats

evesve 10-08-2007 08:01 PM

Better and better!

Quote:

- Added stats page, main casino page stats rotate through the 5 on this page now.
Can You make a choise in CP for the rotate?
I prefer to have "Richest Players" there always...

Andrew Green 10-08-2007 08:05 PM

I can, but for now change this:

Code:

        if($ismainpage)
                $page = (rand() % 5) + 1;

too this:

Code:

        if($ismainpage)
                $page =5;

in the stats.php file on line 10 & 11.

And it will only show the richest players box.

Jason Black 10-08-2007 08:40 PM

so the casino files is on it's own in the main forum root directory? or they go in a seperate floder?

Uhmmm the casino.php, goes in the admin cp right?

Andrew Green 10-08-2007 08:42 PM

casino.php goes in your main forum directory. On your site that would be here:

http://www.rapfeinds.com/casino.php

everything else goes in the folders the archive has them in

Jason Black 10-08-2007 08:53 PM

Ohhhhhhhhhh i see
Thanks Andrew....you are the greatest

kylek 10-08-2007 08:55 PM

Quote:

Originally Posted by Andrew Green (Post 1355707)
I can, but for now change this:

Code:

    if($ismainpage)
        $page = (rand() % 5) + 1;

too this:

Code:

    if($ismainpage)
        $page =5;

in the stats.php file on line 10 & 11.

And it will only show the richest players box.

What would be needed to just display Most Won always instead of richest players?
Thanks!!


All times are GMT. The time now is 02:54 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.04503 seconds
  • Memory Usage 1,834KB
  • 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
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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