Or know how to fix it...
Because it still runs, 2 hours behind
Local: Thu, 12 Oct 2006 21:01:48 +0000
GMT: Thu, 12 Oct 2006 21:01:48 +0000
Local: Thu, 12 Oct 2006 23:02:34 +0200
GMT: Thu, 12 Oct 2006 21:02:34 +0000
if( ($xoopsUser->getVar('uid')==$article->uid()) || news_is_admin_group()) {
$article->updateCounter();
tcnet wrote:
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();
}
}
Parse error: syntax error, unexpected '{' in /mounted-storage/home24b/sub001/sc22304-CAED/www/modules/news/article.php on line 163