Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Change delete button to custom tool
#1
Not Solved
The delete button on every post, I think it runs a form so I'd need to change the thing from deletepost to custom mod tool 2. How do I do this? I think it's just a template edit but I'm not sure. Basically it'll junk the post instead of delete it permanently. Which templates need editing and how for this?
#2
Not Solved
postbit_quickdelete template - replace entire code with your custom code !
#3
Not Solved
That didn't work, I dunno how to change this. Currently the template is:
<a href="editpost.php?pid={$post['pid']}" onclick="Thread.deletePost({$post['pid']}); return false;" style="display: none;" id="quick_delete_{$post['pid']}">{$lang->postbit_qdelete}</a>
<script type="text/javascript">
// <!--
$('quick_delete_{$post['pid']}').style.display = '';
// -->
</script>

Idk how to make that do a custom tool instead, for example (this won't work obviously but it's an example:
<a href="editpost.php?pid={$post['pid']}" onclick="Thread.2({$post['pid']}); return false;" style="display: none;" id="2_{$post['pid']}">{$lang->postbit_qdelete}</a>
<script type="text/javascript">
// <!--
$('customtool_2_{$post['pid']}').style.display = '';
// -->
</script>
#4
Not Solved
Still need this please.
#5
Not Solved
Still need help with this.
#6
Not Solved
As long as users are allowed to run the "delete" function it doesn't matter how you mask it, they will still be able to delete posts. If they try to..

The best option would be to disable the feature and add your button directly to postbit/_classic tempalte(s).

Or what about it plugin that does it for you...
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
#7
Not Solved
I made it so they can't run it using MyPermissions - I just don't know how to add the button for the custom tool replacing the delete button.
#8
Not Solved
Check out this http://community.mybb.com/thread-153725.html .
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
#9
Not Solved
(2014-08-16, 06:14 PM)Omar G. Wrote: Check out this http://community.mybb.com/thread-153725.html .

That didn't really work for postbit - the button looks really strange, out of place and messes up layout of postbit tools altogether.
#10
Not Solved
Style it?
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;


Forum Jump:


Users browsing this thread: 3 Guest(s)