• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[PHP] Modern AAC character_view injection, making an spoiler? - $5 USD

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,764
Solutions
1
Reaction score
227
Location
Chile, Santiago
Like topic name says, I need to make like an spoiler, where you press quests and it shows all quests, and if you press again, it hide them all or just show the first 3 and ...

The same with player kills (frags) and deaths...

Paying $5 USD, PM me with the php and with your e-mail paypal address to pay you.
 
Get jQuery and add id="quests" to the quest div/table.
HTML:
<script src="jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$( '#quests' ).click( function( ) {
     $( this ).toggle( );
} );
</script>
 
Open ./injections/character_view/quests/injection.php and find
PHP:
		echo "<div class='bar'>Quests</div>";
		echo "<table width='100%'>";
Change to
PHP:
 		echo "<script>
			$( document ).ready( function( ) {
				$( '#toggleQuests' ).click( function( ) {
					if ( $( '#contentQuests' ).is( ':visible' ) ) {
						$( '#contentQuests' ).slideUp( 'fast' );
						$( this ).html( 'Show' );
						return;
					}
				$( '#contentQuests' ).slideDown( 'fast' );
				$( this ).html( 'Hide' );
				} );
			} );
		</script>";
		echo "<div class='bar'>Quests (<a href='#' id='toggleQuests'>Hide</a>)</div>";
		echo "<table width='100%' id='contentQuests'>";
 
Back
Top