Comment and post view count

Posted in: Newsmag
Post count: 5

Hi,

Could you give me some help in how to add post views and comment count to the home page modules? (Not only under large thumbs.)
I would also like to disable the author.
I would like the highlighted meta and not the author name under all titles on the home page: http://screencast.com/t/qcqMuudJrH

Thanks.

Post count: 5

I figured out how to remove author meta and add comment count.
I only need help with post views now… 🙂

Post count: 5

And I can’t find the .png file or sprite element for the comment count icon or the view count icon…
Where are they?

Post count: 6600

Hi,

For views to appear on module view you have to make some changes to the module file you wan to use and add this line <?php echo $this->get_views();?> to it like this: http://screencast.com/t/mvPFV3j1 then add the get_views function to the td_module file, like this: http://screencast.com/t/0CQ0vPrc
This is an example for the 7 module but you can do it for other module as well.
Result: http://screencast.com/t/nHmm5cLZ1L
Here you have the get_views function: http://pastebin.com/yfvFpeKa

The comments/views icons are added via css using the newsmag font, like this: http://screencast.com/t/HrqO1w3usey
Hope this helps!

Thanks

  • This reply was modified 11 years by Lucian.
Post count: 5

Thank you Lucian.
Could you also tell me where the post meta icon image files are within the theme folder? I think I opened every subdirectory and couldn’t find them…

Post count: 6600

Hi,

There are no image files because the icons are added using the custom newsmag font: http://screencast.com/t/gU7pKrZB

Thanks

Post count: 5

So what do I do if I want to change any of them?

Post count: 6600

Hi,

You can use the background-image css property and set an image to be used instead of the font: http://www.w3schools.com/cssref/pr_background-image.asp

Thanks

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newsmag’ is closed to new topics and replies.