5
edit modules/news/article.php somewhere around line 158
/**
* update counter only when viewing top page and when you are not the author or an admin
*/
if (empty($_GET['com_id']) && $storypage == 0) {
if(is_object($xoopsUser)) {
if( ($xoopsUser->getVar('uid')==$article->uid()) || is_admin_group()) {
} else {
$article->updateCounter();
}
} else {
$article->updateCounter();
}
}
to
/** HACKED to include admin in counter
* update counter only when viewing top page and when you are not the author
*/
if (empty($_GET['com_id']) && $storypage == 0) {
if(is_object($xoopsUser)) {
if( ($xoopsUser->getVar('uid')==$article->uid()){
} else {
$article->updateCounter();
}
} else {
$article->updateCounter();
}
}