View Full Version : Prevent users seeing the delete post box when editing a post?
Darren Lewis
07-09-2002, 12:26 PM
Hi
I don't allow members to delete their posts, only edit them. Moderators and Admin can delete posts.
How can I remove the box to delete posts from the editpost template when a user edits a post, but have the box show when a moderator or admin edits a post?
Is this just a simple template mod, or do I have to edit the editpost.php file?
If I need to hack the php file, what do I need to do?
Thanks.
Darren.
Birdie501
07-09-2002, 01:40 PM
Hi,
please wait about 2 hours, when i am back home i will release this!
Birdie501
07-09-2002, 02:52 PM
OK RELEASE is here: https://vborg.vbsupport.ru/showthread.php?s=&threadid=40861
Logician
07-09-2002, 03:12 PM
Excuse me but doesnt that delete box automatically removed if you disable usergroup's "Can delete own threads" and "Can delete own posts" rights via Admin CP? I think it is.. :rolleyes:
Gary King
07-09-2002, 03:40 PM
Originally posted by Logician
Excuse me but doesnt that delete box automatically removed if you disable usergroup's "Can delete own threads" and "Can delete own posts" rights via Admin CP? I think it is.. :rolleyes:
lmao that's what I was gonna say :P
Birdie501
07-09-2002, 04:11 PM
Uppss my fault :-))
Admins please delete my hack :)
Gary King
07-09-2002, 04:12 PM
But a nice try nonetheless :)
Darren Lewis
07-09-2002, 04:44 PM
Originally posted by Logician
Excuse me but doesnt that delete box automatically removed if you disable usergroup's "Can delete own threads" and "Can delete own posts" rights via Admin CP? I think it is.. :rolleyes:
That's what I thought, but when I checked (using a test member account) I can see the delete post box, but clicking on the button brings up an error page saying "You do not have permission to access this page."
Birdie501 thanks for your hack - I'll download it and have a look.
Darren.
Darren Lewis
07-10-2002, 10:29 AM
I've carried on the discussion in the hack release thread, so perhaps this thread could be closed now?
Darren
Bison
01-06-2003, 01:09 AM
There is use for this hack ... don't kill it yet. For those using the PM Users upon Thread Deletion hack, this is a quite usefull since it hides that hack too ... ya just have to modify your template and add that hack template to yours.
With the two combine, this is a very good hack!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.