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 11-02-2007 02:47 AM

Quote:

Originally Posted by Black Tiger (Post 1373918)
I just installed this one, looks great!

I have a couple of questions though:

1.) I've vBA running. Now I want to integrate this in the sidebare so I have to edit the casino.php and add these lines:
Code:

define('VBA_PORTAL', true);
define('VBA_PAGE', 'RSide');

If I don't, all is working fine. If I do, I get this error notice:

Error is coming from VBA code, not casino. I have no idea as I don't use that product.


Quote:

2.) In the lottery I put it to 40 numbers. But I would like to get 6 numbers drawn, but that isn't possible, maximum 5. Why?
to be perfectly honest, with 6 x 40 you'd be looking at odds of about 1 in 4 million, didn't think anyone would want it that high. From what I have seen I think most are only using 3 balls with a range of 15-20.

I can increase that with the next set, there really wasn't a reason, but with those numbers you will get very few people winning anything.

Quote:

3.) How can I change the amount of winnings? Now the Casino Jackpot for the lottery is 817685 and I would like to adjust this, same as with some other prices, how is this done?
It increases as people buy tickets, and is calculated for a payout of 100% over time. There is no way to manually set it as it is based on the number of balls and the range of numbers.

Quote:

4.) Foud a little bug, in the Let 'em Ride the title Let 'em Ride is ok, but in the forumlink it says:
Myforums->casino->Let 'em Ride
Yes, this has been fixed with the next release. Internet explorer quirk.

Quote:

Originally Posted by Black Tiger (Post 1373928)
5.) I see a Dollar sign everywhere. Where can I change this to a ? (euro) sign?

No where right now, once phrases are in place you would edit the phrase.

Andrew Green 11-02-2007 02:48 AM

Quote:

Originally Posted by DiesellMinded (Post 1373925)
Can you make this add a [x] after the nav bar link to display how many people are in the casino please

http://www.dieselbombers.com/

You will get a display under the navbar saying how many people are in the Texas Hold'em game if that is what you are after. But if no one is in there you won't see it.

DieselMinded 11-02-2007 03:05 AM

I would like a more suttle approch at whos in there currently i have my chat and vbay set up to show [x] after the link in the navbar and i would really love for this to be the same , Can you help ?

DieselMinded 11-02-2007 03:07 AM

How can i convert it ?

heres my Vbay Link Code in my nav bar how do i change this to the amount of users in texas holdem

<td class="vbmenu_control"><a href="vbay.php">$vbphrase[vbay_navbar]<if condition="$vbulletin->options['vbay_auctionsinnav'] == '1'"> [$auctions]</if></a></td>

DieselMinded 11-02-2007 03:09 AM

<td class="vbmenu_control"><a href="casino.php?$session[sessionurl]">Casino</a></td><if condition="$vbulletin->options['vbay_auctionsinnav'] == '1'"> [$inpoker]</if></a></td>

????

Andrew Green 11-02-2007 03:21 AM

Quote:

Originally Posted by DiesellMinded (Post 1373959)
I would like a more suttle approch at whos in there currently i have my chat and vbay set up to show [x] after the link in the navbar and i would really love for this to be the same , Can you help ?


Change the plugin "casino players in poker" to 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);

$inpoker = $row[np];


and put "$inpoker" wherever you want the number to show up. However this is just players in the poker game, not the single player games.

DieselMinded 11-02-2007 03:30 AM

That seems to be working great !! Thank YOU !! do you know how to remove the [] from the nav bar if no ones in poker ?

Never mind its showing [0] thats cool

thanks again

Andrew Green 11-02-2007 03:33 AM

Code:

<if condition="! $inpoker">[$inpoker]</if>

DieselMinded 11-02-2007 03:40 AM

That dont seem to be working i get nothing on index then it will go to [] on some pages all tests done with 1 player in poker

<td class="vbmenu_control"><a href="casino.php?$session[sessionurl]">Casino <if condition="! $inpoker">[$inpoker]</if></a></td>

DieselMinded 11-02-2007 03:49 AM

i removed the ! and its working


All times are GMT. The time now is 02:00 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.03240 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)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
  • (6)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