23/09/2011, 18:33
|
| | Fecha de Ingreso: enero-2006
Mensajes: 52
Antigüedad: 18 años, 10 meses Puntos: 0 | |
Respuesta: Problema con texto alineado en noticia con tópico Por eso lo consulto aquí, porque llevo dos semanas revisando el código de arriba a abajo y no doy con ello. He realizado cientos de pruebas y cambios sin resultado alguno.
Por si sirve de algo dejo el código referente a esa parte:
/************************************************** **********/
/* Function themeindex() */
/* This function format the stories on the Homepage */
/************************************************** **********/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath, $sid;
$ThemeSel = get_theme();
if(!empty($topicimage)) {
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
$topic_img = "<td width=\"25%\" align=\"center\" class=\"extra\"><a href=\"modules.php?name=News&new_topic=".$topi c."\"><img src=\"".$t_image."\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" /></a></td>";
} else {
$topic_img = "";
}
if (!empty($notes)) {
$notes = "<br /><br /><strong>"._NOTE."</strong> $notes\n";
} else {
$notes = "";
}
$content = '';
if ($aid == $informant) {
$content = "$thetext$notes\n";
} else {
if(defined('WRITES')) {
if(!empty($informant)) {
if(is_array($informant)) {
$content = "<a href=\"modules.php?name=Your_Account&op=userin fo&username=$informant[0]\">$informant[1]</a> ";
} else {
$content = "<a href=\"modules.php?name=Your_Account&op=userin fo&username=$informant\">$informant</a> ";
}
} else {
$content = "$anonymous ";
}
$content .= _WRITES." \"$thetext\"$notes\n";
} else {
$content .= "$thetext$notes\n";
}
}
$posted = _POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time ";
$datetime = substr($morelink, 0, strpos($morelink, "|") - strlen($morelink));
$morelink = substr($morelink, strlen($datetime) + 2);
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo " <tr>\n";
echo " <td><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo " <tr>\n";
echo " <td width=\"88\"><img src=\"themes/WoW_Horde/images/story/story_01.gif\" height=\"61\" alt=\"\"></td>\n";
echo " <td height=\"61\" style=\"width: 100%; background-image: url(themes/WoW_Horde/images/story/story_02.gif)\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo " <tr>\n";
echo " <td><font class=\"storytitle\"><div style=\"padding-top:21px; padding-left:6px;\"><strong>$title</strong></div></font></td>\n";
echo " </tr>\n";
echo "</table></td>\n";
echo " <td width=\"98\"><img src=\"themes/WoW_Horde/images/story/story_03.gif\" height=\"61\" alt=\"\"></td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo " <tr>\n";
echo " <td style=\"width: 34px; background-image: url(themes/WoW_Horde/images/story/story_04.gif)\"></td>\n";
echo " <td bgcolor=\"#20140C\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo " <tr>\n";
echo " $topic_img\n";
echo " <td width=\"75%\" class=\"content\" valign=\"top\">$content</td>\n";
echo " </tr>\n";
echo "</table></td>\n";
echo " <td style=\"width: 33px; background-image: url(themes/WoW_Horde/images/story/story_06.gif)\"></td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo " <tr>\n";
echo " <td width=\"93\"><img src=\"themes/WoW_Horde/images/story/story_07.gif\" width=\"93\" height=\"88\" alt=\"\"></td>\n";
echo " <td height=\"88\" style=\"width: 100%; background-image: url(themes/WoW_Horde/images/story/story_08.gif)\"><hr><div style=\"padding-bottom:4px;\" align=\"right\">$posted<br /></div><div style=\"padding-bottom:8px;\" align=\"right\">$datetime $topictext | $morelink</div></td>\n";
echo " <td width=\"99\"><img src=\"themes/WoW_Horde/images/story/story_09.gif\" width=\"99\" height=\"88\" alt=\"\"></td>\n";
echo " </tr>\n";
echo "</table>\n";
echo " </td>\n";
echo " </tr>\n";
echo "</table><br />";
} |