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)
 Friend Mod Question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MaGraham
Senior Member

USA
1297 Posts

Posted - 06 February 2012 :  18:22:53  Show Profile  Reply with Quote
Isn't there SOMEONE out there who'd like to write an add-on for the Friend Mod so that members could SEE other member's friends and/or at least a member would KNOW when someone placed them on their friend list?

Come on, guys! Pretty PLEASE!!!



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 16 February 2012 :  07:41:36  Show Profile  Reply with Quote
OK - I wrote it for you.

In "pop_profile.asp"


Look for the following lines (appx 711-719):

			Response.Write	"                  </table>" & vbNewLine & _
					"                </td>" & vbNewLine & _
					"              </tr>" & vbNewLine & _
					"            </table>" & vbNewLine & _
					"          </td>" & vbNewLine & _
					"        </tr>" & vbNewLine & _
					"      </table>" & vbNewLine & _
					"    </td>" & vbNewLine & _
					"  </tr>" & vbNewLine


Above those, insert the following:


			'	##	User Space Below
				'	##	User Space Friends Below
							If Request.QueryString("mode")="display" Then
								If strUSFriendSwitch = "1" Then
									strSql = "SELECT F_FRIEND, F_MEMBER FROM " & strTablePrefix & "FRIENDS WHERE F_MEMBER=" & Request.QueryString("id")
									Set rsFriends=my_Conn.Execute(strSql)
									If not rsFriends.EOF Then
										Response.Write    "                    <tr>" & vbNewLine & _
											"                      <td bgcolor=""" & strPopUpTableColor & """ valign=""top"" align=""right"" nowrap width=""10%""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Friends: </font></b></td>" & vbNewLine & _
											"                      <td bgColor=""" & strPopUpTableColor & """ valign=""top""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>"
										rsFriends.MoveFirst
										Do While not rsFriends.EOF
											intFriend = rsFriends("F_FRIEND")
											strSql1 = "SELECT M_NAME FROM " & strMemberTablePrefix & "MEMBERS WHERE MEMBER_ID = " & intFriend
												Set rsMember = my_Conn.Execute(strSql1)
											If not rsMember.EOF Then
												Response.Write	"<a href=""pop_profile.asp?mode=display&id=" & intFriend & """" & dWStatus("View " & ChkString(rsMember("M_Name"),"display") & "'s Profile") & ">" & rsMember("M_Name") & "</a>"
												rsMember.Close
											End If
											Set rsMember = Nothing
											rsFriends.MoveNext
											If not rsFriends.EOF Then
												Response.Write	", "
											End If
										Loop
										rsFriends.Close
									End If
									Set rsFriends = Nothing
									Response.Write    "</font></td>" & vbNewLine & _
										"                    </tr>" & vbNewLine
								Else
									Response.Write    "                    <tr>" & vbNewLine & _
										"                      <td bgcolor=""" & strPopUpTableColor & """ valign=""top"" align=""right"" nowrap width=""10%""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Friends: </font></b></td>" & vbNewLine & _
										"                      <td bgColor=""" & strPopUpTableColor & """ valign=""top"">" & vbNewLine & _
										"												<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Friends not Active!" & vbNewLine & _
										"												</font></td>" & vbNewLine & _
										"                    </tr>" & vbNewLine
								End If
							End If
				'	##	User Space Friends Above
			'	##	User Space Above



In "pop_user_space.asp"


Look for the following lines (appx 841-847):

        if err.description <> "" then
                getErrMsg err.description, 0
        else
                bTmp = true
        end if

        addFriend = bTmp

Below those, insert the following:


       	if strEmail = "1" then
					strRecipientsName = FriendName
					strRecipients = FriendMail
					strFrom = strSender
					strFromName = strForumTitle
					strsubject = strForumTitle & " Friends' List "
					strMessage = "Hello " & FriendName & vbNewline & vbNewline
					strMessage = strMessage & "You received this message from " & strForumTitle & " because " & strDBNTUserName & " wishes to befriend you on the forums at " & strForumURL & vbNewline & vbNewline
					strMessage = strMessage & "To ignore " & strDBNTUserName & "'s request, simply do nothing." & vbNewline & vbNewline
					strMessage = strMessage & "To befriend " & strDBNTUserName & ", click here:  "  & strForumURL & "pop_user_space.asp?mode=friends&action=add&id=" & MemberID & vbNewline & vbNewline
					strMessage = strMessage & "or, if you have already added " & strDBNTUserName & " as a friend, you can remove " & strDBNTUserName & " from your friends' list here:  " & strForumURL & "pop_user_space.asp?mode=friends&action=delete&id=" & MemberID & vbNewline & vbNewline
					%>
					<!--#INCLUDE FILE="inc_mail.asp" -->
					<%
				end if


Next, look for the following line (appx 527):

                                                        FriendName = rs("M_NAME")

Below it, insert the following:


                                                        FriendMail = rs("M_EMAIL")


Next, look for the following line (appx 514):

                                                strSql = "SELECT M_NAME FROM " & strMemberTablePrefix & "MEMBERS " & _


Change it to say:


                                                strSql = "SELECT M_NAME, M_EMAIL FROM " & strMemberTablePrefix & "MEMBERS " & _


Last in this program, look for the following lines (appx 496-497):

                                if trim(Request.Form("id")) <> "" and isNumeric(Request.Form("id")) = true then
                                        FriendID = cLng(Request.form("id"))

Below those, insert the following:


                                elseif trim(Request.Querystring("id")) <> "" and isNumeric(Request.Querystring("id")) = true then
                                		FriendID = cLng(Request.Querystring("id"))



In "admin_user_space.asp"


Comment out the following lines:


147
                if trim(strUSBookmarkSwitch) <> "" then
155
                end if
160
                if trim(strUSFriendSwitch) <> "" then
168
                end if


Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 17 February 2012 :  23:52:59  Show Profile  Reply with Quote
Carefree, you are Sooooo incredible!!

Love; love; LOVE IT!!!!

THANK YOU SO MUCH!!!!



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 18 February 2012 :  15:04:23  Show Profile  Reply with Quote
Mission Accomplished!

Thank you again, Carefree!!!



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 18 February 2012 :  15:33:57  Show Profile  Reply with Quote
You're welcome, lady.
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07