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)

bhen13 10-03-2007 02:39 PM

what about more games?

Andrew Green 10-03-2007 02:41 PM

Quote:

Originally Posted by bhen13 (Post 1352164)
what about more games?


More games are coming, got to get all the issues with these sorted out first ;)

Anyways, I'm sending you something to try out.

bhen13 10-03-2007 02:47 PM

ok , thanks

Mark.B 10-03-2007 02:49 PM

The "main" templates start with
Code:

<html>
<head>

This should actually be:
Code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>

It seems to cause some issues with styles otherwise.

Devil Woman 10-03-2007 06:30 PM

This may sound daft but how do I get this to work with vbcredits?

I have searched but can't find the setting to add to make it work with vbcredits.

Any help is greatly appreciated.

Andrew Green 10-03-2007 06:33 PM

In the admincp you can set the field that it uses for cash. By default this is "casino_credits" but can be changed, just change it to what vbcredits uses. (vbcredits maybe? I don't use it so thats just a guess)

nickster 10-03-2007 08:22 PM

At the top of my page it says

Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php(237) : eval()'d code on line 2
http://keybase.org/forum/casino.php

any help?

Andrew Green 10-03-2007 08:38 PM

Quote:

Originally Posted by nickster (Post 1352347)
At the top of my page it says

Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php(237) : eval()'d code on line 2
http://keybase.org/forum/casino.php

any help?

That's a strange one, I'll register on your site tonight and poke around in it, and see what global.php might be trying to do at that point, My guess is it's conflicting with something else in there.

I see to <body> tags on that page, which should not be happening, so something is going funny somewhere in there.

sandt38 10-03-2007 10:52 PM

Quote:

Originally Posted by Devil Woman (Post 1352297)
This may sound daft but how do I get this to work with vbcredits?

I have searched but can't find the setting to add to make it work with vbcredits.

Any help is greatly appreciated.

Quote:

Originally Posted by Andrew Green (Post 1352298)
In the admincp you can set the field that it uses for cash. By default this is "casino_credits" but can be changed, just change it to what vbcredits uses. (vbcredits maybe? I don't use it so thats just a guess)

Should just be "credits" actually, not vBCredits ;)

I edited this on my board and it worked great

sandt38 10-03-2007 11:10 PM

For the video poker i get the following errors:
Quote:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /casino/vidpok_redeal.php on line 151

Warning: Wrong parameter count for max() in /casino/vidpok_redeal.php on line 187

Warning: Wrong parameter count for min() in /casino/vidpok_redeal.php on line 187
Line 151-71 in the casino/vidpok_redeal.php file reads:

Quote:

while($row=mysql_fetch_array($result)) {
$f[$i] = $row['card'] % 13;
$s[$i] = floor($row['card']/13);
$f2 = $f[$i];
$s2 = $s[$i];
$fcount[$f2]++;
$scount[$s2]++;
if($s2==0)$cardfile = "casino/cards/spades-";
else if($s2==1)$cardfile = "casino/cards/diamonds-";
else if($s2==2)$cardfile = "casino/cards/hearts-";
else if($s2==3)$cardfile = "casino/cards/clubs-";

if($f2+2<11)$cardfile .= ($f2+2) . "-150.png";
else if($f2+2==11)$cardfile .= "j-150.png";
else if($f2+2==12)$cardfile .= "q-150.png";
else if($f2+2==13)$cardfile .= "k-150.png";
else if($f2+2==14)$cardfile .= "a-150.png";

eval('$t_cards .= "' . fetch_template('casino_vidpoker_cards') . '";');
$i++;
}
line 186-8 reads:

Quote:

{
if ((max($f) - min($f)) == 4) $straight = max($f)+1;
}


All times are GMT. The time now is 11:46 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.03552 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (7)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