Former Member
inherit
guest@proboards.com
251114
0
Nov 22, 2024 10:51:26 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jun 16, 2021 20:06:02 GMT -8
i like to added anything that will make it so it will hide the area where no one filled out is this the code
.mini-profile .info:empty { display: none; }
and where do it go on my board please
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Jun 17, 2021 7:42:20 GMT -8
i like to added anything that will make it so it will hide the area where no one filled out is this the code .mini-profile .info:empty { display: none; } and where do it go on my board please Hi @marti1977 That would go in the Style Sheet for the theme(s). Generally placing modifications at the bottom (along with a comment regarding purpose) makes it easier for you to keep track of changes you've made. But is this modification actually needed? Normally, when a member hasn't filled out an item (for instance a custom profile field) in their profile, it doesn't display.
|
|
Former Member
inherit
guest@proboards.com
251114
0
Nov 22, 2024 10:51:26 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jun 19, 2021 17:49:49 GMT -8
i placed codes in the mini profile to added location, birthday and etc
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Jun 20, 2021 6:25:48 GMT -8
@marti1977,
It would probably help if you posted your current mini-profile template code here inside of [code][/code] tags so that it can be looked at. From that, someone should be able to see what can be done and give you a fix.
|
|
Former Member
inherit
guest@proboards.com
251114
0
Nov 22, 2024 10:51:26 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jun 20, 2021 18:51:25 GMT -8
Lynx<div class="$[miniprofile_class]"> $[user]<br /> {if $[user.is_guest]}Guest<br />{/if} {if $[user.is_deleted]}<em>Deleted Member</em><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} <br> <br> Location: $[user.location] <br> <br> Birthday: $[user.birthday] <br> <br> Age: $[user.age] <br> <br> Website: $[user.website] <br> <br> Likes: $[user.likes] </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}
|
|
Former Member
inherit
guest@proboards.com
251114
0
Nov 22, 2024 10:51:26 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jun 20, 2021 18:53:43 GMT -8
or should i use the custom Profile fields instead?
|
|
Kami
Forum Cat
Posts: 40,198
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,198
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jun 20, 2021 19:06:12 GMT -8
or should i use the custom Profile fields instead? Is what you're trying to do hide the Location etc text if it's not filled in? You don't need to use custom fields for that, if so (: You have to wrap it in a conditional to see if the condition is true, like so: {if $[user.location]}Location: $[user.location]{/if} ^ This says that if the user has filled in their user location, it will show the text "Location:" followed by the value inputted into the Location field. You can do the same pattern for every variable you're looking to display as well, replacing $[user.location] with the appropriate variable. Does that help?
|
|
Former Member
inherit
guest@proboards.com
251114
0
Nov 22, 2024 10:51:26 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jun 20, 2021 20:06:16 GMT -8
yes thank you so much Kami
|
|
Kami
Forum Cat
Posts: 40,198
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,198
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jun 20, 2021 20:54:42 GMT -8
yes thank you so much Kami Of course, any time!
|
|