Parašė NoNy· 2013 Kov. 24 01:03:33
#1
Sveiki, taigi iškilo tokia problema.
Šitie IMG yra įkeliami per naujienų redagavimą (ten kur galima pasirinkti ale featured image), yra viršui slideris, ten juos rodo, o čia ne.
Naujienų kodas:
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0' class='main-body'>\n<tr>\n<td>";
echo "<table cellpadding='0' cellspacing='0' border='0'>\n<tr>\n";
// Image
echo "<td valign='top'>";
echo "<table cellpadding='0' cellspacing='0' border='0'>\n<tr>\n";
echo "<td colspan='2'><img src='".BASEDIR."images/news/".$info['news_image']."'></td>\n";
echo "</tr><tr>";
echo "<td class='news_views'>Peržiūrų: ".$info['news_reads']."</td>\n";
echo "<td class='news_comments'>Komentarų: ".$info['news_comments']."</td>\n";
echo "</tr></table>";
echo "</td>\n";
// News
echo "<td valign='top'>";
echo "<table cellpadding='0' cellspacing='0' border='0'>\n<tr>\n";
echo "<td><span style='padding-left:7px;font-family:Calibri;font-size:14px;font-weight:bold;color:#3c3c3c;text-transform:uppercase;'>".showdate("forumdate", $info['news_date']).", Paskelbė: ".$info['user_name']." -</span> <span style='font-family:Calibri;font-size:14px;font-weight:bold;color:#d72725;text-transform:uppercase;'>".$subject."</span></td>\n";
echo "</tr><tr>";
echo "<td style='padding-left:8px;font-family:Arial;font-size:11px;color:#4e4e4e;'>";
echo $news;
echo "</td>";
echo "</tr><tr>";
echo "<td style='padding-left:8px;padding-top:5px;'>";
echo "<table cellpadding='0' cellspacing='0' border='0'>\n<tr>\n";
echo "<td class='news_line'></td>";
echo "<td><a href='".BASEDIR."news.php?readmore=".$info['news_id']."'><img src='".THEME."images/news/read_more.png' border='0' alt='' title=''/></a></td>";
echo "</tr></table>";
echo "</td>";
echo "</tr></table>";
echo "</td>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
}