• Hi there,

    I’ve tried to solve this by trial & error and with forum browsing for two days now, so I’m finally “giving up” and will post my question here in hope to get wiser. Thanks a lot in advance. ??

    So:
    -> I’ve got both the ultimate member plugin and the online users extension installed.
    -> I built my user profile by adjusting the Default Profile with the form builder
    -> I included “Online Status” widget (visible to admin only)
    -> I added another shortcode widget that is using the username meta (also only visible to admin) to be visible only on certain user’s profile

    -> Additionally, I would like to add a condition that the shortcode widget only shows when the user’s online status is “online”, but any added condition that shows/hides the widget based on Online Status fails.

    Question: What are the online/offline values that I can use for “Online Status” within the conditional fields?

    Example: SHOW if ONLINE STATUS equals to ONLINE (doesn’t work, neither do “true/false” or “0/1”)

    Any suggestions? How to show a profile field only if profile user is currently logged in?

    Thanks a million,
    Piet

Viewing 15 replies - 1 through 15 (of 15 total)
  • Two quick things:
    1- ‘Online Users extension’ is not an UM plugin extension and if it were, it would not be something to be discussed at the free Ultimate Member support forum.
    2- Most support participants usually do not feel they should provide support for other plugins.

    So unless I am mistaking, disregard my comments…

    BTW, I would be willing to help you resolve your issues so long as you can provide more details and post in a different support board (mine).

    Actually, Online Users is a free UM extension:

    https://ultimatemember.com/extensions/online-users/

    Best regards,
    Rob

    Thanks for the correction VS. It never showed up in my UM extensions link (Ultimate Member >> Extensions). I wonder why.

    • This reply was modified 8 years, 5 months ago by borisv.

    In any case, Boris V. has been very helpful to others in this forum. His forum is here:

    https://averyniceweb.com/support/viewforum.php?f=7

    Thread Starter spreetaucher

    (@spreetaucher)

    Thanks, I checked his forum quickly, but since Boris isn’t aware of the “Online Users” extension, I’m not surprised that I couldn’t find a discussion on this.

    Back to topic: Any suggestion how to solve my issue or is it impossible?

    Thanks a lot.

    What you’re describing would be easier to grasp with screenshots or a link, but a basic suggestion would be to sandwich your content between these shortcodes:

    [um_loggedin show_lock=no]

    Put your content here

    [/um_loggedin]

    This will make it visible only to logged in users.

    –Rob

    Question: What are the online/offline values that I can use for “Online Status” within the conditional fields?

    You can decide who can see it (privacy settings) and where (view mode, edit mode or both).

    but you can not put a condition logic statement to a field with its field.

    Thread Starter spreetaucher

    (@spreetaucher)

    Thanks a lot.
    My challenge is of different nature, though (I might have explained this wrong, sorry for that):
    I would like to make the visibility not dependent on the visitor’s login status, but on the member’s who’s profile is being viewed.

    Here’s a screenshot of the shortcode widget and including the conditional field for “Online Status” that comes from the UM extension. (this one is NOT working)
    >> https://drive.google.com/open?id=0B4lHxmkiAaVfcVBBa0l1RXg4UVU

    I’m basically looking for the value that should go into the last field.

    Thanks

    I am not sure of what I am looking at in that foreign language, but if that’s another field, then yes. However, it should be:

    show -> if -> Online Status -> equals to -> online_status (on off)

    *notice ‘online_status’ is all lower case…

    • This reply was modified 8 years, 5 months ago by borisv.

    I’m basically looking for the value that should go into the last field.

    Just to clarify:
    show -> if -> Online Status -> equals to -> online

    To make that shortcode appear when the user is ‘online’.

    Thread Starter spreetaucher

    (@spreetaucher)

    That’s what I had in mind, yes.
    But unfortunately the value “online” in the last field doesn’t do that.

    OK. I do confirm that using ‘Online Status’ on another field to create conditional logic statements is not working.

    However, doing the opposite works: adding a conditional logic statement to the Online Status text box does work.

    It does work but with a caveat.

    For example, let’s suppose that I want the online status to be displayed only IF the user has entered data to another field (e.g. Country or Birth Date).

    You would then put this condition logic into the Online Status field:
    show -> if -> Country -> not empty -> 0
    Or,
    show -> if -> Birth Date -> not empty -> 0

    Therefore, the caveat is that a conditional field will work if it can read some data (a country, a date, a last name, a selection from a drop down menu or a radio button, etc).

    Obviously, you can inject a new function to modify this behavior, but that’s beyond the scope of this support forum, I am afraid.

    I hope this helps,

    Thread Starter spreetaucher

    (@spreetaucher)

    Thanks a lot for your support, Boris.

    That helped somehow. I now created that “workaround” extra field for users to manually state that they’re online by doing a profile edit (not my favourite, because it’s an extra step for the profile owner) that triggers the visibility of the shortcode field.

    BUT, I found out that the conditional logic are linked with an OR operator, not an AND?
    Because I want TWO conditions (username + online status) to mandatorily match for the field to appear/disappear.

    Am I getting this right that the conditional logic chain for more than one condition is an OR comparison? Is there a way to change that?

    Thread Starter spreetaucher

    (@spreetaucher)

    *Update:*

    I figured out an alternative way to solve my problem, but it requires one detail that seems to be not possible with UM:

    Is it possible to have a non-editable field still visible in profile owner’s edit mode?

    If so I could just “display” the username of the logged in user in edit mode and dependent on its value view/hide a manual online/offline dropdown that in turn triggers my individual shortcode module.

    I’ve successfully tested this with editable field (nickname), but I do not want profile owners to edit that value, just display it for the further conditional logics.

    Any chance?
    Thanks.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Use “Online Status” of Online Users extension as conditional field’ is closed to new replies.