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

Windows (GESIOR 2012) help with tables on guilds.php

beenii

Well-Known Member
Joined
Jul 26, 2010
Messages
586
Solutions
1
Reaction score
58
i want make this:

10e3tkj.png


but have this error only show 1 player lvl and voc on ranks:

dpk5rc.png




here is my code complete guilds.php:

http://pastebin.com/GnJzNXmn


here is section on show players:
PHP:
        <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
        <TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=5 CLASS=white><B>Guild Members</B></TD></TR>
        <TR BGCOLOR='.$config['site']['darkborder'].'>
        <TD ><B>Rank</B></TD>
        <TD ><B>Name and Title</B></TD>
        <TD ><B>Vocation</B></TD>
        <TD ><B>Level</B></TD>
        <TD ><B>Status</B></TD>
        </TR>';
               $showed_players = 1;
        foreach($rank_list as $rank)
        {
            $players_with_rank = $rank->getPlayersList();
    
            $players_with_rank_number = count($players_with_rank);

            if($players_with_rank_number > 0)
            {
                if(is_int($showed_players / 2)) { $bgcolor = $config['site']['darkborder']; } else
                { $bgcolor = $config['site']['lightborder']; } $showed_players++;
                $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD valign="top">'.$rank->getName().'</TD>
                <TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%>';
                foreach($players_with_rank as $player)
                {
$main_content .= '';
                    $main_content .= '<TR><TD>
                    <FORM ACTION="?subtopic=guilds&action=change_nick&name='.urlencode($player->getName()).'" METHOD=post>
                    <A HREF="?subtopic=characters&name='.urlencode($player->getName()).'">'.($player->isOnline() ?
                    "<font color=\"green\">".$player->getName()."</font>" : "<font color=\"red\">".$player->getName()."</font>").'</A>
                ';
 /*   <br><small>Level: '.$player->getLevel().' '.$vocation_name[$player->getPromotion()][$player->getVocation()].'</small> */                 
 
 $guild_nick = $player->getGuildNick();
                    if($logged)
                        if(in_array($player->getId(), $players_from_account_ids))
                            $main_content .= '(<input type="text" name="nick" value="'.htmlentities($player->getGuildNick()).'"><input type="submit" value="Change">)';
                        else
                        if(!empty($guild_nick))
                            $main_content .= ' ('.htmlentities($player->getGuildNick()).')';
                    else
                        if(!empty($guild_nick))
                            $main_content .= ' ('.htmlentities($player->getGuildNick()).')';
                    if($level_in_guild > $rank->getLevel() || $guild_leader)
                        if($guild_leader_char->getName() != $player->getName())
                            $main_content .= '&nbsp;<font size=1>{<a href="?subtopic=guilds&action=kickplayer&guild='.$guild->getId().'&name='.urlencode($player->getName()).'">KICK</a>}</font>';
                    $main_content .= '</TR></FORM>';

                }
                $main_content .= '</TABLE></TD><TD>'.$vocation_name[$player->getPromotion()][$player->getVocation()].'<TD>'.$player->getLevel().'</TR>';
                
                
                
            }
        }
 
Back
Top