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.
Hi,
my forum members are asking me for having by email the full text of a new post (forum subscription) instead of receiving a message with the link. Is it possible?
Thank you for your help
Alex<
my forum members are asking me for having by email the full text of a new post (forum subscription) instead of receiving a message with the link. Is it possible?
Thank you for your help
Alex<
Posted
Ooops,
I will chek... Tank you! I edited the link for security resaon if you do not mind....<
I will chek... Tank you! I edited the link for security resaon if you do not mind....<
Posted
Ok it is done!
Thank you.. <
Thank you.. <
Posted
okay..
I tried this, the new read message is changed ok but it's still not showing the message body copy-
where did I go wrong? http://www.rattlebrain.com/~sokkmonkey/inc_subscription.txt
Likewise if I was to add the following to strip the HTML and netcode, where would be a good place to stick it?
Function StripCode(ByVal fString)
if fString = "" or IsNull(fString) then
fString = " empty string test"
elseif strAllowForumCode = "1" then
'filter out forumcode
fStringLeft = ""
fFound = False
Do While InStr(fString, "[")
fFound = True
fStringLeft = fStringLeft & " " & Left(fString, InStr(fString, "[")-1)
fString = MID(fString, InStr(fString, "]") + 1)
Loop
StripCode = fStringLeft & fString
If Not fFound Then StripCode = fString
elseif strAllowHTML = "1" then
' filter out html code
fStringLeft = ""
fFound = False
Do While InStr(fString, "<")
fFound = True
fStringLeft = fStringLeft & " " & Left(fString, InStr(fString, "<")-1)
fString = MID(fString, InStr(fString, ">") + 1)
Loop
StripCode = fStringLeft & fString
If Not fFound Then StripCode = fString
end if
if strBadWordFilter = "1" then
fString = ChkBadWords(fString)
end if
StripCode = fString
End Function<
where did I go wrong? http://www.rattlebrain.com/~sokkmonkey/inc_subscription.txt
Likewise if I was to add the following to strip the HTML and netcode, where would be a good place to stick it?
Function StripCode(ByVal fString)
if fString = "" or IsNull(fString) then
fString = " empty string test"
elseif strAllowForumCode = "1" then
'filter out forumcode
fStringLeft = ""
fFound = False
Do While InStr(fString, "[")
fFound = True
fStringLeft = fStringLeft & " " & Left(fString, InStr(fString, "[")-1)
fString = MID(fString, InStr(fString, "]") + 1)
Loop
StripCode = fStringLeft & fString
If Not fFound Then StripCode = fString
elseif strAllowHTML = "1" then
' filter out html code
fStringLeft = ""
fFound = False
Do While InStr(fString, "<")
fFound = True
fStringLeft = fStringLeft & " " & Left(fString, InStr(fString, "<")-1)
fString = MID(fString, InStr(fString, ">") + 1)
Loop
StripCode = fStringLeft & fString
If Not fFound Then StripCode = fString
end if
if strBadWordFilter = "1" then
fString = ChkBadWords(fString)
end if
StripCode = fString
End Function<
Posted
I've followed these instructions and have created my email message like this:
strMessage = strMessage & MemberName & " has posted the following to the forum '" & ForumName & "' on the " & strForumTitle & ". " & vbNewLine & vbNewLine
strMessage = strMessage & "The subject was " & TopicName & vbNewLine & vbNewLine
strMessage = strMessage & " and the message reads: " &FormatStr(TopicContent) & ". " & vbNewLine & vbNewLine
The odd thing is despite the vbNewLines, I'm just getting the message all strung together in one line. How can I force a new line between the different blocks to make it all more readable? <
strMessage = strMessage & MemberName & " has posted the following to the forum '" & ForumName & "' on the " & strForumTitle & ". " & vbNewLine & vbNewLine
strMessage = strMessage & "The subject was " & TopicName & vbNewLine & vbNewLine
strMessage = strMessage & " and the message reads: " &FormatStr(TopicContent) & ". " & vbNewLine & vbNewLine
The odd thing is despite the vbNewLines, I'm just getting the message all strung together in one line. How can I force a new line between the different blocks to make it all more readable? <
Posted
If all you want is to break-up the various replies, that shouldn't be too difficult. The following modification should give you a blank line between replies.
Change this line:
strSubject = strForumTitle & " - Reply to a posting"
to say:
strSubject = "<br><br>" & strForumTitle & " - Reply to a posting"<
Change this line:
strSubject = strForumTitle & " - Reply to a posting"
to say:
strSubject = "<br><br>" & strForumTitle & " - Reply to a posting"<
Posted
OK, I have no experience at this but am giving it a shot.
I have read this thread and trying to get this to work. The one thing I am trying to change is delete the link to the message and replace it with a message to log onto the forum to reply. (The link doesn't work due to the way the website security is set up.) (Long story)
Anyway I got the following error
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/Members/Patrol_Reps_Forum/patrepbb/inc_subscription.asp, line 189
strMessage = strMessage & "You can view the posting by logging onto the Patrol Reps Forum " vbNewline
--------------------------------------------------------------------------------------------^
Can someone help me?<
I have read this thread and trying to get this to work. The one thing I am trying to change is delete the link to the message and replace it with a message to log onto the forum to reply. (The link doesn't work due to the way the website security is set up.) (Long story)
Anyway I got the following error
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/Members/Patrol_Reps_Forum/patrepbb/inc_subscription.asp, line 189
strMessage = strMessage & "You can view the posting by logging onto the Patrol Reps Forum " vbNewline
--------------------------------------------------------------------------------------------^
Can someone help me?<
Posted
you need an & after the string and before the vbNewline, like so
strMessage = strMessage & "You can view the posting by logging onto the Patrol Reps Forum " & vbNewline<
strMessage = strMessage & "You can view the posting by logging onto the Patrol Reps Forum " & vbNewline<
Posted
Thanks for the help on the syntax.
I now seeing the first message of the string in the email but that is all.
Also where is a good place to put the code to strip the html?
I have moved the file to http://www.southernregionnsp.org/inc_subscription.txt
<
I now seeing the first message of the string in the email but that is all.
Also where is a good place to put the code to strip the html?
I have moved the file to http://www.southernregionnsp.org/inc_subscription.txt
<
Last edited by flhtci01 on 04 October 2008, 14:35
Email Member
Message Member
Post Moderation
FileUpload
If you're having problems uploading, try choosing a smaller image.
Preview post
Send Topic
Loading...
