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

Dynamic greeting and welcome message for users

Simple Membership Plugin › Forums › Simple Membership Plugin › Dynamic greeting and welcome message for users

Tagged: greeting

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 3 months ago by mbrsolution.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 11, 2016 at 5:12 pm #7781
    jecb
    Participant

    Hello all, great plug-in by the way. I have looked for an option that allows to set a greeting for instance, to those who are not logged in already something like “Welcome, please register to access…” and another message like “Hello John! welcome to our site…”

    Is this possible? I have looked all options and plug-ins and haven’t been able to get it.

    Thanks in advanced,
    J.

    August 11, 2016 at 11:44 pm #7783
    mbrsolution
    Moderator

    Hi, please check the following Miscellaneous PHP Tweaks.

    Thank you

    August 12, 2016 at 1:34 pm #7786
    jecb
    Participant

    Thanks for your answer.

    I added this as a code block to a page:

    <?php if(SwpmMemberUtils::is_member_logged_in()) { ?>
    <?php
    echo ‘logged-in’;
    ?><?php } ?>

    <?php if(!SwpmMemberUtils::is_member_logged_in()) { ?>
    <?php
    echo ‘Log in to start your free delivery.’;
    ?>
    <?php } ?>

    But it’s not working.

    Can you help?

    Thanks.

    August 13, 2016 at 11:01 am #7792
    mbrsolution
    Moderator

    Hi, why don’t you try something like this.

    Show specific content to a particular member

    The following code will show a message to the member if his/her ID is “2”:

    $member_id = SwpmMemberUtils::get_logged_in_members_id();
    if ($member_id == "2"){
        echo "Hi, your member ID is 2";
    }

    or you can use the following example, to add conditional block (for example: show a special message to your logged in users):

    <?php if(SwpmMemberUtils::is_member_logged_in()) { ?>
    //Your message for logged-in members goes here
    <?php } ?>

    Regards

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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