![]() |
Hide Post Delete Option Hack Ver. 1.0
************************************************** **
Hide Post Delete Option Hack Ver. 1.0 by Birdie501 Requested by Darren Lewis here -> https://vborg.vbsupport.ru/showthrea...&postid=270940 Latest Version 1.0, tested for vb 2.2.x Support: As good as i can :) ************************************************** ** What this hack does? It hide the delete post option for users in editing post! Only admins or moderators can delete posts! Please click install if you use this hack! zip attached. ;) I think screenshots are not neccessary! |
Isn't there an option for this in the admin cp? I don't know, seems like there would be.
|
Quote:
|
upps sorry thats correct!
just tried! :) But this hack is usefull if your users are not allowed to delete posts as requested by Darren Lewis :) old post was: well i think there is one to allow users to delete posts or not, but they would still see the option to delete if they aren't allowed to delete posts! Like here on vb.org! |
Birdie501, thanks for releasing this for me.
I've set these options in the admin panel, but the when I checked (using a test member account) I can still 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." |
I've set the option off for the usergroup, but the delete box still appears. When they click on the delete post button, then they get told that they can't do this.
What I want is for them to not be able to see the box to click on in the first place. |
Are you sure you entered your page as normal user? Maybe you have a cookie problem and you enter the page still as admin. Maybe thats the reason why you still see the box!????
|
Quote:
Thanks anyway. I may just delete the box from the template. If mods want to delete the whole post, it's probably best to edit it and leave a remark instead. Darren. |
Darren do you have any hacks installed that uses different editpost templates like the wysiwyg hack? and did you try with my code?
|
Quote:
I never thought to revert the template. Anyway, I've installed your hack just now and it works perfectly. A regular member cannot see the delete post box, but I can :) Thanks for that. Darren. |
Ok thanks! Even if only you will use it , it was worth to make it :)
|
I'll play around with a clean fresh install of vbulletin on my local PC and maybe drop a comment to Jelsoft about it if I still get the same. My online vb has been hacked a little so this may be interfering with things - can't see how though.
Cheers, Darren |
Will this hack work with the WYSIWYG hack?
Quote:
|
Yes it will, but you don't need this hack. This function is already included in vb. You just have to disable the function 'can delete post" in admin Cp for the specific usergroup.
|
I already did that but I never tried to log on under one of the groups I disabled it for to see if the button still shows up. Does the button show up if it is turned off?
Quote:
|
Nothing will be shown.
|
You mean if I use this hack, nothing will be shown, right? Because I just tested it without the hack and the button is still there. :)
Quote:
|
Normally nothing will be shown if you turned it off!
Also if you use my code nothing will be shown! :) |
The delete button is still there (without your hack installed) even if it is turned off. It just gives you the "Can't delete" error message. If your hack is installed, the button is NOT shown. It works great for that part of it. But if you have the WYSIWYG hack installed, it is still shown in there unless I put the $deletepost in there. Then it doesn't show. But is also doesn't show even if you are allowed to delete messages in the WYSIWYG editor for some reason. Any ideas on how to make it work for that too? :)
|
Quote:
PHP Code:
|
Excellent work, Birdie501! That did the trick. Now it works great in either one of them. Thanks again for an excellent hack! :)
|
Quote:
This is something that should definitely be in the original vbulletin IMO. I don't have the WYSIWYG hack installed (but it looks good). Darren. PS Admins please don't delete this thread as it is needed :) |
All times are GMT. The time now is 05:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|