• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

gesior tibia's like site is under maintenance??

Dored

TibiaServer Distributor
Joined
Oct 11, 2009
Messages
58
Reaction score
0
hi,

i just want to know if theres a mod like real tibia, that if from the admin panel, i put the server like "under maintenance", then players when enter site, and they try to navigate to other subtopics that aren't lastest news, appears; "Sorry, site is under maintenance.", like cipsoft ?.
 
This will!.

P.S; Am moding Gesior for tfs 8.54, like perfectioning Admin Panel, to give it a more professional style. Adding more tools etc...

Anyone PHP Scripter should know how to ;S
 
Temporally make an index html site with an img of "Under maintenance" o.o

Something like this:

Code:
<html>
<head>
   <title>Under maintenance, come back soon!...</title>
</head>
<body>
   <br><br>
   <center>
	   <table border="1" cellpadding="0" cellspacing="0" width="50%">
		   <tr>
		      <td width="100%" bgcolor="#FFFFFF">
			      <br>
				   <p align="center">Sorry, the website is <br><font color=red size="7">UNDER<br>MAINTENANCE</font><br></p>
				   <p align="center"><blink>Come back soon!...</blink></p>
			   </td>
         </tr>
      </table>
   </center>
</body>
</html>
 
Last edited:
I have no idea how it is better for you, when a website is under maintenance the whole website should be blocked, anyway...

In index.php, before //#####LAYOUT#####

Add:

$main_content = "Sorry, the website is under maintenance, come back soon";
 
I have no idea how it is better for you, when a website is under maintenance the whole website should be blocked, anyway...

In index.php, before //#####LAYOUT#####

Add:

$main_content = "Sorry, the website is under maintenance, come back soon";
That is working perfect!!. But i want only to "/site/?subtopic=latestnews" allows to see the news. With your code, i cannot navigate on any thing that is nice. But i need that lastest news allows to.

I tryed this:

Code:
//#####LAYOUT#####
//#####MAINTENANCE AREA#####
if ($title = "Forgotten - Lastest News"){

} else {
$main_content = "Sorry, the website is under maintenance. Please try again later."; 
}

But is not working S; It navigates on everypage.
 
Last edited:
on global/config.php add:

Code:
$config['site']['under_maintenance'] = 1;

Set it to 1 if it is enabled and 0 to disable...


And on index.php, under:
Code:
//#### LOAD PAGE ##########
//load subtopic page

add:

Code:
if($GLOBALS['config']['site']['under_maintenance'])
     {
      $main_content .= 'Site under maintenance, Please come back later.';
      $subtopic = "undermaintenance";
      $topic = "Under Maintenance";
}else{

And right above:
Code:
//generate title of page

Add:
Code:
}



Btw i didn't tested it and used an old gesior as base (to see the code etc) since i got my own cms now so i'm not really sure if it works....
 
on global/config.php add:

Code:
$config['site']['under_maintenance'] = 1;

Set it to 1 if it is enabled and 0 to disable...


And on index.php, under:
Code:
//#### LOAD PAGE ##########
//load subtopic page

add:

Code:
if($GLOBALS['config']['site']['under_maintenance'])
     {
      $main_content .= 'Site under maintenance, Please come back later.';
      $subtopic = "undermaintenance";
      $topic = "Under Maintenance";
}else{

And right above:
Code:
//generate title of page

Add:
Code:
}



Btw i didn't tested it and used an old gesior as base (to see the code etc) since i got my own cms now so i'm not really sure if it works....

Thanks a lot! I will try it when I get home
 
Back
Top