Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 post.asp: Allowed Members & Moderators lists
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 12 April 2005 :  07:55:16  Show Profile
Just flicking through post.asp and I notice that getMemberName() is used when popultaing the select inputs for a forum's allowed members and moderators. Surely this could be cleaned up a bit by selecting M_NAME when selecting the MEMBER_ID from the relevant table? I.E., find the following on line 857:
strSql = "SELECT MEMBER_ID "
strSql = strSql & " FROM " & strTablePrefix & "MODERATOR "
strSql = strSql & " WHERE FORUM_ID = " & strRqForumID
And modify it to:
strSql = "SELECT M1.MEMBER_ID, M2.M_NAME "
strSql = strSql & " FROM " & strTablePrefix & "MODERATOR M1, " & strMembersTablePrefix &" MEMBERS M2 "
strSql = strSql & " WHERE M1.FORUM_ID = " & strRqForumID & " AND M2.MEMBER_ID=M1.MEMBER_ID"
strSql = strSql & " ORDER BY M2.M_NAME ASC"
Do something similar with the SELECT for the allowed members list and M_NAME can now be read in from the arrays created using getRows. Saves a couple of SQL queries.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 12 April 2005 :  11:39:32  Show Profile
Sounds good to me. And I hope you actually tested and tried it this time?

Support Snitz Forums
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 12 April 2005 :  12:58:37  Show Profile
lol! Ay, I've implemented it on the allowed members list for members photographs in the galleries of Woo.ie where it's been running happily for just over a week now.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07