![]() |
Add Option to Moderation Tools
How can I add an option to the Moderation Tools dropdown portion of Thread Tools?
|
You would have to add your option to the SHOWTHREAD template, by editing the template or by doing a replacement in a plugin. Then you'd need a plugin using hook location threadmanage_action_switch to handle when it's selected (it's probably best to look at postings.php and search for that hook name to see how to handle it).
|
What is it you are looking to add to it? This mod add quite a bit, https://vborg.vbsupport.ru/showthread.php?t=302780
|
Quote:
Quote:
|
Quote:
Fortunately I happened to know of a plugin that adds to that menu. The code (using hook showthread_start) looks something like this: Code:
if(can_moderate($threadinfo['forumid'])) You'd want to replace all occurances of "my_option" with something else of course, and also the text "My Option" (and if you want to use a phrase for that, use something like $vbphrase[my_option]) |
Quote:
|
It could be just you, or the code, what is the exact code you are trying to use?
|
Quote:
|
Nice catch Kevin. :)
|
Quote:
|
All times are GMT. The time now is 06:10 PM. |
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:
|