Richie
(Richie Rich)
2022 年 1 月 9 日午前 6:49
1
Our community members (and I) are wondering why they can’t see their own “Profile Header” image when viewing their own profiles.
They usually want to see how their profile page looks to other people but they have no way of viewing their image once uploaded.
I’m guessing there’s a reason for this but I can’t think what that reason might be
Can anyone shed any light for me so I can let them know?
「いいね!」 1
Johani
(Joe)
2022 年 1 月 9 日午前 7:44
2
The container that has the background is collapsed by default if you’re viewing your own profile. If you click on expand here
you’ll see the background.
It’s collapsed by default if you’re viewing your own profile because you usually care more about the information below the image rather than the image itself - especially on mobile.
If you’d like to override this behavior, you can add something like this in your theme’s common > header
tab.
<script type="text/discourse-plugin" version="0.8">
const discourseComputed = require("discourse-common/utils/decorators").default;
api.modifyClass("controller:user", {
@discourseComputed
viewingSelf() {
return false;
}
});
</script>
「いいね!」 4
Richie
(Richie Rich)
2022 年 1 月 9 日午前 8:56
3
Well, that’s embarrassing to say the least
Thank you for the solution @Johani
「いいね!」 2
system
(system)
クローズされました:
2022 年 2 月 8 日午前 8:56
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.