Hi!
Currently it's looking like this when looking at guilds.
But I want it to look like this RED part.
Basically I want to make it split between these rows to make it look better.
PHP script
REP+
Currently it's looking like this when looking at guilds.
But I want it to look like this RED part.
Basically I want to make it split between these rows to make it look better.
PHP script
PHP:
$main_content .= '<BR><BR>
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=100%>
<tr style="background: url(images/newsheadline_background.gif);"><TD COLSPAN=3 CLASS=white><B>Guild Members</B></TD></TR>
<tr style="background: url(images/newsheadline_background.gif);"><TD WIDTH=10% CLASS=white><B>Rank</B></TD>
<TD WIDTH=60% CLASS=white><B>Name and Title</B></TD></TR>';
$showed_players = 1;
foreach($rank_list as $rank)
{
$players_with_rank = $rank->getPlayersList();
$players_with_rank->orderBy('name');
$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=\"#004294\">".$player->getName()."</font>").'</A>';
$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 .= ' <font size=1>{<a href="?subtopic=guilds&action=kickplayer&guild='.$guild->getId().'&name='.urlencode($player->getName()).'">KICK</a>}</font>';
$main_content .= '</FORM></td></TR>';
}
$main_content .= '</TABLE>';
}
}
$main_content .= '</TABLE>';
REP+
Last edited: