![]() |
Delete a post with only one button (in postbit)
This is a really easy hack to install and use, and it allows you to delete any post with only one click, instead of going through the editing process and then selecting delete, and then confirming, etc.
NOTE: Do you want to use an image instead of a button? Click here! NOTE: You cannot use a link to replace the button because the code requires you to submit a form, and using a link will make a huge security risk where people can delete posts as they wish! Instructions Open up the postbit template and find PHP Code:
PHP Code:
PHP Code:
PHP Code:
Images you can use for the delete button https://vborg.vbsupport.ru/external/2004/05/2.jpg |
woohoo.! thanks.
|
Thank You Gary :)
|
Gary, if you try to delete the first post in a thread, it goes to a blank white page and nothing happens. You need to fix this so the delete button won't show up if it is the first post in a thread. ;)
|
good mod ! thanks a lot !
|
work perfect to me even in first post in thread...
just small additions i`d love to see (that was in the same hack for vb2.x.x): - any chance to add small nitification pop-up window to submit delete (just in case that i pushed right button :devious: ) - how can i change that to image or just text link? |
but when I used this hack. I got a small problem! it is member's number posts. One member has 25 posts, and when I delete a thread which has 3 posts of him. His number post has only 22.
How can I prevent decreasing number post when I delete a thread or a post? |
Quote:
PHP Code:
PHP Code:
PHP Code:
|
Quote:
|
very nice!
kinda like the Quick Delete Post hack for vB2 /me clicks Install MGM out |
Quote:
|
lol, I wasn't saying you were, don't take my post the wrong way :P
besides, that hack never worked for me for some reason anyways ;) MGM out |
Quote:
|
I allow 2 of my usergroups to delete their posts... they can delete their posts, but I assume the "manage" ability isn't there (that would be the best scenario).
Any way to limit this (icon visible) to Admins/Supermods only? |
Gary, are you going to fix the first post in the thread problem?
|
Quote:
|
Make it a .txt file, ok?!
|
I thought vb must have make this default, deleting a post is a very common action, have to go to editpost and check delete button is too much to delete a post.
|
Convenience does not necessarily equate to laziness!
|
Quote:
|
Hummm... Okay.
|
Quote:
PHP Code:
Done! |
Quote:
|
Quote:
|
Quote:
|
Great! Thanks Gary.
|
thanks! any chanse for second modification (pop-up nitification window)?
|
Quote:
|
fine it`s better, to protect from misstake, couse i made options to Physically Remove Message delete...
Thanks! |
Quote:
|
Quote:
|
don't forghet...that if you use old POSTBIT style you need to make modifications to postbit_legacy !
|
Quote:
|
This hack doesn't even work right. Try deleting the first post in a thread and see what happens. Another half finished hack. ;)
|
Quote:
|
Like I said earlier in the thread. When you try and delete the first post in a thread. ;)
|
Quote:
|
Not for the first post, it doesn't. It works fine for other posts but not the first post in a thread.
|
Quote:
|
This doesnt work for RC 4?
|
All times are GMT. The time now is 04:47 PM. |
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:
|