Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Notify poster of comment made in Community Forum
Please consider installing an add-on into the Community Forums, such as Notify, so people can be notified when someone responds to their posts.
Thank you
0
Comments
I would like on John's stream to write You are now friends with Gary.
and on Gary's You are now friends with John.
Now if you do this with it set to private you can write on one of the people's boards fine. But due to the way it works out the terminology it if i then try to write on the other persons also as a private message it will Say something like You are now friends with You. Not an ideal situation. Being able to target one person's stream and just submit a message would be easier, the controller could even work out the plural, your, You, linked name etc.
$Message = "You are now friends with ".Gdn::ProfileLink($UserID, "Singular"); AddActivity($TargetID, $Message);
You could then have
Gdn::YouLink($UserID); // <a href="profile/gary">You</a> Gdn::You($UserID); // You Gdn::ProfileLink($UserID, "Singular"); // <a href="profile/john">John</a> Gdn::ProfileLink($UserID, "Possessive"); // <a href="profile/john">John's</a> Gdn::ProfileName($UserID, "Singular"); // John Gdn::ProfileName($UserID, "Possessive"); // John's Gdn::WallLink($UserID); // <a href="profile/john">John's Wall</a>
I mean there could be more and you may want to change the functioning to a class etc.
The combining some would be easy
$Message = Gdn::You($UserID)" added a comment to ".Gdn::WallLink($UserID); AddActivity($TargetID, $Message);
I think this would be easier for people to implement this into their own plugin as well.
Feel free to modify this into its own post admin, i do apologise if its off topic somewhat.
I was thinking also of having a format for the stream that borrowed a page from facebook's markup language where you can have the string contain markup for all of your profilelink options above and they could then change depending who is looking at the activity.
Here is the fbml documentation for a pronoun: http://wiki.developers.facebook.com/index.php/Fb:pronoun .