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)

Andrew Green 10-23-2007 06:58 PM

Quote:

Originally Posted by 74corvette (Post 1366946)
Great Mod, at least my members have a way to loose the vbCredits now. They were starting to get restless.

I do have a couple problems that I didnt see an resolution for. One is the Richest Player field being blank. I'm using the Casino v4.0 mod, fresh install on a VBskinworks template with vbcredits. Is there a way to point that to VBcredits so the field isn't blank? Also I noticed While playing Slots, the payout amount doesn't show aligned in the payout box, it sits high in the box and covers where it says payout.

Any help is appreciated,

Great Mod.

I'm really not sure why that isn't liking the credits field, other custom cash fields seem to work. I did make some changes on my working version, hopefully that will solve it.

evesve 10-23-2007 07:12 PM

I have one more suggest...

The settings for my chip is casino/cards/chip-1.png
Can I get a setting for cards like casino/cards/w-
so I can use my own cards named w-clubs-5-150.png

ry215 10-23-2007 07:31 PM

for cards.....hmmmm

duckdodger 10-23-2007 07:34 PM

Where can I edit the background color for $inpoker?

The Bish 10-23-2007 08:25 PM

Quote:

Originally Posted by Andrew Green (Post 1366917)
I'll put all the payouts to casino norms with the next update, then you can watch him bankrupt himself again :)

Curious if this means that there is now way for them to cheat.

I am about ot have a week long Texas Hold'em tourney where everyone buys in at $20 and every day leading up to Friday is a 10 person game that evening. The eventual winner is going to get quite a bundle. So if there is a way to cheat I need to know to watch out for it.

Once again... awesome mod!

Andrew Green 10-23-2007 08:36 PM

THere is no way to cheat that I know of, but I would not recommend what you are planning at this stage. Game is still in development stages, and while fairly stable it does have the odd glitch, occasionally dropping players and things. Even then this is not at all set up for tournaments.

And depending on where you are, you'd really want to watch the legal issues around that.

Andrew Green 10-23-2007 08:37 PM

Quote:

Originally Posted by duckdodger (Post 1366972)
Where can I edit the background color for $inpoker?

You can edit the plugin "casino players in poker" which is what creates it.

The Bish 10-23-2007 08:50 PM

Quote:

Originally Posted by Andrew Green (Post 1367000)
THere is no way to cheat that I know of, but I would not recommend what you are planning at this stage. Game is still in development stages, and while fairly stable it does have the odd glitch, occasionally dropping players and things. Even then this is not at all set up for tournaments.

And depending on where you are, you'd really want to watch the legal issues around that.

Perfectly legal as long as the house, my site, does not make money. I play Texas Hold'em with a couple officers of the law at a cigar shop around the corner.

Anyway, we will have a couple practice rounds to see if anything substantial happens which makes us not want to try it out for some real money. Maybe I should read the entire thread to see what isues people have had :o However, I am not having some of the issues brought up by some here.

towermatt 10-23-2007 09:33 PM

One of my members just reported that the slots just keep spinning and spinning forever.

I had no idea because I hadn't played it but the test looks like that is the case.

2 minutes and they are still going...

Andrew Green 10-23-2007 09:57 PM

Reupload the slots_ajax.php file, what you have is showing a syntax error that shouldn't be there?

towermatt 10-23-2007 09:59 PM

That did it!

Here is my plan from here on out...look for the .php file that has something to do with it and re upload. :lol:

Seriously appreciate the help again Andrew

teedizz 10-24-2007 12:23 AM

Andrew, when you get a minute can you please give this post a look as I see im not the only one with this problem. Thanks

https://vborg.vbsupport.ru/showpost....&postcount=952

teedizz 10-24-2007 12:26 AM

also, if i want to makethe background of $inpoker transparent, how would I edit this code to make it do so?

Code:

$pokertimeout = time() - 30;

$result = $db->query_read("SELECT count(userid) AS np FROM casino_texasholdem_whoisin WHERE lastcheck > $pokertimeout");

$row = $db->fetch_array($result);

$np = $row[np];

if($np > 0)
{
$inpoker = "
<table class='tborder' cellpadding='$stylevar[cellpadding]' cellspacing='$stylevar[cellspacin]' border='0' width='100%' align='center' style='border-bottom-width:0px'>
<tr><td>
There are currently $np users playing Texas Holdem. Click <a href='casino.php?do=texasholdem'>here</a> to join them.
</td></tr></table><br/>";
}

Thanks again and sorry to bug you..lol

Andrew Green 10-24-2007 12:31 AM

Quote:

Originally Posted by teedizz (Post 1367122)
Andrew, when you get a minute can you please give this post a look as I see im not the only one with this problem. Thanks

https://vborg.vbsupport.ru/showpost....&postcount=952

;)
https://vborg.vbsupport.ru/showpost....postcount=1001

I think I have it solved, but I don't use the vbcredits mod so I won't be sure until I post it and get some feedback.

Quote:

Originally Posted by teedizz (Post 1367124)
also, if i want to makethe background of $inpoker transparent, how would I edit this code to make it do so?

Thanks again and sorry to bug you..lol

Try this:

Code:

$pokertimeout = time() - 30;

$result = $db->query_read("SELECT count(userid) AS np FROM casino_texasholdem_whoisin WHERE lastcheck > $pokertimeout");

$row = $db->fetch_array($result);

$np = $row[np];

if($np > 0)
{
$inpoker = "
<table style='width:100%;'>
<tr><td>
There are currently $np users playing Texas Holdem. Click <a href='casino.php?do=texasholdem'>here</a> to join them.
</td></tr></table><br/>";
}


darkilla2 10-24-2007 01:53 AM

good work andrew

blind-eddie 10-24-2007 03:34 AM

Quote:

Originally Posted by evesve (Post 1366881)
There is no "All In" in Limit Poker.
OK, if the bet is 4 and I only have 1, than it must be possible to bet "All In".
I don?t know how it is here...

I know that, but it would be a nice option to have....

Andrew Green 10-24-2007 03:45 AM

v.50 is up, has a bunch of little fixes and a new slots machine :)

Also changes the payouts back to be more along the lines of casino norms.

Andrew Green 10-24-2007 03:46 AM

Quote:

Originally Posted by blind-eddie (Post 1367201)
I know that, but it would be a nice option to have....

While a no limit tournament game is a possibility in the future, under the current rules a all in button does not fit.

Freesteyelz 10-24-2007 03:53 AM

One thing I love about new mods are the energy that's put into it. Updates come like a swarm of flies on a town's picnic. :D The potential of this mod is fantastic. Great work, Andrew. Thanks and keep it up. :)

yoyoyoyo 10-24-2007 04:11 AM

thanks for the update

Andrew Green 10-24-2007 04:13 AM

Right under .50 :)

Just reuploaded it, a 2 was a 3, so it disappeared for a few seconds ;)

yoyoyoyo 10-24-2007 04:25 AM

Quote:

Originally Posted by Andrew Green (Post 1367216)
Right under .50 :)

Just reuploaded it, a 2 was a 3, so it disappeared for a few seconds ;)

yeah I saw that so I changed my "where is it?" post to a thanks post ;) lol

Andrew Green 10-24-2007 04:45 AM

my guess is that one of the files didn't overwrite properly, or a template needs reverting.

madotds 10-24-2007 05:03 AM

First of all THANK U for this great mod I have "Clicked Install" Voted For MOM and Rated ***** I am on V.40 and as soon as i have finished this post i will be upgrading :) I am very happy with this mod the way it is but if you find yourself running out of ideas and your getting bored:p maybe you could consider the possibility of the following adons.
  • option in admin cp to set custum % payout on slots etc so you can adjust it with ease
  • More than one instance of 10 player poker running at the same time for buisier forums. ( Not mine as yet )

Regards

Mark

leeman 10-24-2007 06:50 AM

Quote:

Originally Posted by samorite (Post 1366655)
got it running fine with Inferno Shout box pro but i had problems when i showed shoutbox on any of the casino games

hope that helps

Well as I said.

I have Lite and the funny thing now is when I move the Inferno Shoutbox: Deploy Shoutbox plugin to forum home complete (Wich disables the shoutbox for me) everything works...

Then when I move it back to global_complete the Casino dies.. (TexasHolem, Stud, Video Poker and Black Jack)

"Sniff"

I have temporary allowed guests to use the casino if someone wanna see the problem.

www.insanetrain.com/forums

Freesteyelz 10-24-2007 08:33 AM

Again, you're doing an awesome job, Andrew. :) I have a question:

I've read in this thread that $inpoker does not display in vBadvanced pages; it also doesn't display in Photoplog gallery or ibProArcade pages. That is when $inpoker is in the navbar.

So I added $inpoker in the footer template just as a test and it displayed in the vBadvanced, Photoplog gallery pages but not the ibProArcade pages. I thought that was interesting.

I understand that you can only support within the scope of your mod. Though, I'm wondering if there's a way to have $inpoker display in all pages by hook or edit of code?

Mark.B 10-24-2007 10:25 AM

Quote:

Originally Posted by Freesteyelz (Post 1367311)
Again, you're doing an awesome job, Andrew. :) I have a question:

I've read in this thread that $inpoker does not display in vBadvanced pages; it also doesn't display in Photoplog gallery or ibProArcade pages. That is when $inpoker is in the navbar.

So I added $inpoker in the footer template just as a test and it displayed in the vBadvanced, Photoplog gallery pages but not the ibProArcade pages. I thought that was interesting.

I understand that you can only support within the scope of your mod. Though, I'm wondering if there's a way to have $inpoker display in all pages by hook or edit of code?

The answer is, you can easily make it display in all pages.

I'm in an internet cafe at the moment so I can't post the exact instructions, however in a few hours I shall be at home and will do so.

The basics are:

vBadvanced, there is an option in the AdminCP (it's under page editing I think) , you can add a variable to a list (you miss off the $ at the start though, so just add inpoker)

Photoplog is much the same, there's an option in the AdminCP and you add the variable without the $ (so just add inpoker)

IBProArcade, you edit the file /arcade/functions.php, there is a line in there with a load of variables, and you add $inpoker to the end (this time you DO need the $ at the start). It needs a comma as well to separate it from the previous variable.

Sorry if this is bit vague, but I'll post exact instructions later on when I get home (uinless someone beats me to it).

Wolf_Hook 10-24-2007 10:45 AM

The addition of a percentage setting in the admin panel would be a god send as my board now has it's first millionaire.

Freesteyelz 10-24-2007 10:57 AM

@Mark.B:

Thanks a ton! I've managed to get $inpoker to work in Photoplog, vBadvanced pages and ibProArcade pages. I did not think about using the variable options for the first two.

1. Instructions for vBadvanced:

Admin CP --> vBa CMPS --> Default Settings --> Main Options --> "Portal Output Global Variables" add:

Code:

inpoker

2. Instructions for Photoplog:

Admin CP --> Photoplog Pro --> General Settings --> PhotoPlog Pro General Settings --> Global Variables and add:

Code:

inpoker

3. Instructions for ibProArcade:

In FTP go to arcade/functions/functions.php and find:

Code:

        global $header, $vbphrase, $vboptions, $stylevar, $headinclude, $bbuserinfo, $session, $show, $pmbox;

And replace it with:

Code:

        global $header, $vbphrase, $vboptions, $stylevar, $headinclude, $bbuserinfo, $session, $show, $pmbox, $inpoker;


Thanks again, Mark. :up:

BuckRodgers 10-24-2007 11:51 AM

okie done update got a few problems,

1, ninja slots. when you place your bet the reels just keep spinning never stop ?

2, more stats. when i click on the more stats still getting db error
Code:

Database error in vBulletin 3.6.8:

Invalid SQL:

                SELECT bet, won, cs1.switch2
                FROM casino_settings AS cs1
                LEFT JOIN casino_settings AS cs2 ON cs1.switch1 = cs2.switch1 
                LEFT JOIN casino_bet_stats ON cs1.switch1 = gameid
                WHERE cs1.settingname = 'gamename'
                AND cs2.settingname = 'gameactive'
                AND cs2.switch2 = '1'
                GROUP BY gameid;

MySQL Error  : The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
Error Number : 1104
Date        : Wednesday, October 24th 2007 @ 01:46:45 PM
Script      : http://www.datadrome.co.uk/forum/casino.php?do=stats
Referrer    : http://www.datadrome.co.uk/forum/casino.php
IP Address  :
Username    : Samorite
Classname    : vb_database

3, admin cp, in "Games Available" when i try to update settings i get this db error

Code:

Database error in vBulletin 3.6.8:

Invalid SQL:

                SELECT cs1.switch1 AS gameid, cs1.switch2 AS gamefile, cs2.switch2 AS gamename, cs3.switch2 AS gamedesc, cs4.switch2 AS active
                FROM casino_settings AS cs1, casino_settings AS cs2, casino_settings AS cs3, casino_settings AS cs4   
                WHERE cs1.switch1=cs2.switch1
                AND cs1.switch1= cs3.switch1
                AND cs1.switch1= cs4.switch1
                AND cs1.settingname='gamefile'
                AND cs2.settingname='gamename'
                AND cs3.settingname='gamedesc'
                AND cs4.settingname='gameactive';

MySQL Error  : The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
Error Number : 1104
Date        : Wednesday, October 24th 2007 @ 01:49:39 PM
Script      : http://www.datadrome.co.uk/forum/admincp/casino_settings.php?gamename1=Video+Poker&gamedesc1=Jacks+or+better+to+win.&gameactive1=1&gamename2=Blackjack&gamedesc2=Classic+Casino+Game.&gameactive2=1&gamename3=Sports+Betting+Pool&gamedesc3=Place+bets+on+upcoming+events.&gameactive3=1&gamename4=Lottery&gamedesc4=Buy+into+the+lottery&gameactive4=1&gamename5=Slots&gamedesc5=3+wheel+slot+machine&gameactive5=1&gamename6=Texas+Hold+&gamedesc6=Limit+game+of+Poker%2C+up+to+10+players&gameactive6=1&gamename7=Let+em+Ride&gamedesc7=5+Card+stud+variation&gameactive7=1&gamename8=Ninja+Slots&gamedesc8=3+wheel+ninja+slot+machine&gameactive8=1&submit=Update+Games
Referrer    : http://www.datadrome.co.uk/forum/admincp/casino_settings.php
IP Address  :
Username    : Samorite
Classname    : vb_database

any help is greatly recived as allways :)

Andrew Green 10-24-2007 12:03 PM

Try this,

bellow
Code:

require_once('global.php');
in both stats.php and casino_settings.php add:

Code:

$db->query("SET MAX_JOIN_SIZE = 10000000");

BuckRodgers 10-24-2007 12:20 PM

Quote:

Originally Posted by Andrew Green (Post 1367416)
Try this,

bellow
Code:

require_once('global.php');
in both stats.php and casino_settings.php add:

Code:

$db->query("SET MAX_JOIN_SIZE = 10000000");

edit: do you mean put it under the line require_once('global.php'); ?

Mark.B 10-24-2007 12:29 PM

Quote:

Originally Posted by Freesteyelz (Post 1367376)

1. Instructions for vBadvanced:

Admin CP --> vBa CMPS --> Default Settings --> Main Options --> "Portal Output Global Variables" add:

Code:

inpoker

Glad it worked...

Just to add, in vBadvanced 3.0, the instructions are slightly different:

AdminCP > vbaCMPS > Edit Pages > Default/Homepage >
Scroll down to "Main Options" and expand the block (click the + sign)
Portal Output Global Variables is in there.

Andrew Green 10-24-2007 12:45 PM

Quote:

Originally Posted by samorite (Post 1367425)
edit: do you mean put it under the line require_once('global.php'); ?

Yes.

Andrew Green 10-24-2007 12:46 PM

Quote:

Originally Posted by Freesteyelz (Post 1367376)
@Mark.B:

Thanks a ton! I've managed to get $inpoker to work in Photoplog, vBadvanced pages and ibProArcade pages. I did not think about using the variable options for the first two.

Another solution which should work would be to put the "$inpoker" at the bottom of the header, rather then the navbar. It will have it appear in a slightly different place, but I think it will work.

jasculs 10-24-2007 01:03 PM

Hey Andrew,

For the Ninja Slots you have a duplicate payout in the table

2 x Stars - shows up twice. That is what I saw on your martial arts site

Andrew Green 10-24-2007 01:06 PM

Quote:

Originally Posted by jasculs (Post 1367444)
Hey Andrew,

For the Ninja Slots you have a duplicate payout in the table

2 x Stars - shows up twice. That is what I saw on your martial arts site

Thanks, it's correct in the product file, just wasn't on my site :)

NFLfbJunkie 10-24-2007 01:19 PM

My lottery ran for the first time last evening at 10 PM EST and I guess there were no winners. When I look at the past draws, there is a draw date listed, but nothing under the 'numbers' or 'winners' coulmns of the table. When I select the 'upcoming draw' link, all I get is "No Draw Active at this time, please check back later". I have the draw date set for every day but Sunday. I currently have Version .33 installed

BuckRodgers 10-24-2007 01:21 PM

Quote:

Originally Posted by Andrew Green (Post 1367436)
Originally Posted by samorite
edit: do you mean put it under the line require_once('global.php'); ?

Yes..

found it on casino_settings.php carnt see it on stats.php ?

Andrew Green 10-24-2007 01:23 PM

looks like the cron task isn't running, there was a problem in one of the versions, but I can't remember which it was.

You can run the task manually, Scheduled Tasks -> Casino Lotto draw, but you may have to upgrade to the latest version if it gives you a error. Just make sure you overwrite all files, including the ones in the admincp folder.


All times are GMT. The time now is 12:27 AM.

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.03825 seconds
  • Memory Usage 1,857KB
  • 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
  • (13)bbcode_code_printable
  • (17)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
  • (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