Substitution Strings: Difference between revisions

From Freegle Wiki
Jump to navigationJump to search
No edit summary
(→‎Example Message: mod -> volunteer)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Substitution strings are special things you can put in a standard message, which [[ModTools]] expands to put in the information before it sends the message. You can put them in the body or subject of a standard message.
Substitution strings are special things you can put in standard messages, which [[ModTools]] expands to put in the information before it sends the message. You can put them in the body or subject of a standard message.


It's a really good idea to use these from the start - they can make your messages more useful and friendly, and they also help you share your messages with other moderators or use them on other groups.
It's a really good idea to use these from the start - they can make your messages more useful and friendly, and they also help you share your messages with other moderators or use them on other communities.


====Strings====
====Strings====
*$origsubj expands to the original subject line of the message.
*$origsubj expands to the original subject line of the message.
*$membermail expands to the real email address of the member.
*$membermail expands to the real email address of the member.
*$groupname expands to the name of your group (e.g. EdinburghFreegle). You can use this to make your standard texts apply to multiple groups. You can also use this one in the BCC field, e.g. to BCC to $groupname-volunteers@groups.ilovefreegle.org.
*$groupname expands to the name of your community (e.g. EdinburghFreegle). You can use this to make your standard texts apply to multiple communities. You can also use this one in the BCC field, e.g. to BCC to $groupname-volunteers@groups.ilovefreegle.org.
*$owneremail expands to the email address of the owner of the group, e.g. ReadingFreegleUK-volunteers@groups.ilovefreegle.org
*$owneremail expands to the email address of the owner of the community, e.g. ReadingFreegleUK-volunteers@groups.ilovefreegle.org
*$groupemail expands to the email address used to send to the group, e.g. ReadingFreegleUK-volunteers@groups.ilovefreegle.org.
*$groupemail expands to the email address used to send to the community, e.g. ReadingFreegleUK@groups.ilovefreegle.org.
*$groupurl expands to the URL of your group (e.g. https://www.ilovefreegle.org/explore/ReadingFreegleUK).
*$groupurl expands to the URL of your community (e.g. https://www.ilovefreegle.org/explore/ReadingFreegleUK).
*$myname expands to the value in Settings->Personal.
*$myname expands to the value in Settings->Personal.
*$recentwanted expands to a list of recent WANTED messages from that member, and  
*$recentwanted expands to a list of recent WANTED messages from that member, and  
Line 19: Line 19:
*$duplicatemessages expands to any suspected duplicates of this message.
*$duplicatemessages expands to any suspected duplicates of this message.
*$networkname expands to the network name
*$networkname expands to the network name
*$groupnonetwork expands to the group name with the network removed.
*$groupnonetwork expands to the community name with the network removed.
*$nummembers expands to the number of members of your group.
*$nummembers expands to the number of members of your community.
*$memberreason expands (for pending member messages only) to the reason the member gave for joining the group
*$memberreason expands (for pending member messages only) to the reason the member gave for joining the community.
*$membersubdate expands (for pending member messages only) to the date the member applied to join the group.
*$membersubdate expands (for pending member messages only) to the date the member applied to join the community.
*$otherapplied expands (for pending member messages only) to any other groups which the member has applied to. Be careful - by using this you're revealing to members that you can do this check, which may make them try harder to circumvent this checking if they're evil.
*$otherapplied expands (for pending member messages only) to any other communities which the member has applied to. Be careful - by using this you're revealing to members that you can do this check, which may make them try harder to circumvent this checking if they're evil.


====Example Message====
====Example Message====
Line 35: Line 35:
reposting it, to allow people time to respond?
reposting it, to allow people time to respond?


Alternatively, you can try groups further away. If you do this, please mention that you've tried this group - it'll help your message get approved.
Alternatively, you can try communities further away. If you do this, please mention that you've tried this community - it'll help your message get approved.


Regards,<br>
Regards,<br>
$myname $groupname Moderator
$myname<br>
$groupname volunteer




[[Category:Admin]]
[[Category:Admin]]
[[category:ModTools]]

Latest revision as of 16:48, 15 September 2023

Substitution strings are special things you can put in standard messages, which ModTools expands to put in the information before it sends the message. You can put them in the body or subject of a standard message.

It's a really good idea to use these from the start - they can make your messages more useful and friendly, and they also help you share your messages with other moderators or use them on other communities.

Strings

  • $origsubj expands to the original subject line of the message.
  • $membermail expands to the real email address of the member.
  • $groupname expands to the name of your community (e.g. EdinburghFreegle). You can use this to make your standard texts apply to multiple communities. You can also use this one in the BCC field, e.g. to BCC to $groupname-volunteers@groups.ilovefreegle.org.
  • $owneremail expands to the email address of the owner of the community, e.g. ReadingFreegleUK-volunteers@groups.ilovefreegle.org
  • $groupemail expands to the email address used to send to the community, e.g. ReadingFreegleUK@groups.ilovefreegle.org.
  • $groupurl expands to the URL of your community (e.g. https://www.ilovefreegle.org/explore/ReadingFreegleUK).
  • $myname expands to the value in Settings->Personal.
  • $recentwanted expands to a list of recent WANTED messages from that member, and
  • $numrecentwanted to the number of such messages.
  • $recentoffer expands to a list of recent OFFER messages from that member, and
  • $numrecentoffer to the number of such messages.
  • You can guess what $recenttaken, $numrecenttaken, $recentreceived, $numrecentreceived do.
  • $recentmsg expands to a list of recent messages from that member, and $numrecentmsg to the number of messages.
  • $duplicatemessages expands to any suspected duplicates of this message.
  • $networkname expands to the network name
  • $groupnonetwork expands to the community name with the network removed.
  • $nummembers expands to the number of members of your community.
  • $memberreason expands (for pending member messages only) to the reason the member gave for joining the community.
  • $membersubdate expands (for pending member messages only) to the date the member applied to join the community.
  • $otherapplied expands (for pending member messages only) to any other communities which the member has applied to. Be careful - by using this you're revealing to members that you can do this check, which may make them try harder to circumvent this checking if they're evil.

Example Message

Here's an example of a message which uses substitution strings.

Dear $memberid,
You have posted for this item recently. Here are all your recent WANTEDs:
$recentwanted

As we say in the welcome message you'll have received when you join, you should wait a week before sending a WANTED again for the same item. Please can you wait before reposting it, to allow people time to respond?

Alternatively, you can try communities further away. If you do this, please mention that you've tried this community - it'll help your message get approved.

Regards,
$myname
$groupname volunteer