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

MyACC Loleslav TEMPLATE "How to edit top players"

henkas

Well-Known Member
Joined
Jul 8, 2015
Messages
1,067
Solutions
5
Reaction score
63
Hi my top player table look like this.
Untitled.png

But i dont really like this two lines ideas so at the top is name and at the bottom is level how can i make it in the same line? Example Painted:
Untitled.png

So as you can see everything is in the same line and if name is to long it doesnt show up full name to avoid bugs with equalization. So example name is over 10 letters "TestestestGH" so it should show only first 10 letters, something like this "Testestest... lvl: 99"
How can i make this?

Link of website: [MyAAC][Plugin][Template] Loleslav
 
Solution
Here you are (modify this part in loleslav/template.php
Code:
foreach(getTopPlayers(5) as $player)
                        {
                        echo '<li class="bg6" style="text-align: left"><a href="' . getPlayerLink($player['name'], false) . '"  class="link2">' . $player['name'] . '</a>';
                        echo '<em class="style2"> Lvl: <b>' . $player['level'] . '</b></em></li>';
                        }
Here you are (modify this part in loleslav/template.php
Code:
foreach(getTopPlayers(5) as $player)
                        {
                        echo '<li class="bg6" style="text-align: left"><a href="' . getPlayerLink($player['name'], false) . '"  class="link2">' . $player['name'] . '</a>';
                        echo '<em class="style2"> Lvl: <b>' . $player['level'] . '</b></em></li>';
                        }
 
Solution
Back
Top