Greetings Fellows.
I would like you to present a Injection for the latest Aac maker. Its not official don't its still a beta version but you might use it later.
I made a injection based on showing the amount of players in guild and the amount of players that are invited in the guild. I hope i inspirited you and i hope that you people take a chance and try to make a new and safer aac maker!
Tutorial where to place it?
enter the following direction \injections\guild_view crate a new folder with a name Statistics paste in it the code.. Save it as injection.php
In version 2
I added
Dont Forget to rep me
Still not enough ? check other scripts for Modern AAC
OtLand - Threads Tagged with modern aac kavvson
I would like you to present a Injection for the latest Aac maker. Its not official don't its still a beta version but you might use it later.
I made a injection based on showing the amount of players in guild and the amount of players that are invited in the guild. I hope i inspirited you and i hope that you people take a chance and try to make a new and safer aac maker!
Tutorial where to place it?
enter the following direction \injections\guild_view crate a new folder with a name Statistics paste in it the code.. Save it as injection.php
In version 2
I added
PHP:
//%% - Fade %%//
//%% - Tabs %%//
//** - Show online members in the guild **//
//** - Show the total level of members in guild **//
//** - Show the average level of members in guild **//
//** - Show the highest level in guild **//
//** - Show the lowest level in guild **//
PHP:
<?php
//** Connection to the database and getting the $guild_id **//
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$connection = POT::getInstance()->getDBHandle();
$CI =& get_instance();
$CI->load->helper("url");
$guild_id = $CI->uri->segment(3);
//** SQL Query **//
//** List **//
//** Functions **//
//** - Show the amount of members in guild **//
//** - Show the amount of members that are invited **//
//** - V2 **//
//%% - Fade %%//
//%% - Tabs %%//
//** - Show online members in the guild **//
//** - Show the total level of members in guild **//
//** - Show the average level of members in guild **//
//** - Show the highest level in guild **//
//** - Show the lowest level in guild **//
$guildMembers = $connection->query ( 'SELECT COUNT(`gr`.`id`) AS `total` FROM `players` AS `p` LEFT JOIN `guild_ranks` AS `gr` ON `gr`.`id` = `p`.`rank_id` WHERE `gr`.`guild_id` = '.$guild_id )->fetch( );
$invite = $connection->query( 'SELECT COUNT(*) FROM `guild_invites` WHERE `guild_id` = '.$guild_id)->fetch( );
$allM = $connection->query ('SELECT COUNT(1) as `people` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = '.$guild_id.') AND online = 1')->fetch();
$allM1 = $connection->query ('SELECT SUM(`level`) as `level` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = '.$guild_id.') ')->fetch();
$allM2 = $connection->query ('SELECT AVG(`level`) as `level` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = '.$guild_id.') ')->fetch();
$allM3 = $connection->query ('SELECT `name` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = '.$guild_id.') ORDER BY `level` ASC LIMIT 1')->fetch();
$allM4 = $connection->query ('SELECT `name` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = '.$guild_id.') ORDER BY `level` DESC LIMIT 1')->fetch();
//** Fade Effect **/
//** You can change the speed of the fade in .fadeIn(7000) **/
?>
<script>
$(document).ready(function() {$('#serverStats').fadeIn(6000)});
</script>
<script>$(function(){$("#tabs").tabs();});</script>
<?PHP
//** - Start of the main content -**//
//** - You can add a tab -**//
echo "<style type=\"text/css\">
.ui-tabs {
height: 100px;
}
</style><div id=\"serverStats\" style=\"display: none;\"><div id='tabs'>";
echo '<ul>
<li><a href="#general">General Informations</a></li>
<li><a href="#statistics">Statistics</a></li>
<li><a href="#glory">Fame Hall</a></li>
</ul>';
//<<#### General information Tab ####>>//
//??<<>><<>><<>><<>><<>><<>><<>><<>>??//
echo "<div id='general'>";
//@ Description of the Members amount @//
IF ( $guildMembers[0] == 1 )
ECHO "The Guild has ".$guildMembers[0]." member";
ELSE
ECHO "The Guild has ".$guildMembers[0]." members";
//** Separator between the members amount and invited players **//
ECHO "<br>";
//** End of Separator **//
//@ Description of the invited Members amount @//
IF ( $invite[0] == 0 )
ECHO "No members are invited";
ELSEIF ( $invite[0] == 1 )
ECHO "One member is invited";
ELSE "".$invite[0]." Members are currently invited";
//** Separator between the invited Members **//
ECHO "<br>";
//** End of Separator **//
//@ Description of the Online Members @//
IF ( $allM[0] == 0 )
ECHO "No one is online";
ELSEIF ( $allM[0] == 1 )
ECHO "One member is online";
ELSE "".$allM[0]." Members are currently online";
echo "</div>";
//<<#### END of General information Tab ####>>//
//??<<>><<>><<>><<>><<>><<>><<>><<>>??//
//<<#### StatisticsTab ####>>//
//??<<>><<>><<>><<>><<>><<>><<>><<>>??//
echo "<div id='statistics'>";
//@ Description of the Total Level of all members @//
ECHO "".$allM1[0]." Total level in guild";
//** Separator **//
ECHO "<br>";
//** End of Separator **//
//@ Description of the Avg Level of all members @//
ECHO "".$allM2[0]." Average level of all members in the guild";
//** Separator **//
ECHO "<br>";
//** End of Separator **//
echo "</div>";
//<<#### END Statistics Tab ####>>//
//??<<>><<>><<>><<>><<>><<>><<>><<>>??//
//<<#### Fame Hall Tab ####>>//
//??<<>><<>><<>><<>><<>><<>><<>><<>>??//
echo "<div id='glory'>";
//@ Description of the Highest level in guild @//
ECHO "".$allM3[0]." Can be pround of beeing the best in guild";
//** Separator **//
ECHO "<br>";
//** End of Separator **//
//@ Description of the Lowest level in guild @//
ECHO "".$allM4[0]." Is a shame for the guild for beeing the lowest level";
echo "</div>";
//<<#### END Fame Hall Tab ####>>//
//??<<>><<>><<>><<>><<>><<>><<>><<>>??//
echo "</div></div><br><br><br>";
?>
Dont Forget to rep me
Still not enough ? check other scripts for Modern AAC
OtLand - Threads Tagged with modern aac kavvson