Author |
Topic  |
pweighill
Junior Member
 
United Kingdom
453 Posts |
Posted - 11 October 2002 : 08:41:21
|
Putting all the email messages in a separate file would quite a nice idea.
If you had one variable per message with [field] boxes in the spaces where the changable data would be inserted.
It would then sort of like a template system, which would allow people to easily customise all their email messages.
For example:
admin_accounts_pending.asp Message 1 Hello [MemberName]
You received this message from [strForumTitle] because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at [strForumURL]
Please click on the link below to complete your registration.
[URL]
You can change your information at our website by selecting the "Profile" link.
Happy Posting!
Message 2 Hello [MemberName]
You received this message from [strForumTitle] because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at [strForumURL]
You can change your information at our website by selecting the "Profile" link.
Happy Posting!
password.asp You received this message from [strForumTitle] because you have completed the First Step on the "Forgot Your Password?" page.
Please click on the link below to proceed to the next step.
[URL]
If you did not forget your password and received this e-mail in error, then you can just disregard/delete this e-mail, no further action is necessary. < |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 11 October 2002 : 08:48:29
|
quote:
Sorry? Why doesn't this go in the Snitz database?
This is valid for LCID=1033, but unless the original distribution contains messages for all possible LCID, there must be a way to include these messages in the distributed language pack (written by people), or an installation mechanism to take these values from language files and insert records into the database.
Anyway we have another problem here, some of the e-mails are constructed by if-then-elese constructs... You either need to put all possible messages, or you will need to write a parser to take care of if/then/else...
I'll need to think more on this... < |
Stop the WAR! |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 11 October 2002 : 08:51:04
|
quote: Originally posted by pweighill
Putting all the email messages in a separate file would quite a nice idea.
If you had one variable per message with [field] boxes in the spaces where the changable data would be inserted.
It would then sort of like a template system, which would allow people to easily customise all their email messages.
This was exactly what I want to do, if we can solve installation & conditional cases...< |
Stop the WAR! |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 11 October 2002 : 09:07:30
|
There are 10 inc_mail.asp includes, but with if-then-else's there will be 25 different messages...< |
Stop the WAR! |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 11 October 2002 : 09:57:04
|
Here is a way to do it: A config page to specify all the messages in the chosen language(s) of the forum admin, that would write and read them from the database, associated with each LCID. I see this is as the most flexible method and it wouldn't have the negative impact that we've discussed about using the database for the language strings used in the overall forum interface.
Downside to this: the "inconsistence" between specifying all the other strings in a lang file and these in the database. It's more of a philosophycal downside than a matter of serious concern, IMHO.< |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 19 March 2003 : 21:19:06
|
Here are the parameters that can be used in e-mail messages:
- STRFORUMTITLE (global variable, can be language dependent, must come from LCID database)
- STRFORUMURL (global variable, OK)
- MEMBERNAME (the receivers name, various sources, must be parameter)
- MEMBERNAME2 (any other membername, must be parameter)
- MEMBEREMAIL (the receivers e-mail address, must be parameter)
- MEMBEREMAIL2 (other member's e-mail address, must be parameter)
- ACTIVATIONKEY (various sources, optional, must be parameter)
- KEY (calculated, must be parameter)
- PASSWORD (must be parameter)
- TOPICNAME (must be parameter)
- TOPICID (must be parameter)
- FORUMNAME (must be parameter)
- FORUMID (must be parameter)
- CATEGORYNAME (must be parameter)
- CATEGORYID (must be parameter)
- MSG (must be parameter)
Additionaly, strRecipientsName, strRecipients, strFrom, strFromName has to be parameter.
The messages (all combinations) will follow file by file... The first bold line is the Subject... < |
Stop the WAR! |
Edited by - Deleted on 20 March 2003 01:19:43 |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 19 March 2003 : 21:22:29
|
admin_accounts_pending.asp
strAuthType="db" version:
quote:
[STRFORUMTITLE] Registration
Hello [MEMBERNAME]
You received this message from [STRFORUMTITLE] because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at [STRFORUMURL]
Please click on the link below to complete your registration.
[STRFORUMURL]register.asp?actkey=[ACTIVATIONKEY]
You can change your information at our website by selecting the "Profile" link.
Happy Posting!
strAuthType<>"db" version:
quote:
[STRFORUMTITLE] Registration
Hello [MEMBERNAME]
You received this message from [STRFORUMTITLE] because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at [STRFORUMURL]
You can change your information at our website by selecting the "Profile" link.
Happy Posting!
< |
Stop the WAR! |
Edited by - Deleted on 19 March 2003 21:23:40 |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 19 March 2003 : 21:32:02
|
inc_func_posting.asp
self-edit mode
quote:
[STRFORUMTITLE]- Your E-mail Address Has Been Changed
Hello [MEMBERNAME]
You received this message from [STRFORUMTITLE] because you have changed your e-mail address on the forums at [STRFORUMURL]
To complete your e-mail change, please click on the link below:
[STRFORUMURL]pop_profile.asp?verkey=[KEY]
Thank You!
Forum Admin
admin-edit mode
quote:
[STRFORUMTITLE]- Your E-mail Address Has Been Changed
Hello [MEMBERNAME]
You received this message from [STRFORUMTITLE] because someone has changed your e-mail address on the forums at [STRFORUMURL]
To complete your e-mail change, please click on the link below:
[STRFORUMURL]pop_profile.asp?verkey=[KEY]
Thank You!
Forum Admin
< |
Stop the WAR! |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 19 March 2003 : 22:48:46
|
inc_subscription.asp
New Posting-Board Subscription
quote:
[STRFORUMTITLE] - New posting
Hello [MEMBERNAME]
[MEMBERNAME2] has posted to the [STRFORUMTITLE] board that you requested notification on. Regarding the subject - [TOPICNAME].
You can view the posting at [STRFORUMURL]topic.asp?TOPIC_ID=[TOPICID]
New Posting-Category Subscription
quote:
[STRFORUMTITLE] - New posting
Hello [MEMBERNAME]
[MEMBERNAME2] has posted to the category '[CATNAME]' at [STRFORUMTITLE] that you requested notification on. Regarding the subject - [TOPICNAME].
You can view the posting at [STRFORUMURL]topic.asp?TOPIC_ID=[TOPICID]
New Posting-Forum Subscription
quote:
[STRFORUMTITLE] - New posting
Hello [MEMBERNAME]
[MEMBERNAME2] has posted to the forum '[FORUMNAME]' at [STRFORUMTITLE] that you requested notification on. Regarding the subject - [TOPICNAME].
You can view the posting at [STRFORUMURL]topic.asp?TOPIC_ID=[TOPICID]
Reply-Any Subscription
quote:
[STRFORUMTITLE] - Reply to a posting
Hello [MEMBERNAME]
[MEMBERNAME2] has replied to a topic on [STRFORUMTITLE] that you requested notification to. Regarding the subject - [TOPICNAME].
You can view the posting at [STRFORUMURL]topic.asp?TOPIC_ID=[TOPICID]
< |
Stop the WAR! |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 19 March 2003 : 22:56:20
|
password.asp
quote:
[STRFORUMTITLE] - Forgot Your Password?
Hello [MEMBERNAME]
You received this message from [STRFORUMTITLE] because you have completed the First Step on the "Forgot Your Password?" page.
Please click on the link below to proceed to the next step.
[STRFORUMURL]password.asp?pwkey=[KEY]
If you did not forget your password and received this e-mail in error, then you can just disregard/delete this e-mail, no further action is necessary.
< |
Stop the WAR! |
Edited by - Deleted on 19 March 2003 23:12:37 |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 19 March 2003 : 23:11:55
|
pop_mail.asp
There must be an additional consideration on [MSG] part, if sender & receiver encodings do not match!
quote:
Sent From [STRFORUMTITLE] by [MEMBERNAME2]
Hello [MEMBERNAME]
You received the following message from: [MEMBERNAME2] ([MEMBEREMAIL2])
At: [STRFORUMURL]
[MSG]
< |
Stop the WAR! |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 19 March 2003 : 23:41:08
|
pop_moderate.asp
Approve a new topic
quote:
[STRFORUMTITLE] - Your post has been approved
Hello [MEMBERNAME].
You made a post in the [FORUMNAME] forum entitled [TOPICNAME]. [MEMBERNAME2] has decided to approve your post for the following reason:
[MSG]
If you have any questions, please contact [MEMBERNAME2] at [MEMBEREMAIL2]
Hold a new topic
quote:
[STRFORUMTITLE] - Your post has been placed on hold
Hello [MEMBERNAME].
You made a post in the [FORUMNAME] forum entitled [TOPICNAME]. [MEMBERNAME2] has decided to place your post on hold for the following reason:
[MSG]
If you have any questions, please contact [MEMBERNAME2] at [MEMBEREMAIL2]
Reject a new topic
quote:
[STRFORUMTITLE] - Your post has been rejected
Hello [MEMBERNAME].
You made a post in the [FORUMNAME] forum entitled [TOPICNAME]. [MEMBERNAME2] has decided to reject your post on hold for the following reason:
[MSG]
If you have any questions, please contact [MEMBERNAME2] at [MEMBEREMAIL2]
Approve a reply
quote:
[STRFORUMTITLE] - Your post has been approved
Hello [MEMBERNAME].
You made a reply to the post in the [FORUMNAME] forum entitled [TOPICNAME]. [MEMBERNAME2] has decided to approve your post for the following reason:
[MSG]
If you have any questions, please contact [MEMBERNAME2] at [MEMBEREMAIL2]
Hold a reply
quote:
[STRFORUMTITLE] - Your post has been placed on hold
Hello [MEMBERNAME].
You made a reply to the post in the [FORUMNAME] forum entitled [TOPICNAME]. [MEMBERNAME2] has decided to place your post on hold for the following reason:
[MSG]
If you have any questions, please contact [MEMBERNAME2] at [MEMBEREMAIL2]
Reject a reply
quote:
[STRFORUMTITLE] - Your post has been rejected
Hello [MEMBERNAME].
You made a reply to the post in the [FORUMNAME] forum entitled [TOPICNAME]. [MEMBERNAME2] has decided to reject your post on hold for the following reason:
[MSG]
If you have any questions, please contact [MEMBERNAME2] at [MEMBEREMAIL2]
< |
Stop the WAR! |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 19 March 2003 : 23:45:20
|
pop_send_to_friend.asp
quote:
From: [MEMBERNAME2] Interesting Page
Hello [MEMBERNAME]
[MSG]
You received this from : [MEMBERNAME2] ([MEMBEREMAIL2])
< |
Stop the WAR! |
Edited by - Deleted on 21 March 2003 06:28:02 |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 20 March 2003 : 01:09:45
|
post_info.asp
Removed from public display
quote:
[STRFORUMTITLE] - Topic Moved
Hello [MEMBERNAME]
Your posting on [STRFORUMTITLE]. Regarding the subject - [TOPICNAME].
Has been removed from public display, If you have any questions regarding this, please contact the Administrator of the forum
Moved to a new forum
quote:
[STRFORUMTITLE] - Topic Moved
Hello [MEMBERNAME]
Your posting on [STRFORUMTITLE]. Regarding the subject - [TOPICNAME].
Has been moved to a new forum, You can view it at [STRFORUMURL]topic.asp?TOPIC_ID=[TOPICID]
< |
Stop the WAR! |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 20 March 2003 : 01:19:37
|
register.asp
strAuthType="db" & strEmailVal = "1" version: this is same as the first one in admin_accounts_pending.asp
quote:
[STRFORUMTITLE] Registration
Hello [MEMBERNAME]
You received this message from [STRFORUMTITLE] because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at [STRFORUMURL]
Please click on the link below to complete your registration.
[STRFORUMURL]register.asp?actkey=[ACTIVATIONKEY]
You can change your information at our website by selecting the "Profile" link.
Happy Posting!
strAuthType="db" & strEmailVal = "1" version: this is NEW
quote:
[STRFORUMTITLE] Registration
Hello [MEMBERNAME]
You received this message from [STRFORUMTITLE] because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at [STRFORUMURL]
Password: [PASSWORD]
You can change your information at our website by selecting the "Profile" link.
Happy Posting!
strAuthType<>"db" version: this is same as the second one in admin_accounts_pending.asp
quote:
[STRFORUMTITLE] Registration
Hello [MEMBERNAME]
You received this message from [STRFORUMTITLE] because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at [STRFORUMURL]
You can change your information at our website by selecting the "Profile" link.
Happy Posting!
< |
Stop the WAR! |
 |
|
Topic  |
|