cturcotte
asked on
JomSocial Activity Comments add-on question
I am using the Activity Comments add-on with a JomSocial / Joomla installation and
need to customize the functionality.
Currently, if a person is an admin, they can delete any comment. This is all well and good.
What I need, however, is ALSO the ability for the person who posted the comment to delete their own comments.
From what I can tell, the bit of code below enables the Remove button if the person is an admin.
How would I enable the Remove button if the user id matches the user id of a given comment?
Best,
Cynthia
need to customize the functionality.
Currently, if a person is an admin, they can delete any comment. This is all well and good.
What I need, however, is ALSO the ability for the person who posted the comment to delete their own comments.
From what I can tell, the bit of code below enables the Remove button if the person is an admin.
How would I enable the Remove button if the user id matches the user id of a given comment?
Best,
Cynthia
<?php
if( PactivityComments::isSiteAdmin() || $my->id != $act->actor )
{
?>
| <span class="coc-remove"><a href="javascript:void(0);" onclick="jax.call('providers','plugins,pactivitycomment,removecomment','<?php echo $row->id;?>');"><?php echo JText::_('REMOVE COMMENT');?></a></span>
<?php
}
?>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.