![]() |
[high]* Wifey clicks install
[/high] Thank you so much, it works perfectly :) |
Quote:
|
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> |
Quote:
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? |
Quote:
|
Quote:
anyone know how to fix this? |
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
|
Quote:
add this where you want to have your delete icon located: HTML Code:
<span id="quickdelete_$post[postid]"> I would put is AFTER HTML Code:
<a href="$post[editlink]" onclick="return confirm_edit()"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a> credit goes to EvilLS1 for his 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? |
Quote:
note. The code should be added ABOVE the </if> to close the checking for those who can edit. |
Quote:
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. |
Quote:
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. |
Quote:
|
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 |
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? |
/me installs & clicks teh button
|
Installed. :)
|
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? |
Does this work on 3.0.6?
Installed it, works great... |
this is great! thanks Gary
|
Quote:
[high]* grief clicks install[/high] |
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 |
*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: PHP Code:
|
All times are GMT. The time now is 07:41 AM. |
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:
|