Gossamer Forum
Quote Reply
Hook for everything?
Hi guys. Just wondering if anyone knows the plugin hook, which will let me check to see if $IN->param('do') is something that my plugin needs to handle? (i.e after the user checks have been run, but before it outputs anything to the user). Otherwise, I guess I'll have to write a seperate .cgi script; which I'm trying to avoid really Unsure

I had a look in the documentation, but unlike LinksSQL, the plugin wizard doesn't have a list of the valid hooks :(

TIA

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Hook for everything? In reply to
'do_func' is most likely what you're looking for, which is fired immediately before the do_action_name hook; you can alternatively define your own do= actions by setting the appropriate value in $CFG->{functions}.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Hook for everything? In reply to
Thanks Jason. I'll have a play with that tomorrow :)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Jagerman] Hook for everything? In reply to
Thanks for the reply Jason. Doesn't seem to be working for me though :/

Code:
$CFG->{functions}->{pmmanager} = {
'action' => 'pmmanager',
'customizable' => {
'description' => '1',
'page' => '1'
},
'description' => 'PM Manager',
function => 'Plugins::GForum::PMManager::main',
};

$CFG->save();

... and then when I call;

gforum.cgi?do=pmmanager

...or even;

gforum.cgi?do=pmmanager&action=pmmanager

.. gives me;

Quote:
No such action 'pmmanager'

TIA for your reply.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Hook for everything? In reply to
You want 'action' to be either 'page' or 'function' (I'm guessing 'function' in this case) - 'page' means 'look at the 'page' value, and parse it as a template', 'function' means 'run the function in 'function''.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Hook for everything? In reply to
Ah, sorry about that. Dumb moment Pirate

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates