RobinHood Well-known member Feb 26, 2021 #1 I'd like to display a notice to users looking at their own profile. I can't seem to figure out if there's a way to do that using the built in page information criteria?
I'd like to display a notice to users looking at their own profile. I can't seem to figure out if there's a way to do that using the built in page information criteria?
P Paul B XenForo moderator Staff member Mar 3, 2021 #2 If you mean this -- https://xenforo.com/community/account/account-details -- the template is account_details. This template -- https://xenforo.com/community/members/brogan.521/ -- is member_view. If you want to check if the member is viewing their own member_view template, you can use this conditional: <xf:if is="$user.user_id == $xf.visitor.user_id">. Upvote 0 Downvote
If you mean this -- https://xenforo.com/community/account/account-details -- the template is account_details. This template -- https://xenforo.com/community/members/brogan.521/ -- is member_view. If you want to check if the member is viewing their own member_view template, you can use this conditional: <xf:if is="$user.user_id == $xf.visitor.user_id">.