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

AAC Znote guild logos on guildwar.php

Manigold

Well-Known Member
Joined
Nov 2, 2017
Messages
201
Solutions
9
Reaction score
52
Hello I´m tryng to edit guildwars page to make it look more beautiful, what i'm tryng to do is show the guild logos above the guild name , could someone help-me?

i want to make look like this
 

Attachments

Solution

doesn't work , but thanks to that i got it.
here's the code if someone want the same (probably not writen in the best way cause i'm nob)

change this part on guildwar.php line 170 for that one
PHP:
        <?php
                foreach ($wardata as $wars) {
                    $guild_1_kills = 0;
                    $guild_2_kills = 0;
                    foreach (($killsdata[$wars['id']] ? $killsdata[$wars['id']] : array()) as $kill) {

                        if ($isOtx && $kill['guild_id'] == $wars['guild1'] || !$isOtx && $kill['killerguild'] ==...

doesn't work , but thanks to that i got it.
here's the code if someone want the same (probably not writen in the best way cause i'm nob)

change this part on guildwar.php line 170 for that one
PHP:
        <?php
                foreach ($wardata as $wars) {
                    $guild_1_kills = 0;
                    $guild_2_kills = 0;
                    foreach (($killsdata[$wars['id']] ? $killsdata[$wars['id']] : array()) as $kill) {

                        if ($isOtx && $kill['guild_id'] == $wars['guild1'] || !$isOtx && $kill['killerguild'] == $wars['guild1'])
                            $guild_1_kills++;
                        else
                            $guild_2_kills++;
                    }
              
                $url1 = url("guildwar.php?warid=". $wars['id']);
                $url = url("guilds.php?name=". $wars['name1']);
                echo '<tr>';
                echo '<td><center><img style="max-width: 64px; max-height: 64px;" src="';
                echo logo_exists($wars['name1']);
                echo '"/>';
                echo '<center><a href="guilds.php?name='.$wars['name1'].'">'.$wars['name1'].'</a></td><td>';
                echo '<center><b>War Status</b><br />Started ' . getClock($wars['started'], true) . '.<br />Score<h1> '. $guild_1_kills .' - ' . $guild_2_kills . '</h1> <a href=\'' . $url1 . '\'">>> Details <<</a><br />';
                $url = url("guilds.php?name=". $wars['name2']);
                echo '<td><center><img style="max-width: 64px; max-height: 64px;" src="';
                echo logo_exists($wars['name2']);
                echo '"/>';
                echo '<center><center><a href="guilds.php?name='.$wars['name2'].'"><center>'.$wars['name2'].'</a></td></tr>';

  
}}}
  

         ?>
and here's how it looks *--*
 

Attachments

  • guildwarwithlogo.png
    guildwarwithlogo.png
    298.8 KB · Views: 43 · VirusTotal
Last edited:
Solution
Back
Top