Support » Plugin: IP Based Login » Test PHP for logged users

  • Resolved bbr13

    (@bbr13)


    Hi,

    Is it possible in PHP code of a page to insert a test in order to check if the user is logged via “IP Based Login” or via “login + password” ?

    Thank you to replay,
    Regards,
    Bruno Bros

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author brijeshk89

    (@brijeshk89)

    Hi,

    Unfortunately at the moment this is not possible.

    However the user does see a message in the admin panel top bar that he was logged in with IP Based Login plugin.

    ok thank you.
    I have to display a special information message if the user is logged with “IP Based Login”.
    The information in the admin panel doesn’t help me.

    Regards,
    Bruno

    Plugin Author brijeshk89

    (@brijeshk89)

    Hi,

    I will add this by Tuesday and let you know.

    Plugin Author brijeshk89

    (@brijeshk89)

    Hi,

    Is it Tuesday already ?

    I have released a new version 1.4.0 which includes a function named “is_logged_in_using_ipbl” which will return true when a user is logged in with this plugin and will return false for all other cases. This function can be called from any other theme/plugin or any PHP file.

    Please update the plugin and check if this works for you.

    Let me know if you face any issues.

    You are amazing.
    Iwill try this feature tomorrow and send you back the result.
    Thank you very much for reactivity,
    Bruno

    This last feature works fine.
    Thank you again.
    You are great!
    Bruno

    Plugin Author brijeshk89

    (@brijeshk89)

    Hi,

    Glad to know it works.

    It would be great if you can leave a rating 🙂

    adjunctadvocate

    (@adjunctadvocate)

    So, with this update, if a user is logged in via username and password, IP Login will NOT be active?

    We have library customers who want a private username and password to control their subscription settings, and to use IP recognition for their library users to view the content of the site, but NOT have access to the account settings (the username and password).

    In this instance, would we need to set up TWO accounts for each library? One that is username and password access (to view the user dashboard) AND IP access so that the library USERS can view the site content, but NOT access the user dashboard?

    Plugin Author brijeshk89

    (@brijeshk89)

    @adjunctadvocate This update does not affect any existing functionality. The whole plugin will work as it used to work before.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.