From: Ruben Rodriguez Date: Thu, 30 Apr 2020 16:47:25 +0000 (-0400) Subject: Added referral link X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2ca094ea036033893c12384c109513e896a20809;p=org.fsf.memberdashboard.git Added referral link --- diff --git a/CRM/Memberdashboard/Page/MemberDashboard.php b/CRM/Memberdashboard/Page/MemberDashboard.php index f7d6106..a51bbf3 100644 --- a/CRM/Memberdashboard/Page/MemberDashboard.php +++ b/CRM/Memberdashboard/Page/MemberDashboard.php @@ -73,6 +73,7 @@ class CRM_Memberdashboard_Page_MemberDashboard extends CRM_Memberdashboard_Page $this->assign('campaignPages', $this->campaignPages()); // Checksum for editing recurring contributions. $this->assign('contributionChecksum', $this->makeChecksum()); + $this->assign('contactId', $this->contact['id']); parent::run(); diff --git a/templates/CRM/Memberdashboard/Page/MemberDashboard.tpl b/templates/CRM/Memberdashboard/Page/MemberDashboard.tpl index 85a9192..dea31a9 100644 --- a/templates/CRM/Memberdashboard/Page/MemberDashboard.tpl +++ b/templates/CRM/Memberdashboard/Page/MemberDashboard.tpl @@ -25,6 +25,9 @@ {include file="CRM/Memberdashboard/Page/DashboardElement.tpl" element=$dashboardElements.CiviContribute } +
Referrer Link
+https://my.fsf.org/join?referrer={$contactId} +
Personal Campaign Page(s)