Jump to content
  • 0

CERES CP (help..missing functions)


Freya Jorgenson

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  146
  • Reputation:   1
  • Joined:  11/22/11
  • Last Seen:  

Hi guys, I am just new with using Ceres...

I made CERES as my CP, then I tried to at least, customize the skin, tried uploading images and other stuff.... i did not change the "config" and other things that I know might affect the functionalities...

I was able to change the look of my Ceres..however, the "Password Recovery" and the "Logout" functions are nowhere to be found....

When I logged in to my CP, It does not refresh the page automatically, I still need to manually refresh the page....

Does anyone know what I am talking about? =((( Any help will be much appreciated.... Thanks...

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

maybe you accidentally removed a javascript functions like this which can be found at the bottom of the index.php


load_menu();
LINK_ajax('motd.php', 'main_div');
LINK_ajax('login.php', 'login_div');
login_hide(2);
server_status();

This loads the login and motd.php

LINK_ajax('motd.php', 'main_div');
LINK_ajax('login.php', 'login_div');

I think this is the syntax of that function

LINK_ajax('your-php-file-to-load.php', 'the-ID-of-the-html-element/tag');

or can you post your index.php?

Edited by JayPeeMateo
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  146
  • Reputation:   1
  • Joined:  11/22/11
  • Last Seen:  

hi sorry for the late reply.. thank you so much for the reply.. let me check it first...then ill post my index.php..

hi this is my index.php... im sorry im still learning...

extension_loaded('mysqli')
or die ("Mysqli extension not loaded. Please verify your PHP configuration.");

is_file("./config.php")
or die("<a href="./install/install.php">Run Installation Script</a>");

session_start();
include_once 'config.php'; // loads config variables
include_once 'query.php'; // imports queries
include_once 'functions.php';

$_SESSION[$CONFIG_name.'castles'] = readcastles();
$_SESSION[$CONFIG_name.'jobs'] = readjobs();

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<title>
		<?php echo htmlformat($CONFIG_name); ?> - Ceres Control Panel (SVN)
</title>
	<link rel="stylesheet" type="text/css" href="./ceres.css">

	<script type="text/javascript" language="javascript" src="ceres.js"></script>
</head>

<BODY style="margin-top:0; margin-bottom:0">
<div class="background">

	<table border="0" cellpadding="0" cellspacing="0" style="height:100%" width="850" align=center>
		<tr>
			<td style="height:auto" colspan="5" width="850">
			<div style="width:850px; height:200px; margin:auto">
			<div style="width:500px; height:200px; margin-right:auto; margin-left:auto; background-image:url(images/ragnarokonline.png); background-repeat:no-repeat;">
			</div></div>
			<div style="width:400px; height:65px; margin-right:auto; margin-left:auto">
			<div class="stbg">
			<table width="400" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td valign="middle"><center>
				<div style="width:380px; height:20px; margin-right:auto; margin-left:auto; margin-top:25px; margin-bottom:20px;">
			<span><?php include("status.php"); echo "Login:   ".$acc_status."   Char:   ".$char_status."   Map:   ".$map_status;   ?>
				 <?php include("usersonline.php"); echo "Users Online: ".$usersonline; ?>
				</span>
				</div>
				</center>
				</td>
			  </tr>
			</table>
			</div></div>
			<div style="height:15px;"></div>
			</td>
		</tr>
		<tr valign=top>
			<td height="100%">
				<table border="0" width="850" cellpadding="0" cellspacing="0" style="height:350px">
					<tr style="height:100%">
						<td width="650" valign="top" colspan="2" style="height:100%">
						<div style="width:610px; height:auto; margin-right:40px;">
						<div id="load_div"></div><div id="menu_load"></div>
						 <div id="cttop"></div>
						 <div id="ctmiddle">
						 <div style="width:562px; height:51px; margin-right:auto; margin-left:auto;">
						 <div id="ctnavar">
						 <div style="width:500px; height:51px; margin-right:auto; margin-left:auto;">
						 <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
							  <tr>
								<td valign="middle" width="500"><center><div style="margin-top:10px;">
								<div id="main_menu" style="color:#FFFFFF; font-weight:bold"></div>
						 <div id="sub_menu" style="color:#FFFFFF; font-weight:bold"></div></div></center>
						 </td>
						   </tr>
						</table>
						 </div></div></div>
						 <div style="width:560px; margin-right:25px; margin-left:25px;">
							<div id="main_div">
							</div>
							<div style="height:25px;"></div>
						   </div></div>
						 <div id="ctbottom"></div>
						  </div>
						</td>
						<td width="200" rowspan="5" valign="top" style="height:100%">
						 <div id="uptop"></div>
						 <div id="upmiddle">
							<div id="login_div">
							</div></div>
						   <div id="upbottom"></div>
						   <div style="height:10px;"></div>
						   <div id="woesched"></div>
						   <div id="upmiddle">
						   <?php
						   include("woestatus.php");
						   ?>
						   </div>
							<div id="upbottom">
							</div>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="5" align="center" valign="middle" style="height:auto">
				<div style="margin-bottom:100px;"></div>
				<div class="clearer"></div>
				<div id="footer">
				<div style="width:500px; height:40px; margin-right:auto; margin-left:auto;">
				<?php
				include("credits.php");
				?>
				</div></div>
			</td>
	  </tr>
	</table>
	<script type="text/javascript">
		load_menu();
		LINK_ajax('motd.php', 'main_div');
		LINK_ajax('login.php', 'login_div');
		login_hide(2);
		server_status()
		LINK_ajax('selectlang.php', 'selectlang_div');
	</script>
	</div>
</body>
</html>

<?php
fim();
?>

Edited by Brian
added [codebox]
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   4
  • Joined:  11/09/11
  • Last Seen:  

Post you code using codebox please. ;)

Edited by Genuine
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  146
  • Reputation:   1
  • Joined:  11/22/11
  • Last Seen:  

sorry .. im not aware of it yet ... next time..thanks =)

Link to comment
Share on other sites

×
×
  • Create New...