• Hello,

    I have emails configured to send to users when they login that gives them GEO information about the computer currently logging in or other account activity.

    I use the Geo Controller from https://wpgeocontroller.com/

    But the shortcodes for rendering the users IP address and location are not rendering.

    IP Address: [cfgeo return=”ip”]
    Location: [cfgeo return=”address”]

    Alternatives that GeoController has
    IP Address: [cfgeo_ip]
    Location: [cfgeo_address]

    Neither will render in the emails your plugins sends out. But the shortcodes work on any page I place them on or if I add them to woocommerce emails.

    please advise

    • This topic was modified 3 weeks, 5 days ago by lucein.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @lucein,
    Thanks for your message.

    This usually happens when the data is saved after the notification is sent. BNFW uses the default WordPress notification hook.

    Can you tell me the name of the BNFW notification you’re using?

    Thread Starter lucein

    (@lucein)

    There are several notifications that hav these shortcodes in them.
    1. Admin Notification – User Login User
    2. New Login
    3. User Lost Password – User
    4. User Email Changed Confirmation
    5. User Password Change Notification
    are notifications that have these shortcodes in them and they are not rendering.

    Plugin Author bnfw

    (@voltronik)

    Hi @lucein,
    Thanks for confirming.

    Do the shortcodes work if you use them in another notification, such as New Post Published?

    Thread Starter lucein

    (@lucein)

    Hi bnfw,
    I created a new notification for New Post Published and inserted the shortcodes.

    The email received did render the shortcodes.

    I tried creating a new notification as a test with one of the User Logged in – For Admin. but the shortcodes still did not render.

    Also, this new User Logged in – For Admin notification. I have setup to send me a notification each time an admin logs in. Why does this notification send me an email for EVERY user that logs in and not just admins?

    please advise.

    Plugin Author bnfw

    (@voltronik)

    Hi @lucein,
    In this case, it does sound like you either need to check whether the data is available at the time the notification is sent, or use another method, such as a custom shortcode or the Custom Fields add-on to add support for those shortcodes inside of the User notifications that you need.

    The User Logged in – For Admin notification is a notification that is sent to the Administrators, when any user logs in. There isn’t a way to limit this to just users of the Administrator user role.

    Thread Starter lucein

    (@lucein)

    I installed bnfw onto another site with similar but even more complex config that where it si not working.

    The shortcodes work on that site

    is there any logging with bnfw that can be used to determine why the shortcodes are not being rendered?

    Plugin Author bnfw

    (@voltronik)

    Hi @lucein,

    I’m not sure how the non-BNFW shortcodes are working in the User notifications.
    Can you post a link to two text files: one of the contents of the notification from the site that isn’t working, and one that is?

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