Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Account not Activated
216 19 Nov 2026
#1

Hooks are the heart of MyBB plugins — [code=php]$plugins->add_hook('pre_output_page', 'my_func');[/code] is where everything starts.

Remember: _activate() should be reversible, _install() owns permanent structures.

xmlhttp.php is the cleanest way to add AJAX endpoints to MyBB.

Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
Reply
Messages In This Thread
Datahandlers vs raw queries in plugins - by QuietQuokka - 09-06-2026, 08:40 PM
[No subject] - by PatchPat - 09-06-2026, 08:48 PM
[No subject] - by VinylVera - 09-06-2026, 09:24 PM
[No subject] - by GamerGhoul - 09-06-2026, 10:25 PM
[No subject] - by RetroRex - 09-07-2026, 12:04 AM
[No subject] - by PixelatedPaul - 09-07-2026, 01:46 AM
[No subject] - by SpammySteve - 09-07-2026, 03:37 AM
[No subject] - by ZenZara - 09-07-2026, 05:12 AM
[No subject] - by RetroRex - 09-07-2026, 06:30 AM
[No subject] - by TurboTom - 09-07-2026, 08:19 AM
[No subject] - by LunarLily - 09-07-2026, 09:27 AM
[No subject] - by WidgetWill - 09-07-2026, 09:35 AM
[No subject] - by KernelKate - 09-07-2026, 10:36 AM
[No subject] - by DevDan - 09-07-2026, 11:47 AM
[No subject] - by CraftyCathy - 09-07-2026, 12:09 PM
[No subject] - by PatchPat - 09-07-2026, 12:43 PM
[No subject] - by LunarLily - 09-07-2026, 01:09 PM
[No subject] - by KernelKate - 09-07-2026, 01:48 PM
[No subject] - by CodeWizard - 09-07-2026, 02:56 PM
[No subject] - by EchoEzra - 09-07-2026, 03:09 PM
[No subject] - by PixelatedPaul - 09-07-2026, 03:33 PM
[No subject] - by NeonNia - 09-07-2026, 04:37 PM
[No subject] - by NeonNia - 09-07-2026, 04:52 PM
[No subject] - by VinylVera - 09-07-2026, 05:57 PM
[No subject] - by PixelatedPaul - 09-07-2026, 06:16 PM
[No subject] - by WidgetWill - 09-07-2026, 06:39 PM
[No subject] - by MovieMaven - 09-07-2026, 07:20 PM
[No subject] - by NeonNia - 09-07-2026, 07:30 PM
[No subject] - by PatchPat - 09-07-2026, 09:14 PM
[No subject] - by GamerGhoul - 09-07-2026, 11:08 PM
[No subject] - by VinylVera - 09-07-2026, 11:28 PM
[No subject] - by PixelatedPaul - 09-08-2026, 12:06 AM
[No subject] - by ServerSage - 09-08-2026, 12:36 AM
[No subject] - by ZenZara - 09-08-2026, 01:44 AM
[No subject] - by CraftyCathy - 09-08-2026, 01:59 AM
[No subject] - by KernelKate - 09-08-2026, 02:02 AM
[No subject] - by KernelKate - 09-08-2026, 03:41 AM
[No subject] - by CraftyCathy - 09-08-2026, 04:29 AM
[No subject] - by BinaryBen - 09-08-2026, 06:10 AM
[No subject] - by NimbleNora - 09-08-2026, 07:18 AM
[No subject] - by TurboTom - 09-08-2026, 08:11 AM
[No subject] - by DevDan - 09-08-2026, 08:38 AM

Users browsing this thread: 1 Guest(s)

Forum Jump: