[release]SkillMS Cms Plain! v.1

Status
Not open for further replies.
Hm... Nice CMS but the only thing which doesn't quite work for me is the

Code:
						<!--START : Ranking -->
						

<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tbody><tr>
		<td>
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tbody><tr>

					<td width="100"><a href="ranking.php"><img src="images/bbs_ranking_title.gif" border="0"></a></td>
					<td align="right">
					
					</td>

				</tr>
			</tbody></table>
		</td>
	</tr>
	<tr>
	        <td height="4"></td>
	    </tr>
	    <tr>
	        <td style="background-color: rgb(255, 159, 0);" height="3"></td>

	    </tr>
	    <tr>
	         <td height="4"></td>
	    </tr>
	    
	<?php
	$gc = mysql_query("SELECT * FROM `characters` WHERE `gm`='0' ORDER BY `level` DESC,`exp`") or die(mysql_error());
	
	echo "<tr>";
		echo "<td>";
			echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
				echo "<tbody>";
					echo "<tr>";
	
						echo "<td rowspan=\"2\">";
							echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"5\">";
								echo "<tbody>";
								$p = 0;
								while($player = mysql_fetch_array($gc) and $p <=4){
									       $char = $player['accountid'];
	$ban1 = mysql_query("SELECT banned FROM accounts WHERE id = $char");
	$ban = mysql_fetch_array( $ban1 );
	  	if ($ban[banned] == 1) { } else { $p++;
if($player[job] == "121"){
$jobpict = "images/job_warrior.gif";
$job = "White Knight";
}else if($player[job] == "000"){
$jobpict = "images/job_beginner.gif";
$job = "Beginner";
}else if($player[job] == "100"){
$jobpict = "images/job_warrior.gif";
$job = "S*****man";
}else if($player[job] == "110"){
$jobpict = "images/job_warrior.gif";
$job = "Fighter";
}else if($player[job] == "120"){
$jobpict = "images/job_warrior.gif";
$job = "Page";
}else if($player[job] == "130"){
$jobpict = "images/job_warrior.gif";
$job = "Spearman";
}else if($player[job] == "111"){
$jobpict = "images/job_warrior.gif";
$job = "Crusader";
}else if($player[job] == "121"){
$jobpict = "images/job_warrior.gif";
$job = "White Knight";
}else if($player[job] == "131"){
$jobpict = "images/job_warrior.gif";
$job = "Dragon Knight";
}else if($player[job] == "112"){
$jobpict = "images/job_warrior.gif";
$job = "Hero";
}else if($player[job] == "122"){
$jobpict = "images/job_warrior.gif";
$job = "Paladin";
}else if($player[job] == "132"){
$jobpict = "images/job_warrior.gif";
$job = "Dark Knight";
}else if($player[job] == "200"){
$jobpict = "images/job_magician.gif";
$job = "Magician";
}else if($player[job] == "210"){
$jobpict = "images/job_magician.gif";
$job = "F/P Wizard";
}else if($player[job] == "220"){
$jobpict = "images/job_magician.gif";
$job = "I/L Wizard";
}else if($player[job] == "230"){
$jobpict = "images/job_magician.gif";
$job = "Cleric";
}else if($player[job] == "211"){
$jobpict = "images/job_magician.gif";
$job = "F/P Mage";
}else if($player[job] == "221"){
$jobpict = "images/job_magician.gif";
$job = "I/L Mage";
}else if($player[job] == "231"){
$job = "Priest";
$jobpict = "images/job_magician.gif";
}else if($player[job] == "212"){
$jobpict = "images/job_magician.gif";
$job = "F/P Arch Mage";
}else if($player[job] == "222"){
$jobpict = "images/job_magician.gif";
$job = "I/L Arch Mage";
}else if($player[job] == "232"){
$jobpict = "images/job_magician.gif";
$job = "Bishop";
}else if($player[job] == "300"){
$jobpict = "images/job_bowman.gif";
$job = "Bowman";
}else if($player[job] == "310"){
$jobpict = "images/job_bowman.gif";
$job = "Hunter";
}else if($player[job] == "320"){
$jobpict = "images/job_bowman.gif";
$job = "Crossbowman";
}else if($player[job] == "311"){
$jobpict = "images/job_bowman.gif";
$job = "Ranger";
}else if($player[job] == "321"){
$jobpict = "images/job_bowman.gif";
$job = "Sniper";
}else if($player[job] == "312"){
$jobpict = "images/job_bowman.gif";
$job = "Bow Master";
}else if($player[job] == "322"){
$jobpict = "images/job_bowman.gif";
$job = "Crossbow Master";
}else if($player[job] == "400"){
$jobpict = "images/job_thief.gif";
$job = "Rogue";
}else if($player[job] == "410"){
$jobpict = "images/job_thief.gif";
$job = "Assassin";
}else if($player[job] == "420"){
$jobpict = "images/job_thief.gif";
$job = "Bandit";
}else if($player[job] == "411"){
$jobpict = "images/job_thief.gif";
$job = "Hermit";
}else if($player[job] == "421"){
$jobpict = "images/job_thief.gif";
$job = "Chief Bandit";
}else if($player[job] == "412"){
$jobpict = "images/job_thief.gif";
$job = "Night Lord";
}else if($player[job] == "422"){
$jobpict = "images/job_thief.gif";
$job = "Shadower";
}else if($player[job] == "510"){
$jobpict = "images/job_gm.gif";
$job = "SuperGM";
}

if ($p == 1){ // displays the character avatar
	echo "<tr>";
		echo "<td rowspan=6>";
		echo "<img src=\"ranking/character/characterdisplay.php?char=".$player['name']."\" border=\"0\" name=\"top5\">";
	echo "</td>";
	echo "</tr>";
}
	echo "<script type=\"text/javascript\">var image = new Image(); image.src = \"ranking/character/characterdisplay.php?char=".$player['name']."\";</script>"; // pre-loads the character images for better viewing
	echo "<tr onmouseover=\"roll('top5', 'ranking/character/characterdisplay.php?char=".$player['name']."'); this.style.backgroundColor='#F0F0F0';\" onMouseOut=\"this.style.backgroundColor='#FFFFFF'\">"; // character avatar changing on mouseover/mouseout

										echo "<td width=\"16\"><img src=\"images/bbs_ranking_no0".$p.".gif\" width=\"14\" height=\"15\"></td>";
										echo "<td><a href=\"player.php?name=".$player['name']."\"><b><font size=-2>".$player['name']."</font><b/></a></td>";
										echo "<td><font size=-2>".$player['level']."</font></td>";
										echo "<td><font size=-2>".$job."</font></td>";
									echo "</tr>";
								}
                	}
								echo "</tbody>";
							echo "</table>";
						echo "</td>";
					echo "</tr>";
				echo "</tbody>";
			echo "</table>";
		echo "</td>";
	echo "</tr>";

	?>

	

</tbody></table>
<script language="javascript">
function changeRankAvatar(intRank)
{
    document.getElementById("RankAvatar").innerHTML = document.getElementById("RankAvatar_"+intRank).innerHTML;
	document.getElementById("RankAvatar").background = document.getElementById("RankPetAvatar_"+intRank).innerHTML;

}
</script>
<script language="javascript">changeRankAvatar(1)</script>

						<!--END : Ranking -->

THat^^ When my mouse rolls over, it doesnt change the character avatar =D

Other than that, pretty good CMS
 
I'm going to be COMPLETELY honest, I don't like the CMS in my opinion I think you could do better.

DON'T FLAME ME
 
damn! nice release!!!! :D
Ps could some1 say me where i have to change IP to wich IP?
The gateway IP or just 1 from IPchicken.com?
Plz help :P
 
to change the banner just make a banner and make it header_banner.jpg
oh and ian what error do u mean?? mine is working fine.. :O
 
Eric , you needa improve your handling in your website more to find errors, at your homepage.
On the status bar is says "This Page Contains Errors"
I haven't fully scanned through your CMS yet as i do not have time but im guessing its a .JS error. And avoid using marquees if your website is a CSS Layout, cause CSS layouts have high reputations for strict XHTML Validations :D
Anyways warp this code in js tags, its a simple javascript that will display...
Error: [Mistake Here]
In File: [File Here]
At Line: [Line No.]
Code:
window.on.error = errorhandler;
function.errorhandler( msg, url, In){
alert("Error: "+msg+"\nIn File: "+url+"\nAt Line: "+In);
return true;
}

Or just hide all those errors with
<script type="text/javascript">
function handleError() {
return true;
}
window.onerror = handleError;
</script>
 
Any one wanna help me fix this? only happens with ie (internet explorer) please i need help im not so good with that stuff.. :O

erick33321 - [release]SkillMS Cms Plain! v.1 - RaGEZONE Forums
 
Status
Not open for further replies.
Back