bai
Junior Member
I coughed. Then I went into labor.
Posts: 209
inherit
tbsofficial@outlook.com
241711
0
Sept 23, 2018 14:23:39 GMT -8
bai
I coughed. Then I went into labor.
209
February 2017
bai
|
Post by bai on Jul 18, 2018 23:46:59 GMT -8
Forum URL: cxhboards.boards.netI'm trying to figure out if there is a variable available so I can hide (or show) something from members when they are viewing their own profile. Is that possible in the layout templates?
|
|
#eb7100
1480
0
1
Nov 29, 2024 4:58:40 GMT -8
Craig
209,202
September 2001
cmdynasty
|
Post by Craig on Jul 19, 2018 0:46:33 GMT -8
Hi That should be possible using an if state checking if current user is the user, so: {if $[current_user] == $[user]} What you wabt to display {/if}
Thst shoould do it. Place it where you want the content to display.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jul 19, 2018 7:44:43 GMT -8
I would recommend comparing against the user's ID rather than the $[user] variable itself as there's no guarantee the HTML that gets produced by that variable will remain consistent.
|
|
bai
Junior Member
I coughed. Then I went into labor.
Posts: 209
inherit
tbsofficial@outlook.com
241711
0
Sept 23, 2018 14:23:39 GMT -8
bai
I coughed. Then I went into labor.
209
February 2017
bai
|
Post by bai on Jul 19, 2018 11:52:29 GMT -8
thanks guys!
|
|