My New Hooks: Will This Work?
Firefox Wins Offline
Member
***
Posts: 164
Joined: Mar 2008
Post: #1
My New Hooks: Will This Work?
Hi, I'll test this myself, just looking for some idea if it will work as expected.
On a 'custom' page which includes global.php:
i.e.

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

define('IN_MYBB', 1);
require_once './global.php';

// comments here....
// code here....

$plugins->run_hooks("thispage_mynewhook);

// more code here....

?>

...now will this 'new hook' be available to a MyBB plugin?
Is it really that easy, or do I need to include other file(s), and / or...
...how are new MyBB hooks created?

Thank you very much

11-17-2010 05:49 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
My New Hooks: Will This Work? - Firefox Wins - 11-17-2010 05:49 PM
RE: My New Hooks: Will This Work? - Imran - 11-18-2010, 03:24 PM
RE: My New Hooks: Will This Work? - Imran - 11-19-2010, 01:52 AM

 Standard Tools
Forum Jump: