The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Quick Delete Post Details »» | |||||||||||||||||||||||||
This hack is an easy and cute one, of my 'Quick' series.
If you have permissions, it will allow you to [high]delete a post[/high] with the simple click of a button, while you view the thread. If there is only one post in the thread, the hack will delete the entire thread, instead. Also the hack is designed to prevent accidental post deletion. A warning message will popup to confirm the message deletion. ESTIMATED INSTALL TIME: 4 minutes REQUESTED BY: (nobody) TESTED IN VERSION: 2.2.6 [high]RELATED HACKS[/high] Quick Reply Box (with Close/Open thread switch) Quick Close/Open Thread (with reason) [HIGH]HACK UPDATES[/HIGH] Version 1.1 ------------------------------------ Changes: - added deletion warning message You like this hack? Please click on the [high]Install[/high] button. To download the latest version of this hack, click below: Show Your Support
|
Comments |
#32
|
||||
|
||||
I noticed a small problem when you are deleting posts. If you go to delete a post and canel out of it, the next post in the same thread you go to delete will have the very same thread id number. Any post you click on in that same thread and cancel out of will always have the same thread id. Is it supposed to work that way?
|
#33
|
||||
|
||||
Quote:
also... i listen to your suggestions chen related to the accidental deletion of the message. great idea you had on the previous thread and that's why i released v1.1 where i added the warning popup. let me know if you like the way i wrote the hack. i think my version is better then the other one (wich i didnt even know it existed, thanks Unknown553). read more here on my comments about this: https://vborg.vbsupport.ru/showthrea...065#post268065 your comments made in the another hack version: https://vborg.vbsupport.ru/showthrea...916#post189916 |
#34
|
||||
|
||||
Nakkid...
The instructions were perfectly clear Satan |
#35
|
||||
|
||||
Mini Fix.
Replace PHP Code:
PHP Code:
and then replace PHP Code:
PHP Code:
|
#36
|
||||
|
||||
great job neo...
i added your fix to the file. except the variable define. you dont need it. thanks. replace your old template with this one: Code:
<script language="JavaScript"> function confirmdelete(postid) { messagebox=confirm('You have chosen to delete Post '+postid+'.\r\rClick OK to delete it, or Cancel to hide this prompt.'); if (messagebox==true) { window.location='editpost.php?s=$session[sessionhash]&action=deletethispost&postid='+postid; } else { } } </script> <a href="javascript:confirmdelete($post[postid])"><img src="{ imagesfolder}/delete.gif" border="0" alt="Delete Message"></a> |
#37
|
||||
|
||||
Just checking before I install - don't want to sound retarded here, but the button/link does NOT show up for users who don't have permissions, correct? I only want my admins and mods to see this. Yes, my mods - I have a decent crew and I really want them to have this feature. I have a real problem on my forums with thread derailment - somebody will ask a question, next thing you know 4 or 5 post later it's totally off topic or people are flaming each other. I'm also going to install the post *nuked* hack, but this one will be useful as well.
|
#38
|
||||
|
||||
Thanks, Neo! That fixed the message id problem. Works great!
|
#39
|
||||
|
||||
Quote:
|
#40
|
||||
|
||||
Everything went well install, but I have a few other things install also, when I click the delete post and confirm it, it takes me to the edit post
|
#41
|
||||
|
||||
check your code changes.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|