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)

ScottRowan 11-14-2007 12:23 PM

Can someone tell me how I can sort it so that , when you see all the chips you can bet with, they are all in a line and it distorts my forum, is there a way you can make it go so far then go into a new line?

Mark.B 11-14-2007 01:37 PM

Quote:

Originally Posted by jewropa (Post 1382241)
hello, Andrew Green
at first: it is a very useful mod! I love it!

Not the second thing: I would like place a image in the game description box.
I is possible to enable html in the description of the games so i can do it?

That isn't necessary, there is another way which involves a fairly simple template edit.

Have a look at mine:
http://www.bowlandcentral.com/forum/casino.php

When I get home later I shall get some instructions together as I know a couple of people are interested in this.

chatzworld 11-14-2007 01:43 PM

love the way you have ur casino mark maybe the makers mite make it similar is looks very good and much improved :)

towermatt 11-14-2007 02:12 PM

Quote:

Originally Posted by Mark.B (Post 1382384)
That isn't necessary, there is another way which involves a fairly simple template edit.

Have a look at mine:
http://www.bowlandcentral.com/forum/casino.php

When I get home later I shall get some instructions together as I know a couple of people are interested in this.

That is amazing! I would love to do something like that with mine. Thanks Mark

Mark.B 11-14-2007 03:27 PM

Ok...how to get images next to the game names.

(This won't give you a casino index exactly like mine, this will give you a standard casino index but with images of your choice next to the game names.)

First you need to choose some copyright-free images. Look for free icon sites. Ideally your images should be around 32 X 32 in size. Create a folder within your casino folder and call it "images". So the path is then yourdomain.com/forum/casino/images.

You then need to upload each image to the server, but rename it to the same as the gamename for the game it relates to. These are listed in
AdminCP > Casino > Casino Settings
under "Games Available", they are the first (unalterable) name, not the name you can change. So for example the icon you want to appear for Video Poker needs be named videopoker.gif.

Upload all these to the /casino/images/ folder you have just created.

Then go to your casino_index_game template. (Take a copy of it first if you have customised it in any way.)

Replace the whole template with this:
Code:

<tr>
<td class='alt$i'>

<table>
<td width='36px' align='center'>
<a href='casino.php?do=$gamefile'><img class='inlineimg' src='casino/images/$gamefile.gif' border='0' /></a></td>
<td align='left' width='95%'><span><b><a href='casino.php?do=$gamefile'>$gamename</a></b></span><br />
</td>
</td></table>

</td>
<td class='alt$i'>
$gamedesc
</td>
</tr>

If your images are jpgs or pngs rather than gifs, then just change $gamefile.gif to $gamefile.jpg or $gamefile.png.

If your images are all the same size then you can add width='xx' height='xx' into the <img> tag, that will assist with smoother page loading.

I have tested the above on my site and it works fine but I offer no guarantees. If anyone wishes to make any changes/improvements etc to the above then feel free to do so and post it here, I'm fine with that. These instructions can also be taken and posted anywhere, I'm not fussy about that either.

ezurick 11-14-2007 06:54 PM

I tried to weed thru many posts on this thread and I see very few issues with the lottery... I need more options for the lottery... but first, when i change settings and go to the casino lottery, they don't take effect. My lottery is set for every wednesday... but it was default to friday (I think)... it took a week to catch up and now it does do the lottery on wednesday, but at 11pm? I might as well set it for tuesday... with a time like that... .lol

Also, I don't have a large member base, so the jackpot is very low... how about allowing the admin to set the BASE jackpot... and what ever is added will be on top of that...

Just a little story... I use the vbcredits program with this casino.. I installed this and warned my members that it could be costly... and be careful... just about all of my users with large balances went in there and lost their shirts... and now they post crap in the forums just to earn credits to gamble.... .:rotf:

jewropa 11-14-2007 07:26 PM

Quote:

Originally Posted by Mark.B (Post 1382468)
Ok...how to get images next to the game names.

(This won't give you a casino index exactly like mine, this will give you a standard casino index but with images of your choice next to the game names.)

First you need to choose some copyright-free images. Look for free icon sites. Ideally your images should be around 32 X 32 in size. Create a folder within your casino folder and call it "images". So the path is then yourdomain.com/casino/images.

You then need to upload each image to the server, but rename it to the same as the gamename for the game it relates to. These are listed in
AdminCP > Casino > Casino Settings
under "Games Available", they are the first (unalterable) name, not the name you can change. So for example the icon you want to appear for Video Poker needs be named videopoker.gif.

Upload all these to the /casino/images/ folder you have just created.

Then go to your casino_index_game template. (Take a copy of it first if you have customised it in any way.)

Replace the whole template with this:
Code:

<tr>
<td class='alt$i'>

<table>
<td width='36px' align='center'>
<a href='casino.php?do=$gamefile'><img class='inlineimg' src='casino/images/$gamefile.gif' border='0' /></a></td>
<td align='left' width='95%'><span><b><a href='casino.php?do=$gamefile'>$gamename</a></b></span><br />
</td>
</td></table>

</td>
<td class='alt$i'>
$gamedesc
</td>
</tr>

If your images are jpgs or pngs rather than gifs, then just change $gamefile.gif to $gamefile.jpg or $gamefile.png.

If your images are all the same size then you can add width='xx' height='xx' into the <img> tag, that will assist with smoother page loading.

I have tested the above on my site and it works fine but I offer no guarantees. If anyone wishes to make any changes/improvements etc to the above then feel free to do so and post it here, I'm fine with that. These instructions can also be taken and posted anywhere, I'm not fussy about that either.

thank you very much i try it now

waller99 11-14-2007 07:42 PM

Quote:

Originally Posted by Mark.B (Post 1382468)
Ok...how to get images next to the game names.

(This won't give you a casino index exactly like mine, this will give you a standard casino index but with images of your choice next to the game names.)

First you need to choose some copyright-free images. Look for free icon sites. Ideally your images should be around 32 X 32 in size. Create a folder within your casino folder and call it "images". So the path is then yourdomain.com/casino/images.

You then need to upload each image to the server, but rename it to the same as the gamename for the game it relates to. These are listed in
AdminCP > Casino > Casino Settings
under "Games Available", they are the first (unalterable) name, not the name you can change. So for example the icon you want to appear for Video Poker needs be named videopoker.gif.

Upload all these to the /casino/images/ folder you have just created.

Then go to your casino_index_game template. (Take a copy of it first if you have customised it in any way.)

Replace the whole template with this:
Code:

<tr>
<td class='alt$i'>

<table>
<td width='36px' align='center'>
<a href='casino.php?do=$gamefile'><img class='inlineimg' src='casino/images/$gamefile.gif' border='0' /></a></td>
<td align='left' width='95%'><span><b><a href='casino.php?do=$gamefile'>$gamename</a></b></span><br />
</td>
</td></table>

</td>
<td class='alt$i'>
$gamedesc
</td>
</tr>

If your images are jpgs or pngs rather than gifs, then just change $gamefile.gif to $gamefile.jpg or $gamefile.png.

If your images are all the same size then you can add width='xx' height='xx' into the <img> tag, that will assist with smoother page loading.

I have tested the above on my site and it works fine but I offer no guarantees. If anyone wishes to make any changes/improvements etc to the above then feel free to do so and post it here, I'm fine with that. These instructions can also be taken and posted anywhere, I'm not fussy about that either.

Good stuff. Thanks a ton for this. Makes it look very nice.

NFLfbJunkie 11-14-2007 07:47 PM

I hope I'm not being a pest, but I have asked a couple of times now if the following is possible: re-setting all of the user stats for all of the games and removing the green table images from the pages that use them. Any advice would be greatly appreciated.

Basscat 11-14-2007 07:47 PM

I just installed this on my test site. This may have been asked already.

Will there be an option so there can be multiple tables for the same game? Kind of like flash chat having multiple rooms, or yahoo having multiple tables.

It would be neat to have a texas hold'em tourney on the site with multiple tables playing at once.

Andrew Green 11-14-2007 07:53 PM

not right now, might happen in the future.

Robbed 11-14-2007 08:20 PM

Quote:

Originally Posted by Twilkey SRT (Post 1382164)
Um what.

For Blackjack there is Hit, stay and double down buttons

Mark.B 11-14-2007 08:36 PM

Quote:

Originally Posted by Robbed (Post 1382611)
For Blackjack there is Hit, stay and double down buttons

And split.

Mark.B 11-14-2007 08:36 PM

Quote:

Originally Posted by waller99 (Post 1382593)
Good stuff. Thanks a ton for this. Makes it look very nice.

Thanks, you are most welcome. :D

SliceofLife 11-14-2007 08:54 PM

I tried to upgrade this product, and now I get this error which completely shuts down the whole forum:

Quote:

Warning: Division by zero in /global.php(360) : eval()'d code on line 119

Quote:

Database error in vBulletin 3.6.8:

Invalid SQL:
SELECT count(userid) AS np FROM casino_texasholdem_whoisin WHERE lastcheck > 1195079990;

MySQL Error : Table '[forum]_vbulletin.casino_texasholdem_whoisin' doesn't exist
Error Number : 1146
Date : Thursday, November 15th 2007 @ 09:40:20 AM
Script : http://[forum]/forum/index.php
Referrer :
IP Address : [ip address]
Username : [username]
Classname : vB_Database
There is also no intstruction for the 'patch' file that you have included, that includes the 'donate' file.

It also screwed up my global php file, and the only way to get the forum back to normal now is to disable the entire thing through the products function.

towermatt 11-14-2007 08:57 PM

Looks like its missing the "who's in" modification.

But I'm no expert. Did you follow the instructions to the letter? There is some information about that stuff in the read me file

SliceofLife 11-14-2007 09:02 PM

Quote:

Originally Posted by towermatt (Post 1382631)
Looks like its missing the "who's in" modification.

But I'm no expert. Did you follow the instructions to the letter? There is some information about that stuff in the read me file

I followed the Read Me right down the line. :confused:

nonamer69 11-15-2007 12:03 AM

Created a red table for the casino. I wasn't a fan of that green.

Attachment 72330

Geeps 11-15-2007 01:47 AM

I searched and couldn't find an answer. I got this email from a member of my board:

"The game went fine for about 1/2 hour then it started dealing the same hand 2 times in a row or a hand that we had recently played."

He's referring to the Texas Hold'em, but I noticed that it was doing this on BlackJack and Let e ride.

Andrew Green 11-15-2007 03:16 AM

Quote:

Originally Posted by SliceofLife (Post 1382628)
I tried to upgrade this product, and now I get this error which completely shuts down the whole forum:

Somewhere along the line at least one of your tables got dropped, I have a rebuild everything script, but it needs updating. Might get to it tomorrow, but probably not until the weekend.

Chances are that a uninstall and reinstall would solve it, as the problem you are having was likely caused by trying to uninstall a older version that had a typo in the uninstall code.

You can also delete all the casino_* tables, as well as the casino_cash field in the user table, uninstall the product then reinstall. (if the uninstall gives you a error delete anything in the uninstall code boxes under "edit" for the product. Then reinstall and everything should work.

s0laris 11-15-2007 03:38 AM

I have never done a mod install ever to vb.

So please be kind

I am trying to follow the instructions.

1: I copied casino.php to my vb location (No problem)
2: copied the casio directory and its content to same location
3: I dont really know where admincp goes. I assume it should be some safe place. I put it where members wont see it

4: import the xml file. This is where I am stuck, where/how do I do this step ?

Thanks for your patience

Andrew Green 11-15-2007 04:57 AM

Quote:

Originally Posted by s0laris (Post 1382781)
I have never done a mod install ever to vb.

So please be kind

I am trying to follow the instructions.

1: I copied casino.php to my vb location (No problem)
2: copied the casio directory and its content to same location
3: I dont really know where admincp goes. I assume it should be some safe place. I put it where members wont see it

4: import the xml file. This is where I am stuck, where/how do I do this step ?

Thanks for your patience

3 - Basically everything goes in the folders it is in. So the stuff in the admincp folder goes in the admincp folder you already have. Same for the stuff in the includes folder, just move the files into the folders that are already there. The /casino/ folder is the only new one.

4 - Go to Products in your admincp, then import a Product. Select the product-casino.xml file and go.

When it comes time to update do the same thing, upload the files in the UPLOAD folder to the same places that they are in, import the product (choosing "yes" to overwrite when updating) Don't uninstall, not neccessary and would remove all your settings and scores.

bostton1 11-15-2007 10:14 AM

is this multiplayer or games you play by yourself?

towermatt 11-15-2007 11:17 AM

The holdum game is mulit player. Very cool. :D

geevest.com 11-15-2007 12:19 PM

i want uninstal casino,can help me? thx

Mark.B 11-15-2007 03:18 PM

Quote:

Originally Posted by nonamer69 (Post 1382708)
Created a red table for the casino. I wasn't a fan of that green.

Attachment 72330

Thanks..I have turned this into an option so that members can select either green or red tables!

NFLfbJunkie 11-15-2007 03:21 PM

Quote:

Originally Posted by Mark.B (Post 1383086)
Thanks..I have turned this into an option so that members can select either green or red tables!

How did you do that?

Mark.B 11-15-2007 03:33 PM

Quote:

Originally Posted by Junkie (Post 1383089)
How did you do that?

You need to make a couple of tweaks.

First create a Custom Profile Field as follows:
Title: Colour Of Casino Card Tables
Description: You can choose either GREEN or RED card tables for the Casino
Options: Green Red (put these on separate lines, make sure Green is first)
Set Default: Yes
Field Required: No
Field Editable By User: yes
Private Field: No
Show on members list: No

Leave all of the "Optional Input" block as default

Which page displays this option? Options: Other

Make a note of the field number when you have saved it...we'll call it fieldx for this, but replce x with whatever number it gives you.

Rename all the RED files in the zip above so they have red- in front of them.
eg red-cloth-br. Upload them to your /casino/cards/ folder, same location as the green ones.

Find every instance in the word cloth in the casino templates and put this IMMEDIATELY in front of it, adding no extra spaces or characters:
Code:

<if condition="$bbuserinfo['fieldx'] == 'Red'">red-</if>
Remember to change the x in "fieldx" to the field number you have just been given in your admincp.

You will end up with lines that look like this:
Code:

<img src='casino/cards/<if condition="$bbuserinfo['fieldx'] == 'Red'">red-</if>cloth-tl.gif' alt=''/>
But don't just replace everything with the above full line of code as the GIF names are different for each one. You will break things if you do.

That's it.

The affected templates are:
casino_blackjack_play
casino_letitride_cards
casino_texasholdem_table
casino_vidpoker_play


There are several instances to change in each template, not just one!

IMPORTANT: remember that each time there is an upgrade, you will need to REVERT these four templates and RE-APPLY the changes, or things might not work!

Mark.B 11-15-2007 04:01 PM

One thing I'm finding is that although the Javascript error has been fixed that affected IE only, Video Poker does still "freeze" after a short time playing but only in IE.

You finish a hand, try to place a bet and everything except the row of cards disappears. You then cannot move on without a full refresh. It doesn't change the cards or put the "Discard" button up.

Andrew Green 11-15-2007 04:07 PM

I'll look into that this weekend.

Mark.B 11-15-2007 04:12 PM

Quote:

Originally Posted by Andrew Green (Post 1383121)
I'll look into that this weekend.

Thanks Andrew. It seems to be rather random. In tests just now, it has done it once after about fifteen hands, once on the second one, and then again not at all after more than thirty.

I'm going to try it on your site now just to rule out it being anything on my site. Works fine in other browsers though.

Andrew Green 11-15-2007 04:14 PM

Does it happen in any other games, or just the one?

towermatt 11-15-2007 04:18 PM

For me, just the holdum game but I haven't heard any complaints since the last upgrade.

If the member is using IE, it just kind of freezes on them.

Mark.B 11-15-2007 04:22 PM

Quote:

Originally Posted by Andrew Green (Post 1383129)
Does it happen in any other games, or just the one?

As far as I know it's just the one.

I've done some limited testing on your site and the same sort of thing occurs, except that after around ten seconds it does actually move itself on, whereas on my site it just sticks.

geevest.com 11-15-2007 04:53 PM

friend,i want uninstall this module from my admincp.
anyone can help my problem?

thanks

Andrew Green 11-15-2007 05:02 PM

delete the files and uninstall the product?

towermatt 11-15-2007 06:22 PM

That sounds right :D

punchbowl 11-15-2007 06:45 PM

Error on the stats page.

Quote:

Notice: Undefined variable: db in /httpdocs/forum/casino/stats.php on line 2
:eek:

Andrew Green 11-15-2007 06:47 PM

Are you trying to go straight to the stats page, because you shouldn't be. It's accessed through "casino.php?do=stats"

punchbowl 11-15-2007 06:55 PM

Quote:

Originally Posted by Andrew Green (Post 1383258)
Are you trying to go straight to the stats page, because you shouldn't be. It's accessed through "casino.php?do=stats"

yep on

http://www.********.com/forum/casino.php?do=stats

Sorry correction. No error when first called but the error appear on clicking any of the stats to the lefthandside e.g. total stats, your stats etc


All times are GMT. The time now is 01:32 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.03094 seconds
  • Memory Usage 1,859KB
  • 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
  • (5)bbcode_code_printable
  • (19)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