- This topic has 6 replies, 4 voices, and was last updated 9 years, 11 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Show additional information of users
Tagged: company name, hack, logged in
Hello, I need to display additional information on the pages users
As I can access the information fields used for each user ?
Eg company.
Thanks : )
Hi, can you explain further your question.
Thank you
I have a “company” field that I want to display it on the page logged user.
Thanks
Hi dgirona
I managed this by adding the following lines to the file
loggedin.php in the VIEWS folder of the plugin:
<div class="swpm-logged-companyname">
<div class="swpm-logged-companyname-label swpm-logged-label"><?php echo SwpmUtils::_('Company name') ?></div>
<div class="swpm-logged-companyname-value swpm-logged-value"><?php echo $auth->get('company_name'); ?></div>
</div>
In loggedin.php page it works fine.
But on another page no.
I have a page specified for each user role when they login.
I hope you can help me.
Thank’s
Sorry! A need get instance …
$auth = SwpmAuth::get_instance();
Thanks’s : )
The use of $auth = SwpmAuth::get_instance(); can also duplicate the attributes, example your company name on every pages you desired to appears. Been used that idea for our logo and slogan made by http://eatmywords.com/services/consulting/.