Hello I would like to add the following details to my user area in the dashboard above Active Subscriptions: Welcome <firstname> Your Membership # <UserId> I have seen this page https://www.amember.com/docs/How_to_display_user_id_in_edit_profile_page and tried to adapt it, but am having difficulty. Could someone please direct me how to do this? Thanks
Hello, You can use the following code in site.php to achieve your needs: http://www.amember.com/docs/Site.php_file PHP: Am_Di::getInstance()->blocks->add('member/main/left/top', new Am_Block_Base(null, 'welcome', null, function(Am_View $v) { $user = $v->di->user; return <<<CUT<p>Welcome {$user->name_f}!<br/>Your Membership # <strong>{$user->pk()}</strong></p></p>CUT;})); Best Regards.
Another option - you can use our free Widget plugin: https://www.amember.com/amember/product/widget You can use the following html with placeholders for Widget content: HTML: <p>Welcome %user.name_f%!<br/> Your Membership # <strong>%user.user_id%</strong></p> </p>