Hi,
Yes, using a plugin is definitely recommended over directly editing the modules. You'll find a Wizard in the admin panel Plugin menu that can create a plugin "shell" code for you. As for overriding the various authentication subroutines, this is quite easy - the authentication plugin "hooks" are all named the same as the subroutine. So, for example, if you wanted to add to or replace the "auth_valid_user" code, you would set up a "auth_valid_user" plugin hook. If you set up a PRE hook, your plugin will be called before auth_valid_user, and a post hook would be called after. The authentication functions themselves generally have some documentation on what is passed into them, what they do, and what they return in GForum/Authenticate.pm above each subroutine.
Try creating a plugin through the Wizard - the generated code has some comments that may also be helpful.
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Yes, using a plugin is definitely recommended over directly editing the modules. You'll find a Wizard in the admin panel Plugin menu that can create a plugin "shell" code for you. As for overriding the various authentication subroutines, this is quite easy - the authentication plugin "hooks" are all named the same as the subroutine. So, for example, if you wanted to add to or replace the "auth_valid_user" code, you would set up a "auth_valid_user" plugin hook. If you set up a PRE hook, your plugin will be called before auth_valid_user, and a post hook would be called after. The authentication functions themselves generally have some documentation on what is passed into them, what they do, and what they return in GForum/Authenticate.pm above each subroutine.
Try creating a plugin through the Wizard - the generated code has some comments that may also be helpful.
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com