estou com problema com esse codigo de widget castle dono, nao esta puxando o logo da guild dona, uso gesior 2012, versao8.6
em layout:
<div id="castle" class="Themebox" style="background-image:url(<?PHP echo $layout_name; ?>/images/themeboxes/warcastle.png);">
<?php include_once('widget_warcastle.php'); ?>
</div>
em tibiarl/widget_warcastle.php
<?php
$consulta = $SQL->query('SELECT `guild` FROM `castelo_guerra` ORDER BY `id` ASC;');
$number_of_rows = 0;
foreach($consulta as $guildid){
$id = $guildid['guild'];
}
$consulta2 = $SQL->query('SELECT `name`, `logo_gfx_name` FROM `guilds` WHERE id = '.$id.';');
?>
<style type="text/css" media="all">
a.castlefont {
font-family: Verdana, Arial, Helvetica;
font-size: 13px;
color: #ffcc33;
text-shadow:#000 1px -1px 2px, #000 -1px 1px 2px, #000 1px 1px 2px, #000 -1px -1px 2px;
text-decoration:none
}
a:castle.topfont {
font-family: Verdana, Arial, Helvetica;
font-size: 10px;
color: #CCC;
text-decoration:none
}
</style>
<div id="warcastle" style="margin-top:20px; height:143px; width:180px; background-image:url(<?PHP echo $layout_name; ?>/images/themeboxes/warcastle.gif);">
</br>
</br>
</br>
<?php
foreach($consulta2 as $guild){
echo '
<div align="center">
<a class="castlefont" href="?subtopic=guilds&action=show&guild=' . $id . '">
<img src="guilds/' . ((!empty($guild['logo_gfx_name']) && file_exists('guilds/' . $guild['logo_gfx_name'])) ? $guild['logo_gfx_name'] : 'default_logo.gif') . '" width="64" height="64" border="0"/>
<br/>
<div id="textcastle" style="margin-top:3px;">' . $guild['name'] . '</br></div>
</a>
</div>
</td>
</tr>
</table>
';
}
?>
<div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);"></div>
</div>