PDA

View Full Version : Quick delete button in post bit


Jujimufu
11-14-2005, 03:36 PM
Awhile back there was this GREAT quick delete button for version 3.0.x

https://vborg.vbsupport.ru/showthread.php?t=60704

It seems like it all works for version 3.5.x , up until you have to modify the functions_showthread.php file in /includes

I searched around and it seems that file is now named class_postbit.php in /includes

The file is so much different than the original functions_showthread.php for the elder version, I'm reluctant to plug in the last bit of code for the old hack in the spot it recommends.

Has anybody had any experience with this older hack with the newer versions of vbulletin? :squareeyed:

akanevsky
11-14-2005, 06:06 PM
Why do you need that if there is quick edit which also includes a quick delete?

interfx
12-14-2005, 08:02 PM
Anyone get this wokring for VB3.5? The nice part was a simple click on a delete graphic... Very simple and fast...

Anyone get this working?

interfx
12-17-2005, 10:42 AM
Any ideas out there?

akanevsky
12-17-2005, 10:54 AM
Nobody answered my question in post #2.

interfx
12-17-2005, 11:01 AM
I was aware of the Quick Edit feature (it is turned on in my forums)

However, this is what it means

1. Click Edit Button
2. Click Button Physically Remove Message
3. Click Delete This Message

vs. the thread above, I have incorporated on another VB site, that was simply this process

1. Click on Delete Button (and it's gone)...

On my discussion forum, I moderate a lot, and this is much simpler than the quick edit process....

Is there a better way in VB3.5???
Thanks -
InterFX

Chris M
12-17-2005, 12:52 PM
You don't need the file edit...

Simply apply the template edit, and edit this part:
<input type="submit" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" id="rb_del_soft" tabindex="1" class="button" />
to
<input type="submit" name="deletepost" value="delete" id="rb_del_soft" tabindex="1" class="button" />
If you want to remove the post completely, just change "delete" to "remove" :)

Chris

interfx
12-17-2005, 02:24 PM
Sorry, but which template is this located in?

Chris M
12-17-2005, 02:44 PM
Click the link to the hack above and apply the template edit that the first post suggests...

Chris

interfx
12-17-2005, 03:02 PM
I tried but it is not working...

<if condition="$post['editlink']">

Now it puts up the button (Delete or Remove), but when I click on it, here's what it says...

"Invalid Action Specified"

Here's what I actuially edited...



<if condition="$post['editlink']">

<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="remove" id="rb_del_soft" tabindex="1" class="button" />

</form>

<a href="$post[editlink]"

akanevsky
12-17-2005, 03:12 PM
That's right, it won't work unless it's within the realm of the <form> tag.
However, the <form> tag will cause a line break, which is not wanted.

dartho
07-23-2007, 10:22 PM
Is there a way to do this now with 3.6.7?

I want to be able to add a link to every post for admins/mods which will soft delete a post when clicked.

I also want to be able to do the same with threads.

Both would ideally be a single click delete of the thread/post frolm a hyperlink as opposed to a button