Views in blog post: Blogs Home + All / Top / Popular / Featured Posts and index page (were the search post is used), look at the photo.
1)
Edit file modules/boonex/blogs/templates/base/blogpost_unit.html
Add code below before __comments_count__
<span class="margined10">
<span>__post_view_count__ <bx_text:_views /></span>
</span>
Like this:
<span class="margined10">
<span>__post_view_count__ <bx_text:_views /></span>
</span>
<span class="margined10">
<span>__comments_count__ <bx_text:_comments /></span>
</span>
2)
Edit file modules/boonex/blogs/classes/BxBlogsSearchUnit.php
a)
Find this code(at the top of the file) var $aCurrent = array(
add Views to ownFields code like this:
'ownFields' => array('PostID', 'PostCaption', 'PostUri', 'PostDate', 'PostText', 'Views', 'Tags', 'PostPhoto','PostStatus', 'Rate', 'RateCount', 'CommentsCount', 'Categories'),
b)
Find this code
$sAuthor = '';
if ($this->iPostViewType==2) {
$sAuthor = getProfileLink($aResSQL['ownerId']);
$sAuthor = '<a href="'.$sAuthor.'">'.$sOwnerNickname.'</a>';
}
add this code below it
$sViewsCount = $aResSQL['Views'];
c)
Find this code $aUnitReplace = array();
and this code $aUnitReplace['clock_icon'] = $sClockIcon;
add this code below
$aUnitReplace['post_view_count'] = $sViewsCount;
3)
Add a new language key: _views
Key name: _views
Category: Boonex Blogs
String text for English language: Views
SAVE
4)
DONE.