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
 Private Messages (notification Mail)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Riccardo
New Member

86 Posts

Posted - 21 September 2005 :  08:47:56  Show Profile
I'm testing this mod but when i receive the mail with the address where i can view the PM i get not the real address. Why?

here the example:
You can view your message by visiting:

http://www.peperonciniamoci.it/2/ (which is not correct!)

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 21 September 2005 :  08:57:08  Show Profile
What should it be? Is your forum URL correct in your admin options?


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 21 September 2005 :  09:02:04  Show Profile
yes it is..
but the problem is that with this address i only view the "default.asp" page and not the "pm_view.asp"

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)

Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 21 September 2005 :  09:04:47  Show Profile
sorry i would like that in notification i get this address for example...

http://www.peperonciniamoci.it/2/privateread.asp?id=6 (id that change)

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)


Edited by - Riccardo on 21 September 2005 09:05:29
Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 21 September 2005 :  09:14:37  Show Profile
This is the line (i suppose) to modify in private_send.info:
but how?

strMessage = strMessage & "You can view your message by visiting " & Left(Request.Form("refer"), InstrRev(Request.Form("refer"), "/")) & vbCrLf

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)

Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 21 September 2005 :  09:30:13  Show Profile
Modify the DoReplyEmail sub to look like this:
sub DoReplyEmail()
	'## Emails all users who wish to receive notification of private message
	'## Forum_SQL
	strSql = " SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID "
	strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_NAME "
	strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_EMAIL "
	strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_PMEMAIL "
	strSql = strSql & ", " & strTablePrefix & "PM.M_ID "
	strSql = strSql & ", " & strTablePrefix & "PM.M_SUBJECT "
	strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
	strSql = strSql & " INNER JOIN " & strTablePrefix & "PM "
	strSql = strSql & " ON " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strTablePrefix & "PM.M_TO "
	strSql = strSql & " ORDER BY " & strTablePrefix & "PM.M_SENT DESC"

	set rsTopicAuthor = my_Conn.Execute (strSql)
	
	strRecipientsName = rsTopicAuthor("M_NAME")
	strRecipients = rsTopicAuthor("M_EMAIL")
	strSubject = strForumTitle & " - New Private Message"
	strMessage = "Hello " & rsTopicAuthor("M_NAME") & vbCrLf & vbCrLf
	strMessage = strMessage & strDBNTUserName & " has sent you a private message at " & strForumTitle & "." & vbCrLf
	if Request.Form("Subject") = "" then
		strMessage = strMessage & "Regarding - " & txtSubject & "." & vbCrLf & vbCrLf
	else
		strMessage = strMessage & "With the subject entitled - " & Request.Form("Subject") & "." & vbCrLf & vbCrLf
	end if
	strMessage = strMessage & "You can view your message by visiting " & strForumURL & "privateread.asp?id=" & clng(rsTopicAuthor("M_ID")) & vbCrLf

	rsTopicAuthor.close
	set rsTopicAuthor = nothing
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<% end sub %>
Incidentally, to correct any typos in or make any additions to your posts here, you can use the icon above them to edit them.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 21 September 2005 :  09:34:19  Show Profile
person like you are the best...thanks!
Fast and correct answer..

p.s. it works now..

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)


Edited by - Riccardo on 21 September 2005 09:34:43
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 21 September 2005 :  09:40:51  Show Profile
You're welcome


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
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.45 seconds. Powered By: Snitz Forums 2000 Version 3.4.07