We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

it is Possible to add PageViews for blogpost | Forum

cit27
cit27 Dec 19 '12
How to add PageViews for blogposting. it is like forumpost?
top/under blogpost:
Sample text: views: 27 views



Honsa
Honsa Dec 20 '12
you have to look how it works in forum. there are some lines in controllers/topic.php for this, like this who looks like adding a value to a field in table forum_topics:


//update topic's view count        $topicDto->viewCount += 1;


and of curse you need you db entry 


`viewCount` int(11) NOT NULL default '0',


and the output in template, should be easy to implement now

cit27
cit27 Dec 21 '12
What code to implement on db and blogs template...? thank you

This topic is locked