Richie
(Richie Rich)
9 Enero, 2022 06: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 me gusta
Johani
(Joe)
9 Enero, 2022 07: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 Me gusta
Richie
(Richie Rich)
9 Enero, 2022 08:56
3
Well, that’s embarrassing to say the least
Thank you for the solution @Johani
2 Me gusta
system
(system)
Cerrado
8 Febrero, 2022 08:56
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.