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.


All times are GMT. The time now is 08:24 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.03725 seconds
  • Memory Usage 1,767KB
  • 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
  • (4)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