Thread: Major Additions - Casino (w/ 10 player poker)
View Single Post
  #1685  
Old 11-11-2007, 10:22 AM
evesve evesve is offline
 
Join Date: Jul 2005
Location: Sweden
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I did to change my Casino:

New vbphrase (Text: Casino Games):
Code:
casino_casino_games
New vbphrase (Text: More Stats):
Code:
casino_more_stats
Find in Template: casino_index_main
Code:
<td class='tcat' colspan='2'>Games</td>
Change to:
Code:
<td class='tcat' colspan='2'>$vbphrase[casino_casino_games]</td>
Find in Template: casino_index_main
Code:
<p style='text-align:center'><a href='casino.php?do=stats'>More Stats</a></p>
Change to:
Code:
<p style='text-align:center'><a href='casino.php?do=stats'>$vbphrase[casino_more_stats]</a></p>
Find in Template: casino_index_main
Code:
<div style='text-align:center;font-size:16pt;font-weight:bold'>You have: $vbphrase[casino_currency_marker]$cash</div>
Change to:
Code:
<div style='text-align:center;font-size:16pt;font-weight:bold'>$vbphrase[casino_youhave]: $vbphrase[casino_currency_marker]$cash</div>
Find in template casino_stats_main
Code:
<table class='tborder' align='center' border='0' cellpadding='6' cellspacing='0' width='100%'>
	<thead>
		<tr>
			<td class='thead'>Statistics</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(1)'>Your Stats</td>
		</tr>
		<tr>
			<td class='alt2' style='cursor:pointer' onclick='loadstats(2)'>Total Stats</td>
		</tr>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(3)'>Most Won</td>
		</tr>
		<tr>
			<td class='alt2' style='cursor:pointer' onclick='loadstats(6)'>Most Lost</td>
		</tr>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(4)'>Luckiest People</td>
		</tr>
		<tr>
			<td class='alt2' style='cursor:pointer' onclick='loadstats(7)'>Unluckiest People</td>
		</tr>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(105)'>Richest Players</td>
		</tr>
$gamestats
	</tbody>

</table>
Change to:
Code:
<table class='tborder' align='center' border='0' cellpadding='6' cellspacing='0' width='100%'>
	<thead>
		<tr>
			<td class='thead'>$vbphrase[casino_statistics]</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(1)'>$vbphrase[casino_yourstats]</td>
		</tr>
		<tr>
			<td class='alt2' style='cursor:pointer' onclick='loadstats(2)'>$vbphrase[casino_totalstats]</td>
		</tr>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(3)'>$vbphrase[casino_mostwon]</td>
		</tr>
		<tr>
			<td class='alt2' style='cursor:pointer' onclick='loadstats(6)'>$vbphrase[casino_mostlost]</td>
		</tr>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(4)'>$vbphrase[casino_luckiestpeople]</td>
		</tr>
		<tr>
			<td class='alt2' style='cursor:pointer' onclick='loadstats(7)'>$vbphrase[casino_unluckiestpeople]</td>
		</tr>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(5)'>$vbphrase[casino_richest_players]</td>
		</tr>
$gamestats
	</tbody>

</table>
Find in casino/stats.php
Code:
$stitle = $vbphrase[casino_richest_players];
$col1 = $vbphrase[casino_name];
Change to:
Code:
$stitle = $vbphrase[casino_richest_players];
$scol1 = $vbphrase[casino_name];
Find in casino/stats.php (if you want Richest player as default in mainpage):
Code:
$page = (rand() % 7) + 1;
Change to:
Code:
$page = 5;
Find in casino/donate.php (if you want a PM when other members donate to each other):
Code:
$pmdm->set_recipients($giveto, $botpermissions);
Under it add (change ==your username== to your username):
Code:
$pmdm->set_recipients('==your username==;', $botpermissions);
Find in casino/slots_ajax.php:
Code:
else if($slotsgame == 3)
$query = "
	SELECT cs1.switch1 AS gameid, cs2.switch2 AS gameactive 
	FROM casino_settings AS cs1, casino_settings AS cs2 
	WHERE cs1.settingname='gamefile' 
	AND cs1.switch2='bar7slots' 
	AND cs1.switch1=cs2.switch1 
	AND cs2.settingname='gameactive'
";
under it add:
Code:
else print_no_permission();
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01205 seconds
  • Memory Usage 1,803KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (18)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete