Variables in Email Template Files

Discussion forum for MOD Writers regarding MOD Development.
Locked
guido666
Registered User
Posts: 60
Joined: Tue Feb 27, 2007 10:14 pm

Variables in Email Template Files

Post by guido666 » Tue Jul 31, 2007 8:39 pm

Is there somewhere I can find a list of the variables available to use in the email template files?

I notice that it uses a variety of variables to insert things like the name of the post, your username, etc. Is there a complete list somewhere?

Thanks
How come there is never time to do it right, but always time to do it over?

guido666
Registered User
Posts: 60
Joined: Tue Feb 27, 2007 10:14 pm

Re: Variables in Email Template Files

Post by guido666 » Thu Aug 09, 2007 10:37 pm

Ok, well if nobody knows anything, I'll start by documenting all the ones in the sample email templates. Hopefully someone can jump in who actually has an answer to this...
  • {USERNAME} - Username
  • {U_USER_DETAILS} - User's profile link
  • {U_ACTIVATE} - User activation link
  • {EMAIL_SIG} - Admin/board email signature
  • {SITENAME} - Configured name of the site
  • {CONTACT_EMAIL} - Configured board webmaster email
  • {MESSAGE} - Used to insert the message when emailing a user from the board, or using the "email topic to friend" tool.
  • {U_BOARD} - URL of the forums
  • {WELCOME_MSG} - A welcome message. Like "Welcome to so-and-so's forums". Probably in the language file, with the {SITENAME} variable in it.
  • {PASSWORD} - User's password. Probably only works in the initial email, since it's encrypted after that.
  • {FAX_INFO} - COPPA fax number
  • {MAIL_INFO} - COPPA mailing address
  • {EMAIL_ADDRESS} - User's email address
  • {TO_USERNAME} - The username an email is addressed to, when using in-board email.
  • {FROM_USERNAME} - The username an email is coming from, when using in-board email.
  • {TOPIC_NAME} - The topic name that you are emailing to a friend.
  • {U_TOPIC} - The URL for the topic involved.
  • {BOARD_CONTACT} - Configured board webmaster email
  • {FORUM_NAME} - The name of the forum that has received a topic, and the user is being notified about.
  • {TOPIC_TITLE} - The name of the topic that has received a post, and the user is being notified about.
  • {U_NEWEST_POST} - URL of the newest post to the topic being watched.
  • {U_STOP_WATCHING_FORUM} - URL to be removed from Subscrition to the forum.
  • {GROUP_NAME} - The group name that the user has been added to.
  • {U_GROUP} - URL of the group page
  • {U_PENDING} - URL a group leader should visit to review / approve / deny a new member.
  • {U_FORUM} - URL to the forum being watched.
  • {POST_SUBJECT} - Post title, could be the same as {TOPIC_TITLE}, unless it's a reply.
  • {U_VIEW_POST} - URL to the specific post (within a topic).
  • {U_VIEW_TOPIC} - URL to the topic.
  • {REASON} - Reason a post was disapproved.
  • {AUTHOR_NAME} - User who authored the PM.
  • {SUBJECT} - Subject of the PM.
  • {U_INBOX} - URL to the user's PM inbox.
  • {CLOSER_NAME} - Username of the person who closed a report that was filed.
  • {U_STOP_WATCHING_TOPIC} - URL to unsubscribe from a topic.
  • {REGISTER_DATE} - Registration date of the user.
These are all the ones I found in the sample templates, along with my take on what the may be. I haven't compared them to the code to find out exactly where they work (as in, if they all work in all emails) or anything.
How come there is never time to do it right, but always time to do it over?

User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Re: Variables in Email Template Files

Post by drathbun » Fri Aug 10, 2007 1:44 am

This sort of resource is probably best suited in the MOD Writers forum, so I will move it there. I have seen links in various places to 3.0 documentation, are you sure this doesn't already exist?
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image

guido666
Registered User
Posts: 60
Joined: Tue Feb 27, 2007 10:14 pm

Re: Variables in Email Template Files

Post by guido666 » Fri Aug 10, 2007 2:02 am

I can't be certain that it doesn't exist, but I did my best to search for it, and read parts of the documentation looking for it. Then I started this post and got no answer after a healthy wait.

Does it really belong in the MOD section? I wouldn't really think that editing the email templates would be MOD'ing, but hey, you're the boss.
How come there is never time to do it right, but always time to do it over?

User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Re: Variables in Email Template Files

Post by drathbun » Fri Aug 10, 2007 2:29 am

I would suggest that any edits to the code are modifications. :-) But the MOD Team would have the final say, they can move it elsewhere if my judgement was wrong.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image

belred
Registered User
Posts: 8
Joined: Sat Aug 11, 2007 3:17 pm

Re: Variables in Email Template Files

Post by belred » Thu Aug 16, 2007 3:52 pm

Is there a macro/variable for for the contents of the post?

Bashar
Registered User
Posts: 38
Joined: Mon Jul 22, 2002 10:53 am

Re: Variables in Email Template Files

Post by Bashar » Sat Oct 06, 2007 4:12 pm

Hello,
how to alert the {WELCOME_MSG} field? i can't find it into the language file

Locked

Return to “[3.0.x] MOD Writers Discussion”

Who is online

Users browsing this forum: No registered users and 20 guests

cron