render_article($article_subject, $article[$rowstart], $article_info);
//------------*Start*-------------//
if (isset($_GET['article_id']) && isNum($_GET['article_id']) && FUSION_SELF=='articles.php' ) {
//locales
$l_name = 'Other articles in this section:';
$l_nonews = '<i>In this section no other articles.</i>';
$l_thiscat = 'Transition into the category...';
//===
$ca_count = 10 ; //max art
$ca_ntrim = 80 ; //reduce art
//===
opentable($l_name);
echo "<table border='0' width='100%' cellspacing='0' cellpadding='3'>\n<tr>\n";
echo "<td class='tbl' width='50%'>\n";
$article_now = $_GET['article_id'];
$see_cat = 0 ;
$result1 = dbquery("SELECT article_cat FROM ".DB_PREFIX."articles WHERE article_id=$article_now LIMIT 1");
if ($data1 = dbarray($result1)) { $see_cat = $data1['article_cat']; }
$result1 = dbquery("SELECT article_subject,article_id FROM ".DB_PREFIX."articles WHERE article_cat=$see_cat AND article_id<>$article_now ORDER BY RAND() DESC LIMIT $ca_count");
if (dbrows($result1)) {
echo '<ul>';
while ($data1 = dbarray($result1)) {
echo "<li><span class='small'></span> <a href='".BASEDIR."articles.php?article_id=".$data1['article_id']."' title='".$data1['article_subject']."'>".trimlink($data1['article_subject'],$ca_ntrim)."</a></li>";
}
echo '</ul>';
}
else { echo $l_nonews; }
echo '<hr/><div align="center"><a href="'.BASEDIR.'articles.php?cat_id='.$see_cat.'">'.$l_thiscat.'</a></div>';
}
echo "</td>\n";
//----------*Block_ads*-------//
echo "<td class='tbl' width='50%'>\n";
//
?>
Here insert Script Code ...
<?php
//
echo "</td>\n";
echo "<tr>\n</table>\n";
closetable();
//------------* End *---------------//
render_article($article_subject, $article[$rowstart], $article_info);
$ads = " [b]CODE ADS[/b] ";
$art_z_reklama = "<table border=0 width='100%' cellpadding='4'><tr><td align='center'>".$ads."</td></tr><tr><td style='text-align:justify'>".$article[$rowstart]."</td></tr><tr><td align='center'>".$ads."</td></tr></table>";
render_article($article_subject, $art_z_reklama, $article_info);
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions