2022-01-01, 05:41 AM
(This post was last modified: 2022-01-01, 06:56 AM by Michael2014. Edited 3 times in total.)
Is there a way to create an If else statement for member profiles, for example, if I am looking at my member profile, I will see "this", and if looking at someone else's member profile then I will see "that"
I've been trying, but can seem to get it.
any help?
<if $GLOBALS['mybb']->user['uid] then>looking at my member profile sees "this"<else> looking at someone else's profile sees "that"</if>
Solved:
Again, something inside me just takes over, and answers the question, so why do I even ask?
<if $GLOBALS['mybb']->user['uid'] == $memprofile['uid'] then>looking at my member profile sees "this"<else> looking at someone else's profile sees "that"</if>
But what if is a custom page?
wow, solved this again, so surprising, it just takes minutes once the higher mind takes over, to solve this for a custom page is to change
$memprofile['uid'] then>
to
$uid then>
I've been trying, but can seem to get it.
any help?
<if $GLOBALS['mybb']->user['uid] then>looking at my member profile sees "this"<else> looking at someone else's profile sees "that"</if>
(2022-01-01, 05:41 AM)Michael2014 Wrote: Is there a way to create an If else statement for member profiles, for example, if I am looking at my member profile, I will see "this", and if looking at someone else's member profile then I will see "that"
I've been trying, but can seem to get it.
any help?
<if $GLOBALS['mybb']->user['uid] then>looking at my member profile sees "this"<else> looking at someone else's profile sees "that"</if>
Solved:
Again, something inside me just takes over, and answers the question, so why do I even ask?
<if $GLOBALS['mybb']->user['uid'] == $memprofile['uid'] then>looking at my member profile sees "this"<else> looking at someone else's profile sees "that"</if>
But what if is a custom page?
(2022-01-01, 05:41 AM)Michael2014 Wrote: Is there a way to create an If else statement for member profiles, for example, if I am looking at my member profile, I will see "this", and if looking at someone else's member profile then I will see "that"
I've been trying, but can seem to get it.
any help?
<if $GLOBALS['mybb']->user['uid] then>looking at my member profile sees "this"<else> looking at someone else's profile sees "that"</if>
(2022-01-01, 05:41 AM)Michael2014 Wrote: Is there a way to create an If else statement for member profiles, for example, if I am looking at my member profile, I will see "this", and if looking at someone else's member profile then I will see "that"
I've been trying, but can seem to get it.
any help?
<if $GLOBALS['mybb']->user['uid] then>looking at my member profile sees "this"<else> looking at someone else's profile sees "that"</if>
Solved:
Again, something inside me just takes over, and answers the question, so why do I even ask?
<if $GLOBALS['mybb']->user['uid'] == $memprofile['uid'] then>looking at my member profile sees "this"<else> looking at someone else's profile sees "that"</if>
But what if is a custom page?
wow, solved this again, so surprising, it just takes minutes once the higher mind takes over, to solve this for a custom page is to change
$memprofile['uid'] then>
to
$uid then>
Hey man, what's up?