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

[PHP] Warnings counts!

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,766
Solutions
1
Reaction score
225
Location
Chile, Santiago
Well, since you get warnings each bann, you can get a final bann and also a deletion if you get X warnings.

I was wondering if someone could edit the php file of accountmanagement and add the warnings count, like:

Created: 31 December 1969, 20:00:00
Last Login: 19 November 2009, 22:07:17
Account Status: Free Account
Registred: No
Warnings: 3

Someone please?
Thanks, I think that this would help more people.
 
Gesior Acc Version:
Code:
$main_content = .'<table>
	<tr>
		<td>Warnings:</td>
		<td>".$logged_account->getCustomField("warnings")."</td>
	</tr>
</table>';

Non-gesior version:
Code:
<?PHP
$data = mysql_fetch_array(mysql_query("SELECT FROM `accounts` WHERE `name` = 'blabla';"));
?>
<table>
	<tr>
		<td>Warnings:</td>
		<td><?PHP echo $data['warnings']; ?></td>
	</tr>
</table>
 
I add it at accountmanagement.php, where it shows Registered, Premium... etc and it says: Warnings: ".$logged_account->getCustomField("warnings")."
 
Try changing:
Code:
".$logged_account->getCustomField("warnings")."

To:
Code:
".$logged_account->getCustomField('warnings')."
 
@Chojrak

Im using a Gesior, it is gesior0.3.4beta.

Also, changing what you said... I add it at line

Code:
‎$main_content .= '<td><table border="0" cellspacing="0" cellpadding="0" ><form action="?subtopic=accountmanagement&action=registeraccount" method="post" ><tr><td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Register Account" alt="Register Account" src="'.$layout_name.'/images/buttons/_sbutton_registeraccount.gif" ></div></div></td></tr></form></table></td>';
 
Back
Top