Welcome, Guest. Please Login or Register.
May 13, 2025, 12:57:09 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  disallow users from deleting posts? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: disallow users from deleting posts?  (Read 700 times)
Darkorical
Jr. Member
**
Posts: 52


I'm NOT! a llama!

ICQ - 13969229s326@lisco.com
disallow users from deleting posts?
« on: March 28, 2003, 10:16:51 PM »
Reply with quote

is there a mod or am I missing something that will make it so users cannot delete their posts?
Logged

When all the cards are down... I still win
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:disallow users from deleting posts?
« Reply #1 on: March 28, 2003, 10:25:58 PM »
Reply with quote

i believe the option is inside Installed Mods Settings
or maybe that one is to disallow users to lock their topic... can't remember :P
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:disallow users from deleting posts?
« Reply #2 on: March 28, 2003, 10:28:05 PM »
Reply with quote

Quote from: Spaceman-Spiff on March 28, 2003, 10:25:58 PM
i believe the option is inside Installed Mods Settings
or maybe that one is to disallow users to lock their topic... can't remember :P

There is, as yet, no option to disallow people from deleting their own posts.... that I know of.

-[Unknown]
Logged
Darkorical
Jr. Member
**
Posts: 52


I'm NOT! a llama!

ICQ - 13969229s326@lisco.com
Re:disallow users from deleting posts?
« Reply #3 on: April 01, 2003, 07:41:44 AM »
Reply with quote

can  one be made?
Logged

When all the cards are down... I still win
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:disallow users from deleting posts?
« Reply #4 on: April 01, 2003, 07:45:59 AM »
Reply with quote

It's not hard.... the simplest way would be to just...

ModifyMessage.php:
Search for:
   # Make sure the user is allowed to edit this post.
   if ($row['ID_MEMBER'] != $ID_MEMBER && $settings[7] != 'Administrator' && $settings[7] != 'Global Moderator' && !in_array($username, $moderators))
      fatal_error($txt[67]);

Replace:
   # Make sure the user is allowed to edit this post.
   if ($settings[7] != 'Administrator' && $settings[7] != 'Global Moderator' && !in_array($username, $moderators))
      fatal_error($txt[67]);


And then in Display.php:
Find:
         if (in_array($username, $moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' || ($ID_MEMBER == $muserID && $ID_MEMBER != -1))
         {
            $messageButtons[] = '<a href="' . $cgi . ';action=modify;msg=' . $mid . ';threadid=' . $viewnum . ';start=' . $start . ';sesc=' . $sc . '">' . $img['modify'] . '</a>';
            $messageButtons[] = '<a href="javascript:DoConfirm(\'' . $txt[154] . "?','" . $cgi . ';action=modify2;threadid=' . $viewnum . ';msg=' . $mid . ';d=1;start=' . $start . ';sesc=' . $sc . '\');">' . $img['delete'] . '</a>';
         }
         if (in_array($username, $moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator')
            $messageButtons[] = '<a href="' . $cgi . ';action=splitthreads;thread=' . $viewnum . ';at=' . $mid . '">' . $img['split'] . '</a>';


Replace:
         if (in_array($username, $moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' || ($ID_MEMBER == $muserID && $ID_MEMBER != -1))
            $messageButtons[] = '<a href="' . $cgi . ';action=modify;msg=' . $mid . ';threadid=' . $viewnum . ';start=' . $start . ';sesc=' . $sc . '">' . $img['modify'] . '</a>';
         if (in_array($username, $moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator')
         {
            $messageButtons[] = '<a href="javascript:DoConfirm(\'' . $txt[154] . "?','" . $cgi . ';action=modify2;threadid=' . $viewnum . ';msg=' . $mid . ';d=1;start=' . $start . ';sesc=' . $sc . '\');">' . $img['delete'] . '</a>';
            $messageButtons[] = '<a href="' . $cgi . ';action=splitthreads;thread=' . $viewnum . ';at=' . $mid . '">' . $img['split'] . '</a>';
         }


-[Unknown]
Logged
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:disallow users from deleting posts?
« Reply #5 on: April 01, 2003, 10:37:04 AM »
Reply with quote

can u made it too for 1.4.1??

i didnt found:

$messageButtons[]

i guess it is for 1.5.x?

Surfy
Logged
theodora
Noobie
*
Posts: 7


Re:disallow users from deleting posts?
« Reply #6 on: April 29, 2003, 07:01:09 PM »
Reply with quote

If you edit ModifyMessage.php members won't be able to modify their messages... altering only Display.php will do the job ;)  

Quote from: [Unknown] on April 01, 2003, 07:45:59 AM
It's not hard.... the simplest way would be to just...

ModifyMessage.php:
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:disallow users from deleting posts?
« Reply #7 on: April 30, 2003, 12:48:13 AM »
Reply with quote

But if they can't delete posts then they can just edit their post to be empty.  ::)
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  disallow users from deleting posts? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.040 seconds with 20 queries.