$cat_id ="4";
openside("Affiliates & Friends");
include LOCALE.LOCALESET."weblinks.php";
//Category ID to show latest weblinks from
$cat_id ="4";
$result = dbquery("SELECT
weblink_id,
weblink_name,
weblink_datestamp FROM ".DB_WEBLINKS." tl
LEFT JOIN ".DB_WEBLINK_CATS." tc
ON tl.weblink_cat=tc.weblink_cat_id
WHERE ".groupaccess('tc.weblink_cat_access')." AND tc.weblink_cat_id=".$cat_id."
ORDER BY weblink_datestamp DESC LIMIT 0,10");
if (dbrows($result)) {
while($data = dbarray($result)) {
$weblink_name = trimlink($data['weblink_name'], 23);
echo THEME_BULLET." <a href='".BASEDIR."weblinks.php?weblink_id=".$data['weblink_id']."' title='".$data['weblink_name']."' class='side' target='_blank'>".$weblink_name."</a> <br />\n";
}
} else {
echo "<div style='text-align:center'>".$locale['431']."</div>\n";
}
closeside();
Quote
Ankur wrote:
Thanks for sharing Craig ;)
Category Forum
Code Snippet and functions - 8Labels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions