Difference between revisions of "WikiTips"
From Baltimore Node Wiki
Jump to navigationJump to searchm |
m (→2010 - 2018) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | ''As of | + | ''As of 2019, the wiki has been updated to be a little easier to use. But, for the time being, [[User:Jnm|John Milner]] has taken up the mantle of administrating the wiki, and fixing it when something seems broken.'' |
− | === 2009 === | + | ===2019=== |
+ | New tip: If you want to make a wiki edit, but you're a little stuck, ask about it on the [https://discuss.baltimorenode.org/ discussion forum], or during [[OpenHack]]. | ||
+ | |||
+ | ===2010 - 2018=== | ||
+ | [[We Have A Wiki|We have a wiki?]] | ||
+ | |||
+ | ===2009=== | ||
Tips page on how to use the Wiki. | Tips page on how to use the Wiki. | ||
Line 13: | Line 19: | ||
<nowiki>diff --git a/SendGridHooks.php b/SendGridHooks.php | <nowiki>diff --git a/SendGridHooks.php b/SendGridHooks.php | ||
− | + | index c11a1ca..e47db92 100644 | |
− | + | --- a/SendGridHooks.php | |
− | + | +++ b/SendGridHooks.php | |
− | + | @@ -63,7 +63,9 @@ class SendGridHooks { | |
− | + | } | |
− | + | ||
− | + | // Get $to and $from email addresses from the array and MailAddress object respectively | |
− | + | - $from = new SendGrid\Email( null, $from->address ); | |
− | + | + global $wgEnotifUseRealName; | |
− | + | + $from_name = ( $wgEnotifUseRealName && $from->realName !== '' ) ? $from->realName : $from->name; | |
− | + | + $from = new SendGrid\Email( $from_name, $from->address ); | |
− | + | $to = new SendGrid\Email( null, $to[0]->address ); | |
− | + | $body = new SendGrid\Content( "text/plain", $body ); | |
− | + | $mail = new SendGrid\Mail( $from, $subject, $to, $body ); | |
− | + | </nowiki> |
Latest revision as of 16:23, 13 September 2019
As of 2019, the wiki has been updated to be a little easier to use. But, for the time being, John Milner has taken up the mantle of administrating the wiki, and fixing it when something seems broken.
2019[edit | edit source]
New tip: If you want to make a wiki edit, but you're a little stuck, ask about it on the discussion forum, or during OpenHack.
2010 - 2018[edit | edit source]
2009[edit | edit source]
Tips page on how to use the Wiki.
To add a signature: ~~~ for your username. ~~~~ for your username and time stamp.
To create a new Meeting Page using the Template: {{subst:Meeting Notes}} save and edit
We're using the SendGrid extension for email now, but it didn't respect MediaWiki:Emailsender. Here's a quick hack to fix that:
diff --git a/SendGridHooks.php b/SendGridHooks.php index c11a1ca..e47db92 100644 --- a/SendGridHooks.php +++ b/SendGridHooks.php @@ -63,7 +63,9 @@ class SendGridHooks { } // Get $to and $from email addresses from the array and MailAddress object respectively - $from = new SendGrid\Email( null, $from->address ); + global $wgEnotifUseRealName; + $from_name = ( $wgEnotifUseRealName && $from->realName !== '' ) ? $from->realName : $from->name; + $from = new SendGrid\Email( $from_name, $from->address ); $to = new SendGrid\Email( null, $to[0]->address ); $body = new SendGrid\Content( "text/plain", $body ); $mail = new SendGrid\Mail( $from, $subject, $to, $body );