I have no idea how to add the read count to my theme, here's the theme.php
I use jQ_Blog:
Code
function render_news($subject, $news, $info) {
global $locale, $aidlink, $data;
if (!isset($_GET['readmore'])) {
echo "<h1 class='ncapmain'><a href='news.php?readmore=".$data['news_id']."'>".$data['news_subject']."</a></h1>\n";
} else {
echo "<h1 class='ncapmain'>".$subject."</h1>\n";
}
echo $news."\n";
echo "<p class='nfoot'>";
echo "<img src='".THEME."images/author.gif' alt='' style='vertical-align:middle;border:0px;' /> <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['global_071'].showdate("longdate", $info['news_date']);
if ($info['news_allow_comments']) { echo " | <img src='".THEME."images/comments.gif' alt='' style='vertical-align:middle;border:0px;' /> <a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> |";}
echo " <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['global_075']."' title='".$locale['global_075']."' style='vertical-align:middle;border:0px;' /></a>";
if (iADMIN && checkrights("N")) { echo " <a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$info['news_id']."'><img src='".IMAGES."edit.gif' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0px;' /></a>\n"; }
echo "</p>";
}
I know that this is useful:
(but i want my layout...)
Code
echo "<p class='nfoot'><img src='".THEME."images/author.gif' alt='' style='vertical-align:middle;border:0px;' />".newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id'])."</p>";
Can someone help me?
And a little second Question: How can i remove the Categorie-Icon from news.php?
Thx!
Spunki.li |