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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Requiring, and displaying, first and last names
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Soar
Junior Member

USA
197 Posts

Posted - 06 June 2005 :  14:54:35  Show Profile  Visit Soar's Homepage
This is kind of interesting - any thoughts or suggestions would be appreciated.

I've created a test forum for a high school. Given that everyone knows everyone else by his or her "real" name, I wanted to include each person's "real" name under his or her username in their posts. To do that, I used the suggestions in these threads:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=54470

http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=33928

The first thread describes making fields mandatory in registration; the second discusses displaying the names. The suggestions in all four were followed with two exceptions regarding the second topic - in that one, I placed the "call" to the "real" name so that the "real" name comes immediately under the username.

There are currently three users - Host, FG1 and FG2. Host has no "real" name - that's the super admin. FG1 has a "real" name of Frank GoBell. FG2 has a "real" name of Bob Smith. The password for FG1 is test1; the password for FG2 is test2.

Here is the problem. When I create a thread, the name for the logged in user appears as it should. But when I log out and log in as the other user and post, the "real" name of the first user - the one that started the thread - appears under the other user's username. For an example, see http://wilsgo.com/hodja/topic.asp?TOPIC_ID=3. The first two posts, by FG1, correctly show the user's "real" name to be "John Doe". However, the third post, by Host, and the fourth post, by FG2, also show "John Doe" as the users' "real" names - they should be blank and "Bob Smith", respectively.

Likewise, if I log in as Host and post, the "real" name is blank (as it should be). Thereafter, if I log into the same thread as either FG1 or FG2, the "real" name for both is also blank.

To create this effect, I modified the files pop_profile.asp, register.asp, inc_profile.asp, and topic.asp. Text versions are located at:

http://wilsgo.com/hodja/pop_profile.txt
http://wilsgo.com/hodja/register.txt
http://wilsgo.com/hodja/inc_profile.txt
http://wilsgo.com/hodja/topic.txt

Finally, this is a vanilla install of the latest version of Snitz, running on the included Access database, running on a Windows 2000 server.

I'm baffled - this doesn't seem to be a cookies issue (although I haven't been able to test it on a second "client" computer). Again, if anyone can offer some thoughts, I'd be most appreciative.

Soar
Junior Member

USA
197 Posts

Posted - 07 June 2005 :  15:28:25  Show Profile  Visit Soar's Homepage
Update: If anyone tried to access the site or the files listed above in the last 12 hours or so, my apologies for them not being accessible. My test site sits on my home server, and I lost power due to a thunderstorm. If you want to take a look, everything is back up. Sorry for the inconvenience if your tried while it was down.
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 07 June 2005 :  18:11:52  Show Profile
Response.Write	"              <tr>" & vbNewLine & _
					"                <td bgcolor=""" & CColor & """ valign=""top"" width=""" & strTopicWidthLeft & """"
			if lcase(strTopicNoWrapLeft) = "1" then Response.Write(" nowrap")
			Response.Write	">" & vbNewLine & _
					"                <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b><span class=""spnMessageText"">" & profileLink(ChkString(Reply_MemberName,"display"),Reply_Author) & "</span></b></font><br />" & vbNewLine
			Response.Write	"				 <font color=""" & strForumFontColor & """ face=""" & srDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_FirstName & " " & Member_LastName & "</small></font><br />" & vbNewline
			if strShowRank = 1 or strShowRank = 3 then
				Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & ChkString(getMember_Level(Reply_MemberTitle, Reply_MemberLevel, Reply_MemberPosts),"display") & "</small></font><br />" & vbNewLine
			end if
			if strShowRank = 2 or strShowRank = 3 then
				Response.Write	"                " & getStar_Level(Reply_MemberLevel, Reply_MemberPosts) & "<br />" & vbNewLine
			end if


The red stuff needs to read:
<small>" & Reply_FirstName & " " & Reply_LastName & "</small>
Go to Top of Page

Soar
Junior Member

USA
197 Posts

Posted - 07 June 2005 :  22:44:39  Show Profile  Visit Soar's Homepage
Brilliant! Ranko, thank you. That did the trick. Very much appreciated!
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 08 June 2005 :  04:09:31  Show Profile
No problemo; don't forget to show off your forum when you are happy with it in the Show Off Your Forum forum.
Go to Top of Page

Soar
Junior Member

USA
197 Posts

Posted - 08 June 2005 :  10:06:58  Show Profile  Visit Soar's Homepage
Will do - still quite some work to go at this point.

By the way, would anyone be interested in this as a mod, uploaded to SnitzBitz? While I think it would be of limited use (such as what I intend - a high school site where the users know each other by name anyway), it might come in handy for those who are doing something similar. In addition, if one edits only topic.asp, showing the users' real names would occur only for those users who decide to provide that information.

Assuming I do that, a question on protocol. I think at least four individuals provided most of the code or helped in tweaking it (with Ranko being the most recent). Would it be considered in bad form to email each of those individuals through this board to inquire whether they would like to provide their identities for attribution?
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 08 June 2005 :  11:55:58  Show Profile
Well I think more MODs on Snitzbitz is always good.

Mailing thing is also, IMHO, a nice and a polite way to go.

And my name is Ranko, so my identity is provided.
Go to Top of Page

Soar
Junior Member

USA
197 Posts

Posted - 08 June 2005 :  13:15:33  Show Profile  Visit Soar's Homepage
quote:
Originally posted by Ranko

Well I think more MODs on Snitzbitz is always good.

Mailing thing is also, IMHO, a nice and a polite way to go.

And my name is Ranko, so my identity is provided.



Ah, and you can rest assured that your name is already in the readme! I'll give a shout to the others, and see if they have an objection. Thanks, once more.
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.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07