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.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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