Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Show List of Mods on Front Page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Show List of Mods on Front Page

 Post Reply Post Reply
Author
sparkweb View Drop Down
Newbie
Newbie


Joined: 09 February 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote sparkweb Quote  Post ReplyReply Direct Link To This Post Topic: Show List of Mods on Front Page
    Posted: 16 February 2008 at 8:19am
This was a nice feature in 7.x and after I upgraded I had many of my users request it back so I guess it's worth the DB hit. Hopefully this will save you a few minutes if you want to put this on your forum.
 
This places a list of the forum moderators below each forum on the front page.
 
Step 1: Add... "Dim strModeratorsList" to the declarations at the top of default.asp
 
Step 2: Add this code around line 650. I've made a lot of mods to my default.asp page so I couldn't tell you for sure where it goes. I put it in between " 'Display the number of people viewing in that forum" and " 'Display forum details".
 
Quote
'Get the List of Group Moderators for the Forum
strModeratorsList = ""
strSQL = "SELECT " & strDbTable & "Author.Author_ID, " & strDbTable & "Author.Username "
strSQL = strSQL & "FROM " & strDbTable & "Permissions, " & strDbTable & "Author "
strSQL = strSQL & "WHERE " & strDbTable & "Author.Author_ID = " & strDbTable & "Permissions.Author_ID AND " & strDbTable & "Permissions.Moderate = " & strDBTrue & " AND " & strDbTable & "Permissions.Forum_ID = " & intForumID & ";"
rsCommon.Open strSQL, adoCon
Do While Not rsCommon.eof
 If strModeratorsList = "" Then
  strModeratorsList = "<br /><span class=""smText"">Moderators:</span> "
 Else
  strModeratorsList = strModeratorsList & ", "
 End If
 strModeratorsList = strModeratorsList & "<a href=""member_profile.asp?PF=" & rsCommon("Author_ID") & """ class=""smLink"">" & rsCommon("Username") & "</a>"
 rsCommon.MoveNext
Loop
rsCommon.Close
 
Step 3: In the Forum Details section (again, roughly around line 675) change this line
 
Quote
Response.Write("<br />" & strForumDiscription & strSubForums & "</td>" & _
 
to be this:
 
Quote
Response.Write("<br />" & strForumDiscription & strSubForums & strModeratorsList & "</td>" & _
 
...and the coding is done.
 
Step 4: Login to the admin tool and manually set user permissions for each moderator you want to set up for each section. Even though they have permissions by their group, this tool looks for their individual member permissions for reference. Click member permissions, search for your user, check off "Forum Moderator", check off your affected forums, and you are good to go.
 
...and that'll do it!
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 05 July 2008 at 5:51pm
Great mod and works fine Thumbs%20Up
Back to Top
Putz22 View Drop Down
Moderator Group
Moderator Group


Joined: 06 May 2008
Location: United States
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote Putz22 Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2008 at 2:14am
This is a great Mod I also have it working on my forums too..
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.