Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: artimiausi renginiai

Parašė masck· 2008 Spa. 11 20:10:23
#4

openside("Most popular download");
$result = dbquery(
"SELECT tn.*, tc.*, user_id, user_name FROM ".$db_prefix."news tn
LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
LEFT JOIN ".$db_prefix."news_cats tc ON tn.news_cat=tc.news_cat_id
WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")
ORDER BY news_reads DESC LIMIT 0,5"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 23);
echo " <a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}


closeside();




Cia top 5 naujienos tai gali kazka prisitaikyt siam dalykui.
Tiesiog reikia kad rusiuotu ne pagal perskaitytu skaiciu,o pagal naujienos publikavimo data ir gausis kazkas panasaus.
Or whatever ;]

Redagavo masck· 2008 Spa. 11 20:10:32