Version: 1.00, by TECK
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 06-30-2002
Last Update: Never
Installs: 83
No support by the author.
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.
How can I make it for Admins only or admin 1? And there's no way to get the confirm delete with a text link?
Quote:
Originally posted by Nakkid Unknown553, did you look at the code? is not the same hack.
my hack will delete the post and also the thread. the hack you listed above will delete the post but will leave the thread active, wich will make it look like that (if you have only one post in it):
you didnt read the hack file properly. let me quote from it:
Quote:
You can also use this as a link, instead of an image. Place the $post[delete] variable whereever you want in the postbit template and edit the 'postbit_deletepost' link to look, for example, like:
Yeah, I figured that out finally. Maybe you ought to have it be a little less confusing. Like saying that you need to replace the template contents with: and then just do the code again with the new link info in it. Or say something like change the link LINE in the above script to. I'm not a total idiot, so if I got confused, how many others will get confused also? And next time, instead of a "So do it", a little how to would have avoided repeated messages like this.
Quote:
Originally posted by Nakkid you didnt read the hack file properly. let me quote from it:
I get no warning at all on deletion. It just goes ahead and deletes the message. Here is the code I have in the postbit_deletepost template:
Code:
<script language="JavaScript">
function confirmdelete() {
messagebox=confirm('You have chosen to delete Post $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=$post[postid]'; }
else { }
}
</script>
<smallfont><a href="editpost.php?s=$session[sessionhash]&action=deletethispost&postid=$post[postid]">Delete Post</a></smallfont>
Originally posted by Nakkid Unknown553, did you look at the code? is not the same hack.
my hack will delete the post and also the thread. the hack you listed above will delete the post but will leave the thread active, wich will make it look like that (if you have only one post in it):
remove the space between [high]java[/high] and [high]script[/high]
also, related to:
Quote:
Originally posted by Boofo
Yeah, I figured that out finally. Maybe you ought to have it be a little less confusing. Like saying that you need to replace the template contents with: and then just do the code again with the new link info in it. Or say something like change the link LINE in the above script to. I'm not a total idiot, so if I got confused, how many others will get confused also? And next time, instead of a "So do it", a little how to would have avoided repeated messages like this.
there is no need for me to do this. first you will learn from it, while you hack the files and second, as you stated yourself, is clearly marked, nothing confusing. it says 'replace the link'. sorry if you felt offended but my intention was to make you understand that is important to read well the hack file before you post.
i would like to know if other collegues, from vB.org, find it confusing. i always try to make my hack files as clear as possible.
post here and let me know please if the information included is clear. thanks.