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 11053 Mar 11, 2004, 12:39 PM
Thread Re: [Ishmael] Advice on adding functionality
Ishmael 10823 Mar 17, 2004, 7:17 AM
Thread Re: [Ishmael] Advice on adding functionality
Jagerman 10816 Mar 17, 2004, 11:03 AM
Thread Re: [Jagerman] Advice on adding functionality
Ishmael 10807 Mar 17, 2004, 12:10 PM
Thread Re: [Ishmael] Advice on adding functionality
Jagerman 10829 Mar 17, 2004, 2:32 PM
Thread Re: [Jagerman] Advice on adding functionality
hoefti 10774 Mar 23, 2004, 9:38 AM
Thread Re: [hoefti] Advice on adding functionality
Jagerman 10742 Mar 25, 2004, 10:17 AM
Thread Re: [Jagerman] Advice on adding functionality
Ishmael 10735 Mar 25, 2004, 3:52 PM
Thread Re: [Ishmael] Advice on adding functionality
Ishmael 10735 Mar 26, 2004, 4:27 PM
Post Re: [Ishmael] Advice on adding functionality
Ishmael 10671 Mar 29, 2004, 6:08 AM
Post Re: [Ishmael] Advice on adding functionality
Jagerman 10686 Mar 30, 2004, 9:07 AM
Thread Re: [Ishmael] Advice on adding functionality
davidnavigator 10378 May 2, 2004, 4:21 AM
Post Re: [davidnavigator] Advice on adding functionality
davidnavigator 10262 Jun 2, 2004, 12:49 AM
Thread Re: [Jagerman] Advice on adding functionality
sangiro 10651 Mar 30, 2004, 2:57 AM
Thread Re: [sangiro] Advice on adding functionality
Jagerman 10647 Mar 30, 2004, 9:24 AM
Post Re: [Jagerman] Advice on adding functionality
hoefti 10362 May 1, 2004, 7:32 PM