Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Suggestions, Wishlists & Feature Requests    Topic: Only article author can give plus/minus to comments below
Pages: [1]   Go Down
  Print  
Author Topic: Only article author can give plus/minus to comments below  (Read 3968 times)
0 Members and 1 Guest are viewing this topic.
eMCe71
Newbie
*

Karma: 0
Offline Offline

Gender: Male
Posts: 9



WWW Email
« on: August 30, 2010, 00:19:49 »

Hello,

is there a way to set Jcomments in a way that only article's author could give plus/minuses (thumb up/thumb down) to the comments to his article?

I have a website with quizzes and only author knows solution so I don't want other user to rate other's comments.

Thanks Smiley
Logged
smart
Administrator
Hero Member
*****

Karma: 162
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #1 on: May 30, 2012, 14:50:03 »

It could be solved by small hack in JComments' template:

1. Open /components/com_jcomments/tpl/deafult/tpl_comment.php
2. Find code:
Code:
$this->getCommentVote( $comment );
and replace it with:
Code:
$acl = JCommentsFactory::getACL();
if ($acl->isObjectOwner($comment)) {
$this->getCommentVote( $comment );
}

In this case vote buttons would be shown for article's owner only.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Suggestions, Wishlists & Feature Requests    Topic: Only article author can give plus/minus to comments below
 
Jump to: