• 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!

Solved Banned Users Gesior Acc

Status
Not open for further replies.

MxSoft

Leave Tibia, Live Life.
Joined
Dec 22, 2009
Messages
1,804
Solutions
1
Reaction score
43
Location
Mexico
Hi i got this problem when i tried to display a player of a banned user in Gesior Acc.
Code:
Fatal error: Call to undefined method OTS_Account::getBanTime() in C:\xampplite\htdocs\characters.php on line 368
If anyone can help me please.
Ty All:)
 
Last edited:
It's not really a solution, but you can always remove this part from characters.php
Code:
				if($account->isBanned())
					if($account->getBanTime() > 0)
						$main_content .= '<font color="red"> [Banished until '.date("j F Y, G:i", $account->getBanTime()).']</font>';
					else
						$main_content .= '<font color="red"> [Banished FOREVER]</font>';

or change it to
Code:
				if($account->isBanned())
						$main_content .= '<font color="red"> [Banished]</font>';
 
It's not really a solution, but you can always remove this part from characters.php
Code:
				if($account->isBanned())
					if($account->getBanTime() > 0)
						$main_content .= '<font color="red"> [Banished until '.date("j F Y, G:i", $account->getBanTime()).']</font>';
					else
						$main_content .= '<font color="red"> [Banished FOREVER]</font>';

or change it to
Code:
				if($account->isBanned())
						$main_content .= '<font color="red"> [Banished]</font>';

For TFS 0.3.6 use

Code:
				if($account->isBanned())
						$main_content .= '<font color="red"> [Banished]</font>';
 
Status
Not open for further replies.
Back
Top