Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

Show additional information of users

Simple Membership Plugin › Forums › Simple Membership Plugin › Show additional information of users

Tagged: company name, hack, logged in

  • This topic has 6 replies, 4 voices, and was last updated 9 years, 11 months ago by jimsetmayer.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 1, 2015 at 6:47 am #2194
    dgirona
    Participant

    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 : )

    July 1, 2015 at 12:30 pm #2200
    mbrsolution
    Moderator

    Hi, can you explain further your question.

    Thank you

    July 2, 2015 at 11:48 am #2211
    dgirona
    Participant

    I have a “company” field that I want to display it on the page logged user.

    Thanks

    July 9, 2015 at 11:43 am #2282
    swisspenelope
    Participant

    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>
    July 10, 2015 at 11:50 am #2296
    dgirona
    Participant

    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

    July 10, 2015 at 11:53 am #2297
    dgirona
    Participant

    Sorry! A need get instance …

    $auth = SwpmAuth::get_instance();

    Thanks’s : )

    May 26, 2016 at 6:58 am #7012
    jimsetmayer
    Participant

    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/.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy