MyBB Community Forums

Full Version: Hooks 1.5
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hooks plugin for MyBB 1.6
-------------------------

Manage MyBB plugin hooks.

This plugin adds a Hooks tab to the plugins page where you can create/delete, activate/deactivate, import/export custom hooks. This is useful in particular for small changes you want to make without creating a whole plugin file for it.

This is the counterpart for the Patches plugin. Where Patches lets you modify existing code, Hooks lets you add new code which will be executed through MyBB's hook system.

Installation instructions
-------------------------

1) This plugin depends on PluginLibrary. Please download it first.

http://mods.mybb.com/view/pluginlibrary
https://github.com/frostschutz/PluginLibrary

2) Upload inc/plugins/hooks.php and inc/plugins/hooks/plugin.php
and inc/languages/english/admin/hooks.lang.php

If you are using a language other than English, you will also
have to place a copy of hooks.lang.php in the folders of the
other languages. Language packs may be available on the mods
site.

3) Make sure your cache/ directory is writable. This plugin
creates a file called cache/hooks-plugin-data.php which
contains the created / active plugin hooks.

4) Activate the plugin

Usage
-----

On the plugins page, there will be a new tab called 'Hooks',
which will let you create and manage hooks.

Uninstallation instructions
---------------------------

You can uninstall the plugin any time, however when you do so,
you will lose all information about your hooks.

Download: http://mods.mybb.com/view/hooks
https://github.com/frostschutz/Hooks
Hi man
you can write 1 example use Hook ?

thanks man
Brilliant.
Very great, now possibility of hooks can be expanded.
Love it. Thanks frostschutz.
(2011-12-15, 07:04 AM)nhatblue Wrote: [ -> ]you can write 1 example use Hook ?

There already is an example in the plugins package (import the file hooks-hello.xml).
I saw this on github earlier (before this thread) and was like "?". Very cool plugin frostschutz, thanks for sharing it with us once again!

Quote:There already is an example in the plugins package (import the file hooks-hello.xml).

yes, I've seen hooks-hello.xml
I created 2 hooks

thanks man very much !!!
Hooks 1.1 adds a new feature. The hooks can now be exported as a MyBB Plugin PHP file.

This way you can also use this plugin as a plugin template generator of sorts.
(2011-12-22, 12:02 AM)frostschutz Wrote: [ -> ]Hooks 1.1 adds a new feature. The hooks can now be exported as a MyBB Plugin PHP file.

This way you can also use this plugin as a plugin template generator of sorts.

Similar to XF developer Tools Smile

Pages: 1 2