######################################################## ## ## Hack Title: Mods can't delete posts ## Hack Version: 1.0.0 ## Author: Christoph "Toxic" Hellings (toxic@freenet.de) ## Date Created: 08-26-02 ## Thread Location: http://www.tforumhacks.com/tforum/viewtopic.php?TopicID=1021 ## Working Example: ## Description: The title says all ;) ## ## ## Installation Level: Easy ## Installation Time: 5 Minutes ## Files To Edit: 2 ## Edit Database: no ## Included Files: none ## ######################################################## ## ## Installation/Author Notes: ## ## I just did a very short test, so can guarantee for nothing... ## Test it, you will see if it works like you want. ## If you have other languages installed, you have to do with ## them the same like with the english_lg.php ## ######################################################## # #-----[ ACTION: BACKUP ]------------------------------------------ # Every time you edit your files, you should always back them up first. Although all of these hacks have been tested on various systems, they may not work with your configuration or you may not like what it does. Backing up protects yourself and your users from downtime. # #-----[ ACTION: OPEN ]-------------------------------------------- # message.php # #-----[ ACTION: FIND ]-------------------------------------------- # if ($deletemessage == "yes") { if ($msgInfo["FirstMessage"] == "yes") # #-----[ ACTION: REPLACE]------------------------------------------ # if ($deletemessage == "yes") { if ((!is_admin($username,$password)) && ($username != $msgInfo["Poster"])) {fHeader();UhOh($txt['errNoDelPerm']);} if ($msgInfo["FirstMessage"] == "yes") # #-----[ ACTION: OPEN ]------------------------------------------- # english_lg.php # #-----[ ACTION: LOCATE ]----------------------------------------- # $txt['errNoEditPerm'] = "You don't have permission to edit this message."; # #-----[ ACTION: ADD AFTER ]-------------------------------------- # $txt['errNoDelPerm'] = "You don't have permission to delete this message."; # #-----[ ACTION: SAVE & UPLOAD ]----------------------------------- # message.php english_lg.php # #----------------------------------------------------------------- # EOF