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)
 How do I show more user info in posts?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mx5mike
Starting Member

16 Posts

Posted - 29 October 2003 :  11:09:38  Show Profile  Visit mx5mike's Homepage
Hi All

I have had people complaining they don't like it that people can be annonimous when posting topics. I would like to be able to show the following details when peolpe post on the forum

Username
Real Name (first & second)
E-mail address

I'd also like to make it manditory that the real name fields must be filled in when registering. Is this possible ? If so could someone point me in the right direction on how to do this please ?

Thanks In Advance Mike

Edited by - ruirib on 29 October 2003 11:12:13

dayve
Forum Moderator

USA
5820 Posts

Posted - 29 October 2003 :  14:28:44  Show Profile  Visit dayve's Homepage
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=47524&SearchTerms=mandatory,field

Go to Top of Page

mx5mike
Starting Member

16 Posts

Posted - 29 October 2003 :  14:37:44  Show Profile  Visit mx5mike's Homepage
Excellent. Thanks for that. Just need to find out how to display the other info in the posts now. Can you help on that one ?

Cheers Mike
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 29 October 2003 :  15:00:07  Show Profile
quote:
Originally posted by mx5mike

Excellent. Thanks for that. Just need to find out how to display the other info in the posts now. Can you help on that one ?

Cheers Mike



Add to topics
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=33928&SearchTerms=first+name

and another one for mandatory fields

http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=38624&SearchTerms=required

    _-/Cripto9t\-_
Go to Top of Page

mx5mike
Starting Member

16 Posts

Posted - 29 October 2003 :  15:23:58  Show Profile  Visit mx5mike's Homepage
Would I do something similar to display the e-mail address also ?


Cheers Mike
Go to Top of Page

mx5mike
Starting Member

16 Posts

Posted - 29 October 2003 :  20:11:28  Show Profile  Visit mx5mike's Homepage
I've followed the instructions on how to mod the topic.asp file and have managed to nearly get to what I want now so thanks for your help so far.

It now lists
Country
FirstName & SurName
City
And number of Posts

I would like to have the Country field After City and before Number Of Posts and also add the poster's e-mail address before number of posts but I don't know how to do this ?

So it would read

FirstName & SurName
City
Country
E-Mail Address
Number Of Posts

The file as it is so far is http://www.mx5oc.co.uk/mike%20topic.asp.txt

Any help you could offer would be greatly appreciated

Thanks Mike

Edited by - mx5mike on 29 October 2003 20:16:24
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 30 October 2003 :  08:02:33  Show Profile
Back up your file before you do this because I haven't tested it.

Find this code



                        Response.Write	"		<font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & ReplyFirstName & " " & ReplyLastName & "</small></font><br />" & vbNewLine & _
					"		<font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & ReplyMemberCity & "</small></font><br />" & vbNewLine & _
		 	Response.Write	"                </p>" & vbNewLine & _
					"                <p>" & vbNewLine
			if strCountry = "1" and trim(Reply_MemberCountry) <> "" then
				Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Reply_MemberCountry & "</small></font><br />" & vbNewLine
			end if
		 	Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Reply_MemberPosts & " Posts</small></font></p></td>" & vbNewLine & _



Replace with this



                        Response.Write	"		<p><font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & ReplyFirstName & " " & ReplyLastName & "</small></font><br />" & vbNewLine & _
		                        "		<font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & ReplyMemberCity & "</small></font><br />" & vbNewLine
			if strCountry = "1" and trim(Reply_MemberCountry) <> "" then
                               Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Reply_MemberCountry & "</small></font><br />" & vbNewLine
			end if
                        if mLev > 2 or Reply_MemberReceiveEmail = "1" then
			  if (mlev <> 0) or (mlev = 0 and  strLogonForMail <> "1") then
                               Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small><a href=""JavaScript:openWindow('pop_mail.asp?id=" & Reply_MemberID & "')"">E-mail " & ReplyFirstName & "</a></small></font><br />" & vbNewLine
			  end if
			end if
                        Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Reply_MemberPosts & " Posts</small></font></p></td>" & vbNewLine & _




Find this code



        Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_FirstName & " " & Member_LastName & "</small></font><br />" & vbNewLine & _
			"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_City & "</small></font></p><br />" & vbNewLine & _
	Response.Write	"                </p>" & vbNewLine & _
			"                <p>" & vbNewLine
	if strCountry = "1" and trim(Member_Country) <> "" then
		Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_Country & "</small></font><br />" & vbNewLine
	end if
	Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_Posts & " Posts</small></font></p></td>" & vbNewLine & _




Replace with this



        Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_FirstName & " " & Member_LastName & "</small></font><br />" & vbNewLine & _
			"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_City & "</small></font></p><br />" & vbNewLine 
	if strCountry = "1" and trim(Member_Country) <> "" then
		Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_Country & "</small></font><br />" & vbNewLine
	end if
        if mLev > 2 or Member_ReceiveMail = "1" then 
		if (mlev <> 0) or (mlev = 0 and  strLogonForMail <> "1") then 
	Response.Write	"                 <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small><a href=""JavaScript:openWindow('pop_mail.asp?id=" & TMember_ID & "')"">E-mail " & Member_FirstName & "</a></small></font><br />" & vbNewLine
		end if
	end if
        Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_Posts & " Posts</small></font></p></td>" & vbNewLine & _
		



Also this looks wrong


ReplyFirstName = arrReplyData(rM_FirstName, iForum)
			ReplyLastName = arrReplyData(rM_LastName, iForum)


Should look like this, I think


Reply_FirstName = arrReplyData(rM_FirstName, iForum)
			Reply_LastName = arrReplyData(rM_LastName, iForum)


ps This does not give the e-mail address just the pop-up that has the address on it



    _-/Cripto9t\-_

Edited by - cripto9t on 30 October 2003 08:05:25
Go to Top of Page

mx5mike
Starting Member

16 Posts

Posted - 31 October 2003 :  10:42:43  Show Profile  Visit mx5mike's Homepage
I'll give that a go. Thank you very much for all our help

Mike
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.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07