Version: 1.00, by Birdie501
Developer Last Online: Feb 2011
Version: 2.2.x
Rating:
Released: 07-08-2002
Last Update: Never
Installs: 6
No support by the author.
************************************************** **
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!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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.
Originally posted by Birdie501 Darren do you have any hacks installed that uses different editpost templates like the wysiwyg hack? and did you try with my code?
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:
Originally posted by Birdie501 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.
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?
Originally posted by Boofo The delte 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?
in editpost.php i have this and it works:
PHP Code:
if ( ($enableHTMLEdit == 1) AND ( ($bbuserinfo['enablewysiwyg']) ) ) {
if ( ($bbuserinfo[usergroupid] == 6) OR (ismoderator($threadinfo[forumid],"candeleteposts")) ){
eval("\$deletepost = \"".gettemplate("editpost_delete")."\";");
} else {
$deletepost = "";
}
eval("dooutput(\"".gettemplate("editpost_wysiwyg")."\");");
} else {
if ( ($bbuserinfo[usergroupid] == 6) OR (ismoderator($threadinfo[forumid],"candeleteposts")) ){
eval("\$deletepost = \"".gettemplate("editpost_delete")."\";");
} else {
$deletepost = "";
}
eval("dooutput(\"".gettemplate("editpost")."\");");
}
of course as you said you have to put $deletepost in template editpost_wysiwyg and delete the part of the form.