May 18 2012 09:00:02
Languages
Navigation
Friends & Affiliates
Roadmap
[N] User Profile Wall
[N] Error log like in P...
[N] Submit photo - Subc...
[N] Warnings - who can ...
[N] [edit profile]Save ...
[N] Moving panels with ...
[N] Forum thread deform...
[N] Thumbnails in downl...
[N] [Locale German] New...
[N] Warnings only for a...
Users Online
· Guests Online: 7

· Members Online: 0

· Total Members: 490
· Newest Member: malgorzatka89
Last Seen Users
· xxyy17:27:37
· lilin0402 1 day
· angel 2 days
· vaesir 4 days
· malgorzatka89 1 week
· Iput23 1 week
· djdandi 1 week
· Cerplyt 1 week
· uygarozan 1 week
· sgejido 1 week

Login
 Username  Password  
View Thread: Adding read count to the news footer?
Who is here? 1 Guest
 Print Thread
Adding read count to the news footer?
spunk
I have no idea how to add the read count to my theme, here's the theme.php
I use jQ_Blog:

Download source  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&amp;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."&amp;action=edit&amp;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...)

Download source  Code

echo "<p class='nfoot'><img src='".THEME."images/author.gif' alt='' style='vertical-align:middle;border:0px;' />".newsposter($info," &middot;").newsopts($info,"&middot;").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
 
http://www.bdsm-ansichten.com
slaughter
Take a look at the file includes/theme_functions_include.php
In the variable $info['news_reads'] the count of reads is storred.
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
mark thread as read Feature Requests 1 14-03-2012 03:57
BB code editor for news and articles. Feature Requests 1 13-03-2012 03:58
don`t count thread post Feature Requests 3 13-03-2012 03:57
limit caracter posts & no count posts Feature Requests 1 13-03-2012 03:55
News image problem Suspected Bugs and Errors 1 05-03-2012 03:54
Share this thread
URL:
BB-Code:
HTML:
AddThis:
Share |
Render time: 0.12 seconds - 87 Queries 989,170 unique visits