Hello, I am looking for someone who will help me transfer the script from Gęsior to MyAcc.
1. Look achievements in characters
2. Look VIP in characters
3. Top Achievements
4. Top Quests
1 look achievements in characters:
The problem is that it is displayed at the top and cut off
1. Look achievements in characters
2. Look VIP in characters
3. Top Achievements
4. Top Quests
1 look achievements in characters:
PHP:
$osiagniecia_enabled = $config['characters']['osiagniecia'] && !empty($config['osiagniecia']);
if($osiagniecia_enabled)
{
$main_content .= '<td width="100%" valign="top">
<table border="0" cellspacing="1" cellpadding="4" width="100%">
<tr bgcolor="#505050">
<td colspan="2" class="white"><b>Osiągnięcia</b></td>
</tr>';
$main_content .= "";
$g = array();
foreach($achiv as $a => $storage)
{
$q = $db->query('SELECT player_id FROM player_storage WHERE `key`='.$storage.' AND player_id='.$player->getId().' AND value=1 LIMIT 1')->fetch();
if($q)
$g[] = $a;
}
$main_content .= '
';
if(count($g) == 0)
$main_content .= '<tr bgcolor="'.$config['site']['lightborder'].'"><td><b>'.$player->getName().'</b> nie ma żadnych achivmentów.</td></tr>';
else
{
$t = 0; $z = 0;
for($x = 1; $x <= (ceil(count($g)/4)); $x++)
{
$main_content .= '<tr bgcolor="'.(is_int($t/2)?$config['site']['lightborder']:$config['site']['darkborder']).'">';
for($y = (1 + $z); $y <= (4 + $z); $y++)
$main_content .= '<td width="25%" align="center">'.($g[($y-1)]?'<img src="images/achievements/'.$g[($y-1)].'.png"/><br/><b>'.ucwords(strtolower($g[($y-1)])).'</b>':'').'</td>';
$main_content .= '</tr>';
$t++;
$z = $z + 4;
}
}
$main_content .= '';
}
The problem is that it is displayed at the top and cut off