inherit
253354
0
Dec 19, 2023 17:14:27 GMT -8
whatsitsgalore1
16
March 2018
whatsitsgalore1
|
Post by whatsitsgalore1 on Sept 8, 2020 14:35:13 GMT -8
Forum URL: worldsofdisney07.proboards.comI hope this is posted in the right section; every time I try to post it, I get a warning that I'm in the wrong place. This is my third try; if it's wrong, please forgive me. I'll be happy to re-create the thread in the correct location if someone will just point the right place out to me. ******** I made some alternate skins for my forum, nothing elaborate, just different colors and a different main image. In every one of those skins, the "Location" notation underneath a member's icon disappears. Just to make it crystal clear: When a member posts, their name and photo appears to the left of their post. Under the photo is: Number of Posts Location Member is online The "Location" part is not visible on any but the default skin, though there is a space for it. How can I make this show up on every skin?
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Sept 8, 2020 17:28:22 GMT -8
Hi whatsitsgalore1 You'll need to add this to the Mini-Profile layout template for any theme you want the user location to be displayed. {if $[current_user.is_member] && $[user.location]}<br />Location: $[user.location] {/if} Place it after {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} but before {if $[user.is_online]}<br /><span class="italic">Member is Online</span>{/if}
|
|
inherit
253354
0
Dec 19, 2023 17:14:27 GMT -8
whatsitsgalore1
16
March 2018
whatsitsgalore1
|
Post by whatsitsgalore1 on Sept 8, 2020 18:03:49 GMT -8
Okay, sounds like something I can do if you'll just confirm that I'm in the right place. See, I just used the control panel to make the skins, clicking on colors I wanted and such. You know, the way people do it who don't know what they're doing.
So, if I go to Admin Homes> Themes> Advanced Styles & CSS and then click on the Style Sheet tab, is that where I have to search for the spot to put in the correct code?
If not, could you tell me exactly how to get to the place you mean? Thanks.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Sept 8, 2020 18:40:20 GMT -8
Hi whatsitsgalore1 From your Admin panel, navigate: Admin Home> Themes> Layout TemplatesSelect the desired theme in the dropdown to the right of Current ThemeClick on Mini-ProfilePlace your cursor after {/foreach} on line 27 and hit Enter on your keyboard. This will create a blank line on line 28. Paste this into the blank line: {if $[current_user.is_member] && $[user.location]}<br />Location: $[user.location] {/if} Click the Save Changes button at the bottom of the page or the Save Theme button near the top. Please let me know if this gets you the desired results.
|
|
inherit
253354
0
Dec 19, 2023 17:14:27 GMT -8
whatsitsgalore1
16
March 2018
whatsitsgalore1
|
Post by whatsitsgalore1 on Sept 9, 2020 13:21:16 GMT -8
Oh, wow, that was a much more detailed answer than I expected. But it did confirm that I was in the wrong place (good, 'cause my next questions was going to be Why can't I find the necessary text?)
I did it for one of the skins, and it seems to have worked perfectly. Thank you for taking that much time on such a small matter, but it was bugging one of my members.
|
|
inherit
253354
0
Dec 19, 2023 17:14:27 GMT -8
whatsitsgalore1
16
March 2018
whatsitsgalore1
|
Post by whatsitsgalore1 on Sept 14, 2020 12:36:40 GMT -8
Just to make it clear: your fix worked, and all is well. Thanks again.
|
|
inherit
253354
0
Dec 19, 2023 17:14:27 GMT -8
whatsitsgalore1
16
March 2018
whatsitsgalore1
|
Post by whatsitsgalore1 on Dec 14, 2020 17:18:17 GMT -8
4 months later, and I see this still is not working as well as I thought. It seems to work sometimes, if that is even possible.
Today I visited 2 different skins, and couldn't see the "Location" notation on either one. I checked, and the string of characters indicated in the above instructions is there on the correct line.
So...is there anything else I can try?
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Dec 14, 2020 22:48:20 GMT -8
4 months later, and I see this still is not working as well as I thought. It seems to work sometimes, if that is even possible. It's absolutely possible for it work 'sometimes'. If you look carefully at the coding ... {if $[current_user.is_member] && $[user.location]}<br />Location: $[user.location] {/if} The {if} is dependent upon the current user being a (logged-in) member. AND (&&)The $[user.location] variable must be valid. In other words, the user who made the post has edited their profile and disclosed their location. Unless both of these things are true, the Location: text and the location the user disclosed in their profile will not be displayed.
|
|
inherit
253354
0
Dec 19, 2023 17:14:27 GMT -8
whatsitsgalore1
16
March 2018
whatsitsgalore1
|
Post by whatsitsgalore1 on Dec 16, 2020 17:37:16 GMT -8
That makes sense (you should know that this coding is foreign to me, so I could see those things, but couldn't translate them into anything meaningful).
Now, in my profile, I do have the location slot filled in. So shouldn't that mean I can see my own location? I am certainly a member and logged in.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Dec 16, 2020 21:05:42 GMT -8
That makes sense (you should know that this coding is foreign to me, so I could see those things, but couldn't translate them into anything meaningful). Okay, so we made a small step forward in your understanding of how {if}s work in the templates. Now, in my profile, I do have the location slot filled in. So shouldn't that mean I can see my own location? I am certainly a member and logged in. It should mean that ... provided you're viewing the forum using the desktop version (template modifications don't affect the mobile version). If you're viewing the forum, logged-in, in desktop mode using a theme that has this line in the mini-profile: {if $[current_user.is_member] && $[user.location]}<br />Location: $[user.location] {/if} ... there is one other possibility on how things might go wrong. If that line is within another {if} loop where the condition(s) are not met, it won't display. If you'd like to copy/paste the entire contents of the Mini-Profile layout template of the theme where your location doesn't display, I can look it over and determine if a problem exists.
|
|
inherit
253354
0
Dec 19, 2023 17:14:27 GMT -8
whatsitsgalore1
16
March 2018
whatsitsgalore1
|
Post by whatsitsgalore1 on Dec 17, 2020 10:18:45 GMT -8
I am not using a mobile device; I'm using a laptop.
Now, if the if is within another if, I can't find it. But that doesn't mean it's not; it can take me hours to find a simple html error like that. So here is the entire mini-profile for one skin:
<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.rank.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>
{if $[current_user.is_member] && $[user.location]}<br />Location: $[user.location] {/if}
{/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>
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Dec 17, 2020 11:33:55 GMT -8
I am not using a mobile device; I'm using a laptop. Now, if the if is within another if, I can't find it. But that doesn't mean it's not; it can take me hours to find a simple html error like that. So here is the entire mini-profile for one skin: Hi whatsitsgalore1 That mini-profile template works just fine. All the themes on worldsofdisney07.proboards.com do display the location on the mini-profile for members who entered their location except the Good and Evil theme.
|
|
inherit
253354
0
Dec 19, 2023 17:14:27 GMT -8
whatsitsgalore1
16
March 2018
whatsitsgalore1
|
Post by whatsitsgalore1 on Dec 17, 2020 18:23:25 GMT -8
Cool. Then how do I make the Good & Evil theme work, too?
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Dec 18, 2020 7:39:31 GMT -8
From your Admin panel, navigate: Admin Home> Themes> Layout Templates Select Good and Evil in the dropdown to the right of Current Theme Click on Mini-Profile Copy the entire contents of the layout template. Paste that into a post in this thread.
I'll make any necessary corrections and test it. Then I'll paste that into a post in this thread.
|
|
inherit
253354
0
Dec 19, 2023 17:14:27 GMT -8
whatsitsgalore1
16
March 2018
whatsitsgalore1
|
Post by whatsitsgalore1 on Dec 18, 2020 10:40:48 GMT -8
Okay, here it is:
<div class="$[miniprofile_class]">
$[user]<br />
{if $[user.is_guest]}Guest<br />{/if}
{if $[user.group]}
$[user.group.name]<br />$[user.rank.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}{if $[user.location]}<br />Location: $[user.location]{/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>
|
|