Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Re: [Ishmael] Advice on adding functionality

Quote Reply
Re: [Ishmael] Advice on adding functionality In reply to
You can get a list of moderators by calling:

<%GForum::Forum::moderators($forum_id)%>

You'll then get a template variable 'forum_num_moderators', which contains the number of moderators for the forum, and forum_moderators, which is a template loop variable that you can loop through to do things with the moderators.

However, since your case is a little more specific, you might want to call the function from a template global. The following isn't guaranteed to work, but should be a good place to start from:

(removed - see updated code in later reply)


Now in a template when the user has requested a moderator be notified, you want to add:

<%name_of_global($forum_id, $current_user_username, $post_id)%>

That should send an e-mail to each moderator, notifying them of the post.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com

Last edited by:

Jagerman: Mar 25, 2004, 10:22 AM
Subject Author Views Date
Thread Advice on adding functionality Ishmael 5684 Mar 11, 2004, 12:39 PM
Thread Re: [Ishmael] Advice on adding functionality
Ishmael 5548 Mar 17, 2004, 7:17 AM
Thread Re: [Ishmael] Advice on adding functionality
Jagerman 5545 Mar 17, 2004, 11:03 AM
Thread Re: [Jagerman] Advice on adding functionality
Ishmael 5525 Mar 17, 2004, 12:10 PM
Thread Re: [Ishmael] Advice on adding functionality
Jagerman 5542 Mar 17, 2004, 2:32 PM
Thread Re: [Jagerman] Advice on adding functionality
hoefti 5496 Mar 23, 2004, 9:38 AM
Thread Re: [hoefti] Advice on adding functionality
Jagerman 5466 Mar 25, 2004, 10:17 AM
Thread Re: [Jagerman] Advice on adding functionality
Ishmael 5460 Mar 25, 2004, 3:52 PM
Thread Re: [Ishmael] Advice on adding functionality
Ishmael 5434 Mar 26, 2004, 4:27 PM
Post Re: [Ishmael] Advice on adding functionality
Ishmael 5406 Mar 29, 2004, 6:08 AM
Post Re: [Ishmael] Advice on adding functionality
Jagerman 5401 Mar 30, 2004, 9:07 AM
Thread Re: [Ishmael] Advice on adding functionality
davidnavigator 5099 May 2, 2004, 4:21 AM
Post Re: [davidnavigator] Advice on adding functionality
davidnavigator 4992 Jun 2, 2004, 12:49 AM
Thread Re: [Jagerman] Advice on adding functionality
sangiro 5380 Mar 30, 2004, 2:57 AM
Thread Re: [sangiro] Advice on adding functionality
Jagerman 5386 Mar 30, 2004, 9:24 AM
Post Re: [Jagerman] Advice on adding functionality
hoefti 5085 May 1, 2004, 7:32 PM