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)
 Email content
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

elvis711
Starting Member

6 Posts

Posted - 29 March 2007 :  11:37:31  Show Profile  Reply with Quote
New guy here--I inherited our forums and am in no way shape or form a programmer. I am wanting to know if it is possible to modify what is sent to subscribers when a post/reply is made?
Currently the forum subject is sent. My subscribers are asking if the forum "message" can include the actual message, instead of just the subject. Thanks for any assistance<

new guy

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 29 March 2007 :  11:53:30  Show Profile  Reply with Quote
Yes, it's possible; the file you need to edit is inc_subscription.asp and a wuick search will provide you with a few topics explaining the changes that need to be made.

<

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

PPSSWeb
Junior Member

312 Posts

Posted - 29 March 2007 :  13:01:41  Show Profile  Reply with Quote
Below is the code I used in the past. I found that it encouraged people to NOT visit the forums though as they would just read the email and only go to the forums if they chose to reply, so I have removed it.

To add or modify the email subject/body for subscription notifications

Change the section of inc_subscription.asp starting at line 171 to 

=====================================================================================================================
						if LoopTopicID > 0 then
'							strSubject = strForumTitle & " - Reply to a posting"
'							strMessage = strMessage & MemberName & " has replied to a topic on " & strForumTitle & " that you requested notification to. "

							strSubject = strForumTitle & " - Reply to a posting in "  & ForumName & " - " & TopicName 
							strMessage = strMessage & MemberName & " has replied to the topic '" & TopicName & "' on the forum '" & ForumName & "' at " & strForumTitle & " that you requested notification on. "  & vbNewline & vbNewline
							strMessage = strMessage & "Subject: " & TopicName & vbNewline & vbNewline 
'							strMessage = strMessage & "Message: " & vbNewline & "==========================" & vbNewline
'							strMessage = strMessage &  StripCode(strNewMessage) & vbNewline & "==========================" & vbNewline & vbNewline & vbNewline							

						else
'							strSubject = strForumTitle & " - New posting"
'							strMessage = strMessage & MemberName & " has posted to the forum '" & ForumName & "' at " & strForumTitle & " that you requested notification on. "

							strSubject = strForumTitle & " - New posting in "  & ForumName & " - " & TopicName 
							strMessage = strMessage & MemberName & " has posted the following to the forum '" & ForumName & "' at " & strForumTitle & " that you requested notification on. "  & vbNewline & vbNewline
							strMessage = strMessage & "Subject: " & TopicName & vbNewline & vbNewline 
'							strMessage = strMessage & "Message: " & vbNewline & "==========================" & vbNewline
'							strMessage = strMessage &  StripCode(strNewMessage) & vbNewline & "==========================" & vbNewline & vbNewline & vbNewline							

						end if
					else
'						strSubject = strForumTitle & " - New posting"
'						strMessage = strMessage & MemberName & " has posted to the category '" & CatName & "' at " & StrForumTitle & " that you requested notification on. "

						strSubject = strForumTitle & " - New posting in " & ForumName & " - " & TopicName 
						strMessage = strMessage & MemberName & " has replied to the topic '" & TopicName & "' on the forum '" & ForumName & "' in the category '" & CatName & "' at " & strForumTitle & " that you requested notification on. "  & vbNewline & vbNewline
						strMessage = strMessage & "Subject: " & TopicName & vbNewline & vbNewline 
'						strMessage = strMessage & "Message: " & vbNewline & "==========================" & vbNewline
'						strMessage = strMessage &  StripCode(strNewMessage) & vbNewline & "==========================" & vbNewline & vbNewline & vbNewline							

					end if
				else
					strSubject = strForumTitle & " - New posting"
					strMessage = strMessage & MemberName & " has posted to the " & strForumTitle & " board that you requested notification on. "
				end if
'				strMessage = strMessage & "Regarding the subject - " & TopicName & "." & vbNewline & vbNewline
				strMessage = strMessage & "You can view the posting at " & strForumURL & "topic.asp?TOPIC_ID=" & TopicId & vbNewline

=====================================================================================================================


To remove html/forumcode from the email body for subscription notifications

Include the following function in the inc_subscription.asp file.
	This removes all content between braces [] [/] and <></> repectively

======================================================================================================================
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
<

Edited by - PPSSWeb on 29 March 2007 13:02:02
Go to Top of Page

elvis711
Starting Member

6 Posts

Posted - 30 March 2007 :  15:51:23  Show Profile  Reply with Quote
Thank you for your immediate and awesome response. I have passed this onto our developer.<

new guy
Go to Top of Page

elvis711
Starting Member

6 Posts

Posted - 01 October 2007 :  17:16:50  Show Profile  Reply with Quote

new guy
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 01 October 2007 :  17:38:39  Show Profile  Visit AnonJr's Homepage  Reply with Quote
There is no "attach" option, but you could save it as a .txt file and link to it.

At the very least, use the [scrollcode] tags around your code...<
Go to Top of Page

TastyNutz
Junior Member

USA
251 Posts

Posted - 03 October 2007 :  00:00:53  Show Profile  Visit TastyNutz's Homepage  Reply with Quote
If people want everything in email, why bother with a forum at all? A listserv will serve the purpose.<


PowerQuad Disability Support Forum
Go to Top of Page

elvis711
Starting Member

6 Posts

Posted - 04 October 2007 :  13:39:41  Show Profile  Reply with Quote
Only about a third of the people want just the e-mail, everyone else is ok navigating to the forum and reading the message<

new guy
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 04 October 2007 :  13:41:27  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Funny this would pop back up as I'm reading a chapter on "Tough Love"...<
Go to Top of Page

sokkmonkey
Starting Member

5 Posts

Posted - 24 October 2007 :  18:14:45  Show Profile  Reply with Quote
quote:
Originally posted by TastyNutz

If people want everything in email, why bother with a forum at all? A listserv will serve the purpose.



I work with a group of diverse demographics and ages..
While 70% understand the forum concept.. 30% still think the internet is a series of tubes..
I need to make sure they get some forum posts because they forget to check/ log on/ whatever.<
Go to Top of Page

desmo907
Starting Member

USA
19 Posts

Posted - 02 March 2010 :  12:39:08  Show Profile  Reply with Quote
I tried adding the first set of code below; replacing the code from line 171-189 and got an internal server error. I am not a programmer so suspect I am doing something wrong.

Thoughts?

quote:
Originally posted by PPSSWeb

Below is the code I used in the past. I found that it encouraged people to NOT visit the forums though as they would just read the email and only go to the forums if they chose to reply, so I have removed it.

To add or modify the email subject/body for subscription notifications

Change the section of inc_subscription.asp starting at line 171 to 

=====================================================================================================================
						if LoopTopicID > 0 then
'							strSubject = strForumTitle & " - Reply to a posting"
'							strMessage = strMessage & MemberName & " has replied to a topic on " & strForumTitle & " that you requested notification to. "

							strSubject = strForumTitle & " - Reply to a posting in "  & ForumName & " - " & TopicName 
							strMessage = strMessage & MemberName & " has replied to the topic '" & TopicName & "' on the forum '" & ForumName & "' at " & strForumTitle & " that you requested notification on. "  & vbNewline & vbNewline
							strMessage = strMessage & "Subject: " & TopicName & vbNewline & vbNewline 
'							strMessage = strMessage & "Message: " & vbNewline & "==========================" & vbNewline
'							strMessage = strMessage &  StripCode(strNewMessage) & vbNewline & "==========================" & vbNewline & vbNewline & vbNewline							

						else
'							strSubject = strForumTitle & " - New posting"
'							strMessage = strMessage & MemberName & " has posted to the forum '" & ForumName & "' at " & strForumTitle & " that you requested notification on. "

							strSubject = strForumTitle & " - New posting in "  & ForumName & " - " & TopicName 
							strMessage = strMessage & MemberName & " has posted the following to the forum '" & ForumName & "' at " & strForumTitle & " that you requested notification on. "  & vbNewline & vbNewline
							strMessage = strMessage & "Subject: " & TopicName & vbNewline & vbNewline 
'							strMessage = strMessage & "Message: " & vbNewline & "==========================" & vbNewline
'							strMessage = strMessage &  StripCode(strNewMessage) & vbNewline & "==========================" & vbNewline & vbNewline & vbNewline							

						end if
					else
'						strSubject = strForumTitle & " - New posting"
'						strMessage = strMessage & MemberName & " has posted to the category '" & CatName & "' at " & StrForumTitle & " that you requested notification on. "

						strSubject = strForumTitle & " - New posting in " & ForumName & " - " & TopicName 
						strMessage = strMessage & MemberName & " has replied to the topic '" & TopicName & "' on the forum '" & ForumName & "' in the category '" & CatName & "' at " & strForumTitle & " that you requested notification on. "  & vbNewline & vbNewline
						strMessage = strMessage & "Subject: " & TopicName & vbNewline & vbNewline 
'						strMessage = strMessage & "Message: " & vbNewline & "==========================" & vbNewline
'						strMessage = strMessage &  StripCode(strNewMessage) & vbNewline & "==========================" & vbNewline & vbNewline & vbNewline							

					end if
				else
					strSubject = strForumTitle & " - New posting"
					strMessage = strMessage & MemberName & " has posted to the " & strForumTitle & " board that you requested notification on. "
				end if
'				strMessage = strMessage & "Regarding the subject - " & TopicName & "." & vbNewline & vbNewline
				strMessage = strMessage & "You can view the posting at " & strForumURL & "topic.asp?TOPIC_ID=" & TopicId & vbNewline

=====================================================================================================================


To remove html/forumcode from the email body for subscription notifications

Include the following function in the inc_subscription.asp file.
	This removes all content between braces [] [/] and <></> repectively

======================================================================================================================
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
<

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 02 March 2010 :  12:44:04  Show Profile  Visit HuwR's Homepage  Reply with Quote
could you maybe post a link to a text verssion of your edited file, someone can then look to see what needs changing



Go to Top of Page

desmo907
Starting Member

USA
19 Posts

Posted - 02 March 2010 :  12:51:31  Show Profile  Reply with Quote
My ISP had V xxx.06 but I updated to V xxx.07 and replaced the applicable files. However the inc_subscription.asp file is from V xxx.06

The Original file is here (I took out the edits above to get it working again):
http://windsorsoftball.com/inc_subscription.txt

I am trying to include the Topic reply in the email as some user may access certain topic updates (e.g., game status) on their cell (WAP) but it would be easier to just read the reply in the email than having then to sign in to the website to read the reply.

Thx in advance.

Thanks in advance.
quote:
Originally posted by HuwR

could you maybe post a link to a text verssion of your edited file, someone can then look to see what needs changing



Edited by - desmo907 on 02 March 2010 17:59:27
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 03 March 2010 :  02:02:00  Show Profile  Visit HuwR's Homepage  Reply with Quote
quote:
Originally posted by HuwR

could you maybe post a link to a text verssion of your edited file, someone can then look to see what needs changing


We can't tell you what went wrong if you take the edits out
Go to Top of Page

desmo907
Starting Member

USA
19 Posts

Posted - 03 March 2010 :  10:17:26  Show Profile  Reply with Quote

The new file is here

http://windsorsoftball.com/inc_subscriptionNEW.txt

When i add this file I get a server 500 error.

I only added the first section above. The 2nd section (I was not sure where to put it) implies to strip out HTML code but we don't have that feature turned on. But do I need to use it to strip out the default Forum code?

Thanks!
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 03 March 2010 :  11:18:30  Show Profile  Visit HuwR's Homepage  Reply with Quote
the server 500 error could be your browser, try turning OFF 'show friendly http errors' in tools|internet options|advanced
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Next Page
 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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07