View Full Version : Delete a post with only one button (in postbit)
Gary King
01-24-2004, 10:00 PM
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! (https://vborg.vbsupport.ru/showpost.php?p=468106&postcount=8)
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
<if condition="$post['editlink']">
Below, add: <form action="editpost.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="p" value="$post[postid]" />
<input type="hidden" name="do" value="deletepost" />
<input type="submit" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" id="rb_del_soft" tabindex="1" class="button" />
</form>
Open includes/functions_showthread.php and find: // hide users in Coventry from non-staff members
Above, add: $deletebutton = 1; // set to 1 to only hide the post, or 0 to permanently delete the post
Done! :D
Images you can use for the delete button
https://vborg.vbsupport.ru/external/2004/05/2.jpg
!!!cyr0n_k0r
01-25-2004, 02:30 AM
woohoo.! thanks.
Allan
01-25-2004, 08:06 AM
Thank You Gary :)
Boofo
01-25-2004, 08:52 AM
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. ;)
hoahongtim
01-25-2004, 12:09 PM
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?
Alone Wolf
01-25-2004, 02:31 PM
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?
Gary King
01-25-2004, 02:37 PM
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?
To change to an image, change <input type="submit" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" id="rb_del_soft" tabindex="1" class="button" /> to <input type="hidden" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" />
Then, add this below that:<input type="image" name="submit" src="image.jpg" />
Replace image.jpg with the path to your image.
Link14716
01-25-2004, 02:43 PM
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?
That's a whole 'nother hack.
very nice!
kinda like the Quick Delete Post hack for vB2
/me clicks Install
MGM out
Gary King
01-25-2004, 03:03 PM
very nice!
kinda like the Quick Delete Post hack for vB2
* MetalGearMaster clicks Install
MGM out
To be honest (and to let everyone know) I wasn't aware there was one for vB 2, so I didn't take ANY code from there ;) :rolleyes:
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
Gary King
01-25-2004, 03:14 PM
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
Nah I knew you weren't saying I did, but I was letting everyone else know (in general) that I didn't :p
Okiewan
01-26-2004, 03:57 AM
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?
Boofo
01-26-2004, 04:03 AM
Gary, are you going to fix the first post in the thread problem?
Zachery
01-26-2004, 05:00 AM
Gary, are you going to fix the first post in the thread problem?
another hack that shows how lazy everyone really is
gmarik
01-26-2004, 06:20 AM
Make it a .txt file, ok?!
deathemperor
01-26-2004, 07:24 AM
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.
Okiewan
01-26-2004, 11:33 AM
Convenience does not necessarily equate to laziness!
Zachery
01-26-2004, 11:53 AM
Convenience does not necessarily equate to laziness!
yes it does
Okiewan
01-26-2004, 11:59 AM
Hummm... Okay.
Gary King
01-26-2004, 12:41 PM
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?
Add the following above the new code in postbit template: <if condition="$bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 6">
and then </if> at the end of the newly added code in postbit template.
Done!
Gary King
01-26-2004, 12:49 PM
another hack that shows how lazy everyone really is
I thought it was fixed already, someone reported it was. Well, hmph I'll do it right now then :)
Gary King
01-26-2004, 12:50 PM
Make it a .txt file, ok?!
How come..? It should be simple enough to see just like this :)
Gary King
01-26-2004, 12:51 PM
I thought it was fixed already, someone reported it was. Well, hmph I'll do it right now then :)
Yeah looks fine to me I just tested, with $deletebutton as 1 and 0.
Okiewan
01-26-2004, 12:53 PM
Great! Thanks Gary.
thanks! any chanse for second modification (pop-up nitification window)?
Gary King
01-26-2004, 01:10 PM
thanks! any chanse for second modification (pop-up nitification window)?
How about adding a checkbox next to the button instead, so it's still all on one page? You have to check the checkbox and click on the button to delete?
fine it`s better, to protect from misstake, couse i made options to Physically Remove Message delete...
Thanks!
zajako
01-26-2004, 07:53 PM
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.
Instructions
Open up the postbit template and find
<if condition="$post['editlink']">
Below, add: <form action="editpost.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="p" value="$post[postid]" />
<input type="hidden" name="do" value="deletepost" />
<input type="submit" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" id="rb_del_soft" tabindex="1" class="button" />
</form>
Open includes/functions_showthread.php and find: // hide users in Coventry from non-staff members
Above, add: $deletebutton = 1; // set to 1 to only hide the post, or 0 to permanently delete the post
Done! :D
well done :)
Gary King
01-26-2004, 08:59 PM
well done :)
Thanks it means a lot from a programmer like you :D
don't forghet...that if you use old POSTBIT style you need to make modifications to postbit_legacy !
Add the following above the new code in postbit template: <if condition="$bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 6">
and then </if> at the end of the newly added code in postbit template.
Done!
it isn't working !
Boofo
02-14-2004, 07:34 PM
This hack doesn't even work right. Try deleting the first post in a thread and see what happens. Another half finished hack. ;)
Gary King
02-14-2004, 07:50 PM
This hack doesn't even work right. Try deleting the first post in a thread and see what happens. Another half finished hack. ;)
That's strange because as I said before, it works fine for me. What exactly doesn't work right?
Boofo
02-14-2004, 08:07 PM
Like I said earlier in the thread. When you try and delete the first post in a thread. ;)
Gary King
02-14-2004, 08:10 PM
Like I said earlier in the thread. When you try and delete the first post in a thread. ;)
And as I said too, it works fine :)
Boofo
02-14-2004, 08:29 PM
Not for the first post, it doesn't. It works fine for other posts but not the first post in a thread.
Gary King
02-14-2004, 08:30 PM
Not for the first post, it doesn't. It works fine for other posts but not the first post in a thread.
Okay well then I'll need confirmation from someone else as well then, because it works fine for me on an unhacked RC 3 :)
MischiefThought
02-23-2004, 02:40 PM
This doesnt work for RC 4?
MischiefThought
02-23-2004, 02:51 PM
Hmm.. I got mine working, but.. It removes the posts, and leave's the "manage" and "view post" options there. Any ideas?
Gary King
02-23-2004, 07:38 PM
Hmm.. I got mine working, but.. It removes the posts, and leave's the "manage" and "view post" options there. Any ideas?
Can I see a screenshot?
MischiefThought
02-23-2004, 08:52 PM
Here you go:
MischiefThought
02-26-2004, 10:26 AM
Any ideas, Gary W? It's been 3 days, :S (Dont mean to be rude).
Gary King
02-26-2004, 11:16 AM
Change $deletebutton = 1; to $deletebutton = 0; then all new deleted posts will disappear.
The way you have it right now is how vBulletin works, posts aren't usually permanently deleted (staff can still see the deleted posts, just in case they ever need to.)
MischiefThought
02-27-2004, 12:59 PM
$deletebutton = 0; is what i have it set to.
Gary King
02-27-2004, 07:03 PM
Yep that is correct.
MischiefThought
02-27-2004, 07:48 PM
Your not understanding what i'm saying...
I have the delete set to 0, and its not working.
MischiefThought
02-28-2004, 02:04 AM
Ok, does anyone have any ideas? I'm really gettin mad now, it's been over 3-4 days atleast.
Gary King
02-28-2004, 01:32 PM
Check the source code of the post and make sure that there is the following code when viewing a thread:<input type="submit" name="deletepost" value="remove" id="rb_del_soft" tabindex="1" class="button" />
Sebastian
03-01-2004, 10:45 PM
uhm.. is it possible to make this a delete link rather than a submit botton? looks tacky on postbit.
Gary King
03-01-2004, 11:05 PM
uhm.. is it possible to make this a delete link rather than a submit botton? looks tacky on postbit.
Replace the newly added code in template with
<a href="editpost.php?$session[sessionurl]do=deletepost&deletepost=<if condition="$deletebutton">delete<else />remove</if>&p=$post[postid]">delete</a>
Sebastian
03-02-2004, 01:29 AM
doesn't work... get a blank page on rc3 using link instead of button.
Gary King
03-02-2004, 08:42 PM
I'm pretty sure because you did not do it correctly, template modifications never display a blank page unless you remove everything.
Sebastian
03-03-2004, 12:03 AM
have you tested it? i get a blank page when i click the 'delete' link. as in the $_REQUEST does not exist in editpost.php.
Gary King
03-03-2004, 01:21 AM
Okay thanks for letting me know; read the Note: here: https://vborg.vbsupport.ru/showpost.php?p=467940&postcount=1
Wifey
03-15-2004, 10:30 PM
I've installed this and I'm not sure why it's not working. I don't see any text for the delete link so I'm not sure what I've done wrong. Any help?
Gary King
03-15-2004, 11:10 PM
I've installed this and I'm not sure why it's not working. I don't see any text for the delete link so I'm not sure what I've done wrong. Any help?
Did you add the phrases?
Wifey
03-15-2004, 11:19 PM
Did you add the phrases?
I didn't know I was supposed to add phrases actually - it doesn't say that initally and I'm new to this, I'm sorry :(
What phrases do I need to add?
Gary King
03-16-2004, 12:03 AM
I didn't know I was supposed to add phrases actually - it doesn't say that initally and I'm new to this, I'm sorry :(
What phrases do I need to add?
Nevermind phrases aren't required. Should work just fine for you because instructions are very simple.
Wifey
03-16-2004, 12:24 AM
I'm going to try uninstalling and reinstalling because I don't know why it's not working. I've followed the directions exactly as they're stated, and yes, the instructions are very simple. Hrm. I'll just keep my fingers crossed.
edit: Okay, I uninstalled and reinstalled and it's still not working. I guess I'll just take it out. Thanks for your help but I don't wanna waste your time because I'm sure you have better things to do! I have no idea why it's not working - I've installed another hack you listed and it worked perfectly. Who knows!
msimplay
03-26-2004, 07:02 PM
hmm this would be better if there was a pop up confirming delete yes/no
i would like the ability to delete with one button but hands can easily slip
so a delete popup would be good as an addon or an update to the hack itself
Slave
04-02-2004, 11:27 PM
I've had a play and created a "Quick Delete" button to use with this hack .. you can find it attached ..
:)
(no I'm not a PSD expert .. far from it .. so you might find it better to make one yourself :p)
Gary King
04-03-2004, 12:07 AM
Thanks, I'll add that to the first post :)
Slave
04-03-2004, 01:07 AM
nps .. :)
Sin City
04-06-2004, 08:44 AM
i did every step correctly, but i see no button for the quick delete... i saw someone mention postbit_legacy ... would i need to edit something there as well or what?
Scrub
04-06-2004, 10:21 AM
By looking at your forums, you seem to be using the vB2 layout postibt, right? If so, then you'll need to edit postbit_legacy to get it to show up. ;)
Sin City
04-07-2004, 06:14 AM
thanks Scrub... i got it now... sweet hack... thank you
on a side note... i have no problem using the Quick Delete to delete an entire thread...like Gary said... you must have missed something
trinitym
04-21-2004, 10:04 PM
Woo! Excellent hack for my lazy arse. ;) Perfect for non-permanent deletion anyway. I figure if I'm going to permanently kill something, I might as well do it the long way to make sure.
*clicks install*
<edit>Took out the pop-up fix for now, seems my butt also needs more caffiene.</edit>
Chris-FH
04-22-2004, 12:21 AM
The delete-button is also shown in the private messages.
Is there a way, only to show the button in threads?
C.
Chris-FH
04-26-2004, 06:07 PM
The delete-button is also shown in the private messages.
Is there a way, only to show the button in threads?
C.
Yes it is...
In your postbit- and postbit_legac-template find:
<form action="editpost.php" method="post">
(from the code above)
Above ad:
<if condition="THIS_SCRIPT == 'showthread'">
Find
</form>
(from the code above)
Underneath, you have to ad:
</if>
C.
I am trying out a few differint things with this hack. One question though. Is the URL used in VB3 to delete posts this?
editpost.php?s=&do=deletepost&p=xxxxx
Doesn't seem to work, although according to the values Gary's form uses this should work. What is the correct URL? I am working on incorporating a popup confirmation.
006, read a NOTE on first page.... but i think it should be way out ;)
can I add "reason" when deleting post, using this quick delete feature?
Jujimufu
05-14-2004, 02:25 AM
Don't understand why everybody is having so much trouble with this? I installed it in about 6 or 7 minutes and was laughing out loud after deleting a dozen posts in zero time. Check it out!
http://www.trickstutorials.com/temporary/antoine.gif
I even added a funny alt tag. Thanks a lot Gary! :devious:
Edit: I didn't read the whole thread at first, but thanks to Chris FH and Gary again for fixing the problem with it appearing in the private messaging postbit and the user groups visibility thing. NOW! This is a very slick hack. :rambo:
!!!cyr0n_k0r
05-15-2004, 09:10 AM
id still like to see an optional popup window asking if your sure you want to delete the thread.
id still like to see an optional popup window asking if your sure you want to delete the thread.
add a
onclick="return confirm('Are you sure you want to delete this post')"
in to the link code.
!!!cyr0n_k0r
05-15-2004, 06:49 PM
<form action="editpost.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="p" value="$post[postid]" />
<input type="hidden" name="do" value="deletepost" />
<input type="hidden" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" />
<input type="image" name="submit" src="$stylevar[imgdir_button]/delete.gif" align="middle" border="0" />
</form>
Here is my code for the delete button. Where in there should I add the onclick?
!!!cyr0n_k0r
05-16-2004, 04:15 AM
nevermind, figured it out.
ImportPassion
05-16-2004, 07:06 PM
Not for the first post, it doesn't. It works fine for other posts but not the first post in a thread.
works exactly as expected.
Wifey
05-17-2004, 02:38 PM
* Wifey clicks install
Thank you so much, it works perfectly :)
RichieBoy67
05-18-2004, 12:50 AM
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! (https://vborg.vbsupport.ru/showpost.php?p=468106&postcount=8)
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
<if condition="$post['editlink']">
Below, add: <form action="editpost.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="p" value="$post[postid]" />
<input type="hidden" name="do" value="deletepost" />
<input type="submit" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" id="rb_del_soft" tabindex="1" class="button" />
</form>
Open includes/functions_showthread.php and find: // hide users in Coventry from non-staff members
Above, add: $deletebutton = 1; // set to 1 to only hide the post, or 0 to permanently delete the post
Done! :D
Images you can use for the delete button
https://vborg.vbsupport.ru/attachment.php?attachmentid=17837&stc=1
Awesome! Thanks!!
Keyser S?ze
05-22-2004, 07:30 PM
a suggestion, if ur going to make it with having a 1 for allowing it not to be deleted completely but hidden, why not make it "if 1 then" have a popup box to fill in any comments, i like my mods to put in why they are deleteing something
idea, would also prevent any accidental deleteing
if u want it to ask for confirmation before u delete do this,
Open up the postbit template and find
PHP Code:
<if condition="$post['editlink']">
Below, add:
PHP Code:
<form action="editpost.php" method="post" onSubmit="return confirm('Are you sure you want to delete this post')">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="p" value="$post[postid]" />
<input type="hidden" name="do" value="deletepost" />
<input type="submit" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" id="rb_del_soft" tabindex="1" class="button" />
</form>
Keyser S?ze
05-22-2004, 07:56 PM
Add the following above the new code in postbit template: <if condition="$bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 6">
and then </if> at the end of the newly added code in postbit template.
Done!
when i added this now i cant see it either, i need for me and all my little mods to be able to use quick delete, any help?
ImportPassion
05-22-2004, 09:04 PM
a suggestion, if ur going to make it with having a 1 for allowing it not to be deleted completely but hidden, why not make it "if 1 then" have a popup box to fill in any comments, i like my mods to put in why they are deleteing something
idea, would also prevent any accidental deleteing
defeats the purpose of a "quick delete"
Keyser S?ze
05-23-2004, 10:02 PM
when i added this now i cant see it either, i need for me and all my little mods to be able to use quick delete, any help?
anyone know how to fix this?
LeonHartHVA
05-30-2004, 05:36 AM
i delete a post in a thread (page 3), when deleting done, it turn back page 1. I want it turn back the page store this post. Who can help me? Thanks much
a suggestion, if ur going to make it with having a 1 for allowing it not to be deleted completely but hidden, why not make it "if 1 then" have a popup box to fill in any comments, i like my mods to put in why they are deleteing somethingheheh, to make this "quick delete" more "complicated", I give the deletion an extra step, so you will be asked for reason:
add this where you want to have your delete icon located:
<span id="quickdelete_$post[postid]">
<img src="$stylevar[imgdir_button]/delete.gif" alt="Quick Delete" border="0" />
<script type="text/javascript"> vbmenu_register("quickdelete_$post[postid]", true); </script>
</span>
<div class="vbmenu_popup" id="quickdelete_$post[postid]_menu" style="display:none">
<form enctype="multipart/form-data" name="vbulletinform" style="display:inline;" action="editpost.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="deletepost" />
<input type="hidden" name="p" value="$post[postid]" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
$vbphrase[delete_this_message]
</td>
</tr>
<tbody id="collapseobj_editpost_delete" style="$vbcollapse[collapseobj_editpost_delete]">
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">
<div class="fieldset">
<div>$vbphrase[delete_message_check_appropriate_option]</div>
<if condition="$show['firstpostnote']">
<div>$vbphrase[deleting_message_deletion_of_thread]</div>
</if>
</div>
<fieldset class="fieldset">
<legend>$vbphrase[delete_options]</legend>
<div style="padding:$stylevar[formspacer]px">
<div>
<label for="rb_del_leave"><input type="radio" name="deletepost" value="" id="rb_del_leave" tabindex="1" checked="checked" />$vbphrase[do_not_delete_message]</label>
</div>
<div>
<label for="rb_del_soft"><input type="radio" name="deletepost" value="delete" id="rb_del_soft" tabindex="1" />$vbphrase[delete_message]</label>
<if condition="$show['physicaldeleteoption'] AND $show['keepattachmentsoption']">(<label for="cb_keepattachments"><input type="checkbox" name="keepattachments" value="1" id="cb_keepattachments" tabindex="1" />$vbphrase[keep_attachments]</label>)</if>
</div>
</div>
</fieldset>
<div class="smallfont">
<div>$vbphrase[reason_for_deletion]:</div>
<input type="text" class="bginput" name="reason" size="50" tabindex="1" title="$vbphrase[optional]" />
</div>
</div>
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" value="$vbphrase[delete_this_message]" tabindex="1" accesskey="s"/>
</div>
</td>
</tr>
</tbody>
</table>
</form>
</div>
I would put is AFTER
<a href="$post[editlink]" onclick="return confirm_edit()"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
in postbit template.
credit goes to EvilLS1 for his Quick Edit (https://vborg.vbsupport.ru/showthread.php?t=59629) hack!
PhoenixBB
06-10-2004, 12:54 AM
How can I get it so that the button only shows up for those with permission to delete (on my forum admin/super mods and mods only in their own forum)? Members can't delete so I don't want them seeing this button, and it's also currently showing for unregistered posts.
Will this clash will the 'quick edit' hack?
How can I get it so that the button only shows up for those with permission to delete (on my forum admin/super mods and mods only in their own forum)? Members can't delete so I don't want them seeing this button, and it's also currently showing for unregistered posts.
Will this clash will the 'quick edit' hack?
I think if you put it into the right place, then the button ONLY display together with "edit" one, and the Edit button only shows up for those who can edit.
note. The code should be added ABOVE the </if> to close the checking for those who can edit.
PhoenixBB
06-10-2004, 08:03 AM
I think if you put it into the right place, then the button ONLY display together with "edit" one, and the Edit button only shows up for those who can edit.
note. The code should be added ABOVE the </if> to close the checking for those who can edit.
But this isn't a button for editing, it's for deleting. My members can edit, they cannot delete. If they click the normal edit button they don't get the delete option, but they have the 'quick delete' button there. Sure they'll get no permission when they click it, but I figure it'd be better to hide it.
The code is in the right place.
I think I'll probably be able to try and figure it out from the code on the quick edit hack.
But this isn't a button for editing, it's for deleting. My members can edit, they cannot delete. If they click the normal edit button they don't get the delete option, but they have the 'quick delete' button there. Sure they'll get no permission when they click it, but I figure it'd be better to hide it.
The code is in the right place.
I think I'll probably be able to try and figure it out from the code on the quick edit hack.
:) sorry, I let my members to delete their posts, so I didnt think of this.
There're two way you can do it:
- Try to figure out how to get the value of $show['deletepostoption'] then you <if condition="$show['deletepostoption']">
- or use condition where usergroup=6 (admin) or user is moderator something around the delete part.
PhoenixBB
06-11-2004, 12:40 PM
:) sorry, I let my members to delete their posts, so I didnt think of this.
There're two way you can do it:
- Try to figure out how to get the value of $show['deletepostoption'] then you <if condition="$show['deletepostoption']">
- or use condition where usergroup=6 (admin) or user is moderator something around the delete part.
Thanks, I'll give it a shot. :)
SIINSI
08-08-2004, 07:27 PM
I just noticed that too.... I don't allow users to delete. How can I get rid of the images to those withut permissions?
TIA
Miguel
AnhTuanCool
08-09-2004, 01:34 AM
Small problem, the browser doesn't redirect to the previous page that contain the deleted post. That would be hard for some hundred pages thread. :(
Any idea?
Blam Forumz
08-18-2004, 08:59 PM
/me installs & clicks teh button
the wiz
09-28-2004, 12:46 PM
Installed. :)
cnczone
01-24-2005, 02:29 PM
great hack
Not sure why but no matter what, its a soft delete... even if I change the line in the functions_showthreads 1 or 0 jut does soft delete.
am I really the only one who noticed this? or did I just miss an entire step?
interfx
02-12-2005, 09:11 PM
Does this work on 3.0.6?
Installed it, works great...
calvinnguyen
02-24-2005, 01:22 AM
this is great! thanks Gary
grief
06-04-2005, 02:50 AM
To change to an image, change <input type="submit" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" id="rb_del_soft" tabindex="1" class="button" /> to <input type="hidden" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" />
Then, add this below that:<input type="image" name="submit" src="image.jpg" />
Replace image.jpg with the path to your image.
might wanna add align="middle" border="0" to that line aswell so the button lines up with the edit and quote buttons
* grief clicks install
stan111
09-18-2005, 01:00 AM
i got it working perfectly but somehow when i want it to show the picture i got the X because i dont know wat folder on the Root i should put the image in
thanks in advance
btw: if you use v3.0.7, u should edit your postbit legacy also in order to get it work
thanks a lot
Alphawolf83
11-16-2005, 10:25 AM
*clicks install*
Thanks for this hack. A useful addition would be to give access to this button to only those moderators who can moderate in the forum. Otherwise the button would have been shown in all forums so that moderators can delete in every forum => they would have permissions like super-moderators.
To do this I added:
<if condition="can_moderate($forum['forumid'])">
...
</if>
Sorry for the terrible english :-)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.