The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
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" /><
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" /><
آخرین ویرایش توسط
نوشته شده در
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.
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.<
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.
Code:
'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 IfAn 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.<
نوشته شده در
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.<
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
نوشته شده در
It was added to members.asp since the original request was to make the members list visible to just admins.<
نوشته شده در
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?<
نوشته شده در
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)
<
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
نوشته شده در
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.<
نوشته شده در
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
and and insert something like this
* edit to change some code<
Find these lines in pop_profile.asp
Code:
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
Code:
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<
آخرین ویرایش توسط
نوشته شده در
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.
<
نوشته شده در
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
<
Just read and thought I would put my 2 cents in. Now I look at the date I look a little dumb
نوشته شده در
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.<
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.<
Email Member
Message Member
Post Moderation
بارگزاری فایل
If you're having problems uploading, try choosing a smaller image.
پیشنمایش مطلب
Send Topic
Loading...