×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Delete, Edit comment limitations

Delete, Edit comment limitations 14 years 2 months ago #10561

  • Renay Scott
  • Renay Scott's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
I'd like the ability to turn off delete/edit options for regular members, and only allow for admin or mods to do this. I remember reading that some may not like the idea of not allowing visitors the right to delete/remove their own comments, but sometimes this can be abused. So if not to limit this by certain user type then I'd like for it to be limited by a certain time frame..30 minutes give or take. Currently I've removed the option altogether and am moderating through the admin area, but being able to do this from the frontend would be awesome.

Either of the two proposed options would be good for me. Whichever is easier.

Delete, Edit comment limitations 14 years 2 months ago #10572

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I just went into the JOSC_post.php file in the post_htmlCode function and I was astonished to discover that the code is calling a function called restrictModerationByTime - so I suddenly realized that I've added the option to restrict the moderation of a comment by x minutes, what I don't know is if I made those changes before 4.1.7 or after that :)

So would you be so kind to go to components/com_comment/classes/joomlacomment/josc_post and please look for restrictModerationByTime - if you have this function than everything you was asking for is already there. If it is not, then I will have to figure out what I have changed and will give you the changes.

Cheers,
Daniel

Delete, Edit comment limitations 14 years 2 months ago #10575

  • Renay Scott
  • Renay Scott's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Sure enough, your right.The code is in there. Not quite sure what it's saying though. Is it currently restricting the moderation of the comments after 30 minutes already, or do I have to change anything. If so, what does it need to be changed to.

Thanks for the quick responses.

Delete, Edit comment limitations 14 years 2 months ago #10577

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
How awesome is this!!!!
100*60 means 100 minutes. Change it to 30*60 and you should get your desired 30mins :)
Test it and please report back that everything is working :)
Ah and also don't forget to write a review here:
extensions.joomla.org/extensions/contact...icles-comments/12259

Cheers,
Daniel

Delete, Edit comment limitations 14 years 2 months ago #10585

  • Renay Scott
  • Renay Scott's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
That did the trick. Much appreciated :)
  • Page:
  • 1
Time to create page: 0.107 seconds