Odoslané pred 4 rokmi
I have a side panel of popular news, without photos, only the news title 'News Subject'. She works for PF9. I tried to make this panel with photos, like here https://php-fusion.eu/infusions/forum...read_id=24 Related panel, but without result. I can not do it at all. Maybe someone can help me add code to show photos in this panel.The code of the panel :
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
openside("Top 5 News");
$result = dbquery("SELECT news_id, news_subject, news_reads FROM ".DB_NEWS." WHERE (".time()." > news_start OR news_start = 0) AND (".time()." < news_end OR news_end = 0) AND (news_datestamp > ".(time() - 2592000).") AND ".groupaccess('news_visibility')." ORDER BY news_reads DESC LIMIT 5");
if (dbrows($result)) {
echo "<ul>\n";
while ($data = dbarray($result)) {
echo "<li>".THEME_BULLET." <a href='".INFUSIONS."news/news.php?readmore=".$data['news_id']."'>".$data['news_subject']." (".$data['news_reads'].")</a></li>\n";
};
echo "</ul>\n";
} else {
echo $locale['lnp_021'];
}
closeside();
?>
I have a major difficulty creating this part of the code :
$result = dbquery("SELECT news_id, news_subject, news_reads FROM ".DB_NEWS." WHERE (".time()." > news_start OR news_start = 0) AND (".time()." < news_end OR news_end = 0) AND (news_datestamp > ".(time() - 2592000).") AND ".groupaccess('news_visibility')." ORDER BY news_reads DESC LIMIT 5");
Upravil/a zizub dňa 30/09/2017 23:45, pred 4 rokmi