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 MOD-Group
 MOD Add-On Forum (W/O Code)
 Hiding Members List - Private Forums
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

ssneumann
Starting Member

1 Posts

Posted - 06 February 2007 :  21:54:37  Show Profile  Reply with Quote
I have used these forums many times since launching one of my forums a few years ago and happy to say I have never had to register and ask a question... until now.

I have searched for a resolution for quite some time and get results but not for exactly what I am trying to accomplish. I hope someone can help me.

I operate a forum/message board as a feature on one of my community portals. I have several groups or councils that I have set up private forum areas reserved just for them. The problem is that these groups would like to use their real names as their usernames, ie. JohnDoe.

To them, this is great because it's like wearing a name tag at a conference. Of course, I have suggested they not do this, but am determined to find them a solution.

What they don't want is obvious - their usernames showing up in the member list and being visible to any registered member. They would like them to only be visible from inside their own private forum.

I know that it can be done by ranking level if I make them all moderators. I also know I can completely remove access to the member list, but don't want to do that either.

Sorry if this sounds stupid, but I can't seem to figure out the best way to do this. Any ideas?

<moved from="Help: General / Current Version (v3.4.xx)" by="Shaggy" /><

Edited by - Shaggy on 07 February 2007 04:16:21

AnonJr
Moderator

United States
5768 Posts

Posted - 07 February 2007 :  09:05:46  Show Profile  Visit AnonJr's Homepage  Reply with Quote
To restrict the members list to just admins, I did this:
Note, I commented out the original function and added the part in red. If you checked for an mLev >= 3 it would allow moderators to see the member list too.

'if strDBNTUserName = "" then
'	Err_Msg = "<li>You must be logged in to view the Members List</li>"
'	Response.Write "<table width=""100%"" border=""0"">" & _
'	"<tr>" & _
'	"<td>" & _
'	"<a href=""" & strHomeURL & """>T & D Home</a>  »" & _
'	"  Member Information<hr width=""100%"" color=""#C0C0C0""></td>" & _
'	"</tr>" & _
'	"</table>" & _
'	"<p class=""hfs hlfc c"">There Was A Problem!</p>" & _
'	"<p class=""hlfc c"">You must be logged in to view this page</p>"& _
'	"<p class=""c""><a href=""JavaScript:history.go(-1)"">Back to Forum</a></p>" & _
'	"<br />"
'	Call WriteFooter
'	Response.End
'end if

If (mlev <> 4) Then
	Response.Redirect("default.asp")
End If


An alternate option would be to add the UserGroups MOD and restrict the members page to Admins, Mods, and a specific UserGroup. Its more coding in the long run, but you won't have to make people Mods who might not otherwise be granted those privs. I posted some code a couple weeks back for using the UserGroups MOD in a similar maner.<
Go to Top of Page

campinmom03
Junior Member

USA
190 Posts

Posted - 30 January 2008 :  09:42:26  Show Profile  Reply with Quote
AnonJr hello.

This is something I would like to implement. However, I think I might of missed something. The code is to be added in members.asp or pop_profile.asp?

Wanted to ask so I don't create a mess.

Thanks in advance.<

Have a great day!
Terry
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 30 January 2008 :  10:01:04  Show Profile  Visit AnonJr's Homepage  Reply with Quote
It was added to members.asp since the original request was to make the members list visible to just admins.<
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 30 January 2008 :  10:31:02  Show Profile  Visit JJenson's Homepage  Reply with Quote
Just a thought here Anon but I might be off but I think they want the members list to show everyone on the bored for everyone but this specific group. So wouldn't they want to create a usergroup and in members.asp make it so that usergroup doesn't show up?<
Go to Top of Page

campinmom03
Junior Member

USA
190 Posts

Posted - 30 January 2008 :  10:56:04  Show Profile  Reply with Quote
Ok, I haven't had much coffee today, so please bear with me.

Actually, I would like profiles to be viewed by anyone. Its just their personal info upon registration that I want private. (Name and Surname)?

Anyway to do this without adding usergroup mod as JJenson is suggesting?

Thank you. (Running for a cup of coffee) <

Have a great day!
Terry
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 30 January 2008 :  11:13:26  Show Profile  Visit JJenson's Homepage  Reply with Quote
You could probably just do a mlev check on any areas that you don't want anyone that isn't a moderator or Admin depending on how you want to make that see it.<
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 30 January 2008 :  11:17:56  Show Profile  Visit JJenson's Homepage  Reply with Quote
Not sure if this would work cause I can't test right now but maybe something like this?

Find these lines in pop_profile.asp

if strFullName = "1" and (Trim(rs("M_FIRSTNAME")) <> "" or Trim(rs("M_LASTNAME")) <> "" ) then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" nowrap valign=""top""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Real Name: </font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & ChkString(rs("M_FIRSTNAME"), "display") & " " & ChkString(rs("M_LASTNAME"), "display") & "</font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if


and and insert something like this

if mlev=3 then
if strFullName = "1" and (Trim(rs("M_FIRSTNAME")) <> "" or Trim(rs("M_LASTNAME")) <> "" ) then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" nowrap valign=""top""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Real Name: </font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & ChkString(rs("M_FIRSTNAME"), "display") & " " & ChkString(rs("M_LASTNAME"), "display") & "</font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
end if


* edit to change some code<

Edited by - JJenson on 30 January 2008 11:24:59
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 30 January 2008 :  11:20:46  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Given that its an old topic, and the OP never clarified what they wanted... I was assuming that the solution presented was acceptable and the only question was where to put it. <
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 30 January 2008 :  11:24:43  Show Profile  Visit JJenson's Homepage  Reply with Quote
I didn't even notice the date on it
Just read and thought I would put my 2 cents in. Now I look at the date I look a little dumb <
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 30 January 2008 :  11:54:02  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Well, campinmom03 did the right thing and found close to what he wanted. I just assumed that barring any other points of clarification, he just needed to know where to put the code.

Since it seems he wants something a little different, I think you're on the right track. Its been a while since I played with the member details on pop_profile or members.asp.<
Go to Top of Page

campinmom03
Junior Member

USA
190 Posts

Posted - 30 January 2008 :  13:27:00  Show Profile  Reply with Quote
JJenson, don't feel that way. It was my fault for using this old topic to reply.. I used search and this topic was about as close as I could get to find the info I am looking for.

If anyone can help me make a members Name and Surname private when any given member is viewing their profile I would appreciate it.

Although I am requiring members to submit that information upon registration, (without the additional code), and for members that do submit it, (which is required to be approved) I want to help protect their right to privacy.

Thank you in advance. <

Have a great day!
Terry
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 30 January 2008 :  15:25:59  Show Profile  Visit JJenson's Homepage  Reply with Quote
Terry did you try adding the mlev code above?<
Go to Top of Page

campinmom03
Junior Member

USA
190 Posts

Posted - 30 January 2008 :  15:36:21  Show Profile  Reply with Quote
JJenson, I just got in and have to run back out again. I have not tried it as of yet. Which file are you proposing that I try the code with? (pop_profile.asp or members.asp) Let me know and I'll test it when I get back in.

Thanks a bunch JJ. I sure appreciate it.<

Have a great day!
Terry
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 30 January 2008 :  15:39:31  Show Profile  Visit JJenson's Homepage  Reply with Quote
pop_profile.asp<
Go to Top of Page

campinmom03
Junior Member

USA
190 Posts

Posted - 30 January 2008 :  16:40:12  Show Profile  Reply with Quote
Ooops sorry. I didn't see that just above the code box.

I told you I hadn't had much coffee today. That sometimes happens. I end up overlooking the obvious even when its right in my face!

Anyway, now that I see that I'll try it right after dinner.

Thanks again. <

Have a great day!
Terry
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07