Re: AkoComment - change settings Go to akogallery.php file
Find :
$is_editor = (strtolower($my->usertype) == 'editor' || strtolower($my->usertype) == 'administrator' || strtolower($my->usertype) == 'superadministrator' );
and change editor for 'author' or make another one, just like it is...
Then go to sub_commentpic.php and replace the code after #Save New Values, until "?>" with this one...
#New Code - Only authors can comment...
if ($is_editor) {
if ($id) {
# Save new values
$cmtip = getenv('REMOTE_ADDR');
$cmtdate = time();
# Clear any HTML
$cmttext = strip_tags($cmttext);
$cmtname = strip_tags($cmtname);
$query1 = "INSERT INTO ".$mosConfig_dbprefix."akogallery_comments VALUES ('', '$id', '$cmtip', '$cmtname', '$cmttext', '$cmtdate', '1')";
$database->openConnectionNoReturn($query1);
# Get back to details page
echo "<SCRIPT> alert('Comentario Agregado!.'); document.location.href='index.php?option=com_akoga llery&Itemid=$Itemid&func=detail&id=$id';</SCRIPT>";
}
}
I think that would solve the problem... |