Previous Thread
Next Thread
Print Thread
Rate Thread
#278543 08/26/2004 8:35 PM
Joined: Jan 2002
Posts: 266
Kel
Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
I would like to be able to disallow the deletion of posts (regardless of whether or not it has replies) by users. I would still like moderators and administrators to have this option but not regular users. Is there a mod for this that would enable me to turn this function on and off from the admin panel?

Thanks in advance...

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
not currently but I am sure one could be written very easily. you would need to add a check to the deletepost.php

if ( ($user['U_Number'] != $Postedby) && ($user['U_Status'] != "Administrator") && (!$modcheck) ) {
$html -> not_right($ubbt_lang['NO_EDIT'],$Cat);
}

where if the forum is checked then they can't delete unless a mod or a admin

and then in the admin control panel viewboard.php add a field that allows you to check permissioning for delete by user group...

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
Ok I made a mod for this. Just gimme a few minutes to post it.

Joined: Jan 2002
Posts: 266
Kel
Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
Twisty... few minutes???? Take a few hours, if you need it!! I'm just VERY appreciative of your efforts!! THANK YOU!!

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
*chuckle*

I have a mad caffeine rush going, so it definitely won't be a few hours

Here you are...

https://www.ubbdev.com/forum/showflat.php/Cat/0/Number/119059/an/0/page/0#119059

Lemme know how it works for you because it's tested on 6.3

Although the changes should be the same for 6.4.1 I would think.

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
looks like she using UBB.threads™ 6.4.1

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
Yeah I just edited my post after I noticed her forum link :-)

Joined: Jan 2002
Posts: 266
Kel
Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
Ok... I installed it. Now I wait for the whining to begin... ... that will tell me how well it's working... ... I'll let you know what happens... Thanks much!!

Joined: Jan 2002
Posts: 266
Kel
Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
Quick update...

Checking the admin log, I see that there have been no post deletions since I installed this little "tweek". And no one has whined yet either... which I kinda half suspected might happen. They didn't want me knowing that they were going around posting and deleting... using that method to bump threads and then causing people to think there are new posts and there's not and they think it's a "software bug" and I'm getting flooded with email and PMs... blahblahblah. They didn't know that I had logging on and knew exactly who was doing what...

Anyway... so it's working!!

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
Ok good to hear

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)