How to disallow to delete their comments and edit their names How to disallow to delete their comments and edit their names
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How to disallow to delete their comments and edit their names

Started by can93, September 19, 2004, 09:12:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

can93

Hello,

I see that users can delete their own comments, and edit their names in the comments...

How to disable this ? But i would that the administrator can do it..

Thanks

Casper

Actually, they cannot edit their name, it just looks like they can, but when they try it just remains the same.

To remove the delete button, open your theme.php, find and delete this code;

<a href="delete.php?msg_id={MSG_ID}&what=comment"  onclick="return confirm('{CONFIRM_DELETE}');"><img src="images/delete.gif" border="0" align="absmiddle" ></a>
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here