inherit
152167
0
Dec 2, 2012 14:01:58 GMT -8
dislikely
Most Recent Status
239
February 2010
iamquestionable
|
Post by dislikely on Jul 6, 2010 12:50:39 GMT -8
So a user can both have a member group and a rank. Thanks
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 6, 2010 14:47:15 GMT -8
look in [codedatabase] for "staff has normal ranks"
|
|
inherit
152167
0
Dec 2, 2012 14:01:58 GMT -8
dislikely
Most Recent Status
239
February 2010
iamquestionable
|
Post by dislikely on Jul 7, 2010 13:34:54 GMT -8
does this work for members too?
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 7, 2010 18:15:30 GMT -8
yep. the "staff" part is misleading, but it basically means anyone in a group other then default.
|
|
inherit
25142
0
Apr 3, 2019 20:28:05 GMT -8
BrotherHolmes
I'm studying for my A+
741
May 2004
redmage
|
Post by BrotherHolmes on Dec 11, 2013 13:00:34 GMT -8
Is there a v5 version of this code?
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 26, 2024 13:17:40 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 11, 2013 18:25:47 GMT -8
This is a layout template modification now, easypeasy. Just requires a meddling of {if} statements. If you go to admin > structure > layout templates > mini-profile and copy the code here, I can make it so both display
|
|
inherit
25142
0
Apr 3, 2019 20:28:05 GMT -8
BrotherHolmes
I'm studying for my A+
741
May 2004
redmage
|
Post by BrotherHolmes on Dec 14, 2013 11:10:28 GMT -8
This is a layout template modification now, easypeasy. Just requires a meddling of {if} statements. If you go to admin > structure > layout templates > mini-profile and copy the code here, I can make it so both display Here is the code. What language is this? I have never seen this syntax before. <div class="$[miniprofile_class]"> $[user]<br /> {if $[user.is_guest]}Guest<br />{/if} {if $[user.group]} $[user.group.name]<br />$[user.group.stars]<br /> {elseif $[user.rank]} $[user.rank.name]<br /> {if $[user.rank.stars]} $[user.rank.stars]<br /> {/if} {/if} {if $[user.custom_title]}$[user.custom_title]<br />{/if} $[user.warning.bar] <br /> {if $[user.avatar]} <div class="avatar">$[user.avatar]</div><br /> {/if} {if $[user.personal_text.message]} $[user.personal_text]<br /> {/if} {if $[user.is_member]} <div class="info"> Posts: $[user.posts]{if $[user.gender]}<span class="float-right">$[user.gender.image]</span>{/if} {foreach $[user.mini_custom_field]} <br /><span class="$[user.mini_custom_field.content_class]">$[user.mini_custom_field.name]: $[user.mini_custom_field.value]</span> {/foreach} {if $[user.is_online]}<br /><span class="italic">Member is Online</span>{/if} </div><br /> {/if} {if $[user.badges_miniprofile]} <div class="$[user.badges_miniprofile_container_class]"> {foreach $[user.badges_miniprofile]} $[user.badges_miniprofile.icon] {/foreach} </div> {/if} </div>
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 26, 2024 13:17:40 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 14, 2013 11:12:40 GMT -8
Change:
{if $[user.group]} $[user.group.name]<br />$[user.group.stars]<br /> {elseif $[user.rank]} $[user.rank.name]<br /> {if $[user.rank.stars]} $[user.rank.stars]<br /> {/if} {/if}
to:
{if $[user.group]} $[user.group.name]<br />$[user.group.stars]<br />{/if} $[user.rank.name]<br /> {if $[user.rank.stars]} $[user.rank.stars]<br /> {/if}
Should fit what you want! Let me know if there's a problem. As you can see, it's just meddling with {if} statements and is something you can easily pick up yourself for future coding if that's what you wanna do =)
|
|
inherit
25142
0
Apr 3, 2019 20:28:05 GMT -8
BrotherHolmes
I'm studying for my A+
741
May 2004
redmage
|
Post by BrotherHolmes on Dec 20, 2013 11:46:37 GMT -8
Thank you very much! And I get it now. Is there a list somewhere with all the Propboards variables?
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 26, 2024 13:17:40 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 20, 2013 14:42:37 GMT -8
In Layout Templates, the righthand 'tree' has all the variables for that particular template. It changes per the template you are looking at. How it works is anything within the same 'branch' is connected with an underscore and anything in a sub-branch is connected by a dot. so: Hello [/ul] is $[hello.i_am.brady] =)
|
|