inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 25, 2013 1:46:05 GMT -8
thenotablenook.com/thread/1442/hoti took an else out in the miniprofile template so a users member group and rank would both show in the miniprofile that took everything but the users displayname and an hr line i have in there out of every members miniprofile, and guests but if the member is in a group their miniprofile is fine i need a way to get the rest of the mini profile back for members who dont belong to a group, and guests this is the else i took out $[user]<br /> {if !$[user.is_member]}Guest<br />{/if} <hr size="2" style="margin:1px" color= #000000 /> {if $[user.custom_title]}<b>$[user.custom_title]</b>{/if} {if $[user.group]} <b>$[user.group.name]</b> <br />$[user.group.stars]<br /> <hr size="2" style="margin:1px" color= #000000 /> { elseif $[user.rank]} <b>$[user.rank.name]</b><br /> {if $[user.rank.stars]} $[user.rank.stars] {/if} {/if}
I want to take the rank and hr line above it out for admin, global, and board moderators only
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 25, 2013 10:45:20 GMT -8
This is because you didn't supply a closing {/if} for the {if $[user.group]} statement.
It should look like this.
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 25, 2013 11:29:17 GMT -8
that was it, i thought i was in alot of trouble, thanks
i tried this real quick but it took the rank out for members, $[user.is_staff] didnt do anything
{if $[user.group]} <b>$[user.group.name]</b> <br />$[user.group.stars]<br /> <hr size="2" style="margin:1px" color= #000000 /> {/if}{if $[user.is_staff]} {if $[user.rank]} <b>$[user.rank.name]</b><br /> {if $[user.rank.stars]} $[user.rank.stars] {/if} {/if} <hr size="2" style="margin:1px" color= #000000/> {/if}
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 25, 2013 11:37:42 GMT -8
Yeah, that's what it does. What are you trying to do now?
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 25, 2013 11:46:46 GMT -8
I want to take the rank and hr line above it out for admin, global, and board moderators only
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 25, 2013 12:39:13 GMT -8
If you want it to only apply to members, add an exclamation point before the "is staff" variable to check if it's false.
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 25, 2013 13:15:43 GMT -8
thanks brian
|
|