MyBB Community Forums
MyBB Community Forums
>
Extensions
>
Plugins
>
Plugin Development
> Run plugin only against certain subforums?
Full Version:
Run plugin only against certain subforums?
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
DaCow
2013-12-18, 03:52 AM
I'm looking for a way to use the post hooks to modify user messages only against certain subforums. Is there a way to easily pull the subforum id that a message is being posted to?
Shade
2013-12-18, 12:41 PM
Depending on what hook you are pointing to, the fid (forum id) is always available but within different arrays or objects.
Omar G.
2013-12-22, 01:48 AM
Try with the hooks provided inside the
inc/datahandlers/post.php
file.
MyBB Community Forums
>
Extensions
>
Plugins
>
Plugin Development
> Run plugin only against certain subforums?