Jump to content
MakeWebGames

Need A Theme/Layout For My Mccodes V2 Game! - Really Need!


mxyi

Recommended Posts

Hey Guys,

I have created a new mafia game with mccodes v2 (america wars)

its a new game isnt up fully yet but we despritally need a blackish redish mafia theme,

ill be happy to use any theme thats mafiaish :P my freinds making a banner so we dont need a banner,

also could you tell me how to add the theme? i dont see a styles.css D;

thanks!

Link to comment
Share on other sites

just a little freebie one :P

All source is included so easy to change to your needs

================================================

Gang themed template complete with jpgs,png,and css.

Login and registraion pages setup with default mccodes forms

4308370134_fc5542ff2d_o.jpg

DOWNLOAD ME ____>>>>> Gang template (login.php,register.php,contact.php,about.php,style.css)

=======================================================

The following files will change the ingame style to match with the above template the image below displays the new ingame header

photo-266-0b111160.jpg

1. Download the Header images package attached

2. Copy and replace header.php,mainmenu.php.default.css with existing game files(these are for lite,v1 easily changed to V2 from what ive read)

header.php

<?php
class headers {
function startheaders() {
global $ir;
print "<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
<title></title>
<meta name='keywords' content='' />
<meta name='description' content='' />
<link href='default.css' rel='stylesheet' type='text/css' />
</head>" ;

}
function userdata($ir,$lv,$fm,$cm,$dosessh=1)
{
global $c,$userid;
$IP = $_SERVER['REMOTE_ADDR'];
if((isset($_SESSION['userAgent'])) &&  sha1($_SERVER['HTTP_USER_AGENT']) != $_SESSION['userAgent'])
{
session_unset();
session_destroy();
header('Location: login.php');
}
else
{
$_SESSION['userAgent'] = sha1($_SERVER['HTTP_USER_AGENT']);
}
mysql_query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid",$c);
if(!$ir['email'])
{
die ("<body>Your account may be broken. Please mail [email][email protected][/email] stating your username and player ID.");
}
if($dosessh && $_SESSION['attacking'])
{
print "You lost all your EXP for running from the fight.";
mysql_query("UPDATE users SET exp=0 WHERE userid=$userid",$c);
$_SESSION['attacking']=0;
}
$enperc=(int) ($ir['energy']/$ir['maxenergy']*100);
$wiperc=(int) ($ir['will']/$ir['maxwill']*100);
$experc=(int) ( $ir['exp']/$ir['exp_needed']*100);
$brperc=(int) ($ir['brave']/$ir['maxbrave']*100);
$hpperc=(int) ($ir['hp']/$ir['maxhp']*100);
$enopp=100-$enperc;
$wiopp=100-$wiperc;
$exopp=100-$experc;
$bropp=100-$brperc;
$hpopp=100-$hpperc;
$d="";
$u=$ir['username'];
if($ir['donatordays']) { $u = "<font color='#CC0000'>{$ir['username']}</font>";$d="[img=donator.gif]"; }
if($ir['gang']) {
$qg=mysql_query("SELECT * FROM gangs WHERE gangID={$ir['gang']}",$c);
$rr=mysql_fetch_array($qg);
$gn=$rr['gangPREF']."";
}
else { $gn=""; }

print "<body>
<div id='header'>
<div id=menu>
<table align=right bgcolor='#000000' border=0 width=100%><tr>
<td align='right' valign='center'>
     <table border='0'>
    <tr><td>[url='#']My Profile[/url]</td></tr> 
       <tr><td>[url='#']Donate[/url]</td></tr>
    <tr><td>[url='#']Vote For Us[/url]</td></tr>
      </table>
   </td>
<td align='right' valign='center'>
     <table border='1'>
    <tr><td> Name: $gn{$u} [{$ir['userid']}] $d</td></tr>
       <tr><td> Money: {$fm}</td></tr>
    <tr><td> Crystals: {$ir['crystals']}</td></tr>
      </table>
   </td>
   <td align='right' valign='center'>
     <table border='1'>
       <tr><td colspan='2'> Level: {$ir['level']}</td></tr>
	<tr><td> EXP: {$experc}%</td>
       <td><img src=expbg.gif width=$experc height=7><img src=barred.gif width=$exopp height=7></td></tr>
    <tr><td> Health: {$hpperc}%</td>
       <td><img src=healthbg.gif width=$hpperc height=7><img src=barred.gif width=$hpopp height=7></td></tr>
      </table>
   </td>
  <td align='center' valign='center'>
<table border='1' >
    <tr><td> Energy: {$enperc}%</td>
       <td><img src=energybg.gif width=$enperc height=7><img src=barred.gif width=$enopp height=7></td></tr>
    <tr><td> Will:{$wiperc}%</td>
       <td><img src=willbg.gif width=$wiperc height=7><img src=barred.gif width=$wiopp height=7></td></tr>
    <tr><td> Brave: {$ir['brave']}/{$ir['maxbrave']}</td>
       <td><img src=awakebg.gif width=$brperc height=7><img src=barred.gif width=$bropp height=7></td></tr>
    </table>
       </td>
   </tr>
</table>

<table bgcolor='#000000' border=0 width=100%><tr><td align='left'>[b]Current Time ::[/b]<font color='#CC0000'>";// Display Time Date Table
echo date ('F j, Y').date('g:i:s a');
print "</font></td></tr></table></div> </div>";// End Time Date Table

print "<table width=100% border=0><tr><td width=10% valign='top'>
";
if($ir['fedjail'])
{
$q=mysql_query("SELECT * FROM fedjail WHERE fed_userid=$userid",$c);
$r=mysql_fetch_array($q);
die("[b]<font color='#CCOOOO' size='2'>You have been banned for {$r['fed_days']} day(s).

Reason: {$r['fed_reason']}
</font>[/b] </td></tr></table></body></html>");
}
if(file_exists('ipbans/'.$IP))
{
die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</td></tr></table></body></html>");
}
}
function menuarea()
{
include "mainmenu.php";
global $ir,$c;
print "</td><td valign=top>
";
}
function endpage()
{
print "</td>
<tr><td colspan='2'> <div id='footer'>[size="1"]


©2009 All Rights Reserved. | <img src=images/creative-commons.png> | Designed by [url='#']GenScript[/url]</p>


[url='#']Legal[/url] | [url='http://jigsaw.w3.org/css-validator/check/referer']CSS[/url]</p>
[/size]
</div>

</td></tr>

</table></body>
</html>";
}
}
?>

mainmenu.php

<?php
print "
<div id='colOne'><div class=class='boxed'>";//	

/********************
Replace with mainmenu.php code here
********************/

print "</div></div>";//	
?>

default.css

/*
Released for free under a Creative Commons Attribution 2.5 License
*/
body {
margin: 0;
padding: 0;
background: #252D37 url(images/hd1.jpg) repeat-x;
font: normal 11px "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #A4AFBD;
}
form {
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
color: #000000;
}
h1 { font-size: 31px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }
p, ul, ol, blockquote {
margin-top: 0;
padding-top: 0;
text-align: justify;
line-height: 18px;
}
a {
color: #FFFFFF;
}
a:hover {
text-decoration: none;
}
/* Boxed */
.boxed {
margin: 0 0 20px 0;
padding: 5px 20px 20px 20px;
background: url(images/img4.gif) repeat-x left bottom;
}
/* Post */
.post {
margin: 0 0 20px 0;
padding: 10px 20px 30px 20px;
background: url(images/img4.gif) repeat-x left bottom;
}
.post h4 {
margin-bottom: 20px;
font-size: 11px;
font-weight: normal;
}
.post h4 strong {
font-weight: bold;
color: #5B6F88;
}
/* Header */
#header {
/*width: 904px;*/
height: 140px;
margin: 0 auto;
}
/* Menu */
#menu {
float: right;
padding: 10px 0 0 0;
}
#menu ul {
margin: 0;
padding: 15px 0 0 0;
list-style: none;
}
#menu li {
display: inline;
}
#menu a {
text-decoration: none;
color: #FFFFFF;
}
/* Content */
#content {
width: 904px;
margin: 0 auto;
}
#colOne {
float: left;
width: 238px;
}
#colTwo {
float: right;
width: 646px;
}
/* ColOne Content */
#colOne ul {
margin-left: 5px;
padding-left: 0;
list-style: none;
}
#colOne li {
padding: 2px 0 7px 0;
}
#colOne li.first {
border: none;
}
#colOne h3 {
font-size: 15px;
}
/* ColTwo Content */
/* Welcome */
#welcome {
padding: 5px 20px 20px 20px;
}
#welcome h2 {
margin-bottom: 25px;
}
#welcome .image {
float: left;
padding: 0 17px 0 0;
}
#welcome p {
margin-left: 126px;
}
/* Footer */
#footer {
clear: both;
/*width: 904px;*/
margin: 0 auto;
background: url(images/img6.gif) repeat-x left top;
}
#footer p {
margin: 0;
padding: 30px;
text-align: center;
}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...