| Post Reply | RetroFed Forums Forum Index » PieFed Meta |
| Author | Message | ||
|---|---|---|---|
DeckPacker
piefed.blahaj.zone
DeckPacker@piefed.blahaj.zoneJoined: 2026-03-07 |
UPDATE: In a previous post , I talked about the new community themes feature. From a lot of the commentors, I heard, that you wish, that you would like to have the ability to disable community themes from specific communities and not just in general. Feel free to share your opinion in more details in the comments! |
||
| 20 Original | |||
|
Skavau
piefed.social
Skavau@piefed.social Joined: 2025-03-18 |
I would think entire account personally. I can't think of when I'd want it to be visible on my phone but not my PC. |
||
| 7 | |||
Snoopy
piefed.social
Snoopy@piefed.socialJoined: 2025-02-25 |
I also agree with skavau. i often delete cookie. so i prefer a more lasting solution. |
||
| 4 | |||
DeckPacker
piefed.blahaj.zone
DeckPacker@piefed.blahaj.zoneJoined: 2026-03-07 |
I would think entire account personally. I can't think of when I'd want it to be visible on my phone but not my PC.
Alright, thanks for the feedback! |
||
| 1 | |||
Katherine 🪴
piefed.social
webkitten@piefed.socialJoined: 2025-12-19 |
[deleted]
|
||
| 3 | |||
Snoopy
piefed.social
Snoopy@piefed.socialJoined: 2025-02-25 |
[deleted]
Maybe switch button located somewhere in the topbar ? Or something like mbin for theming (they do a quite good job) ? :) |
||
| 2 | |||
wjs018
piefed.wjs018.xyz
wjs018@piefed.wjs018.xyzJoined: 2025-07-15 |
I wrote previously about how to put this in the session cookie, but if it is going to end up in the db, it probably makes sense to have it be a new table rather than adding a new column onto the user table. It can probably be a really simple table like Some things to take note of while working on this:
As for the UI (often the hardest part), I guess you will probably need some kind of button or form-control in the sidebar. Maybe a button like we do for Join/Leave currently or a checkbox and submit button? Not sure what would be best there. All of that is just my idea for how to put this in the db anyway. @rimu@piefed.social probably has ideas as well or could tell you why all of this is crap. |
||
| 5 | |||
Rimu
Moderator
rimu@piefed.socialJoined: 2024-01-04 |
I wrote previously about how to put this in the session cookie, but if it is going to end up in the db, it probably makes sense to have it be a new table rather than adding a new column onto the user table. It can probably be a really simple table like CommunityBlock since this is essentially a style-only version of that (CommunityStyleBlock perhaps). Some things to take note of while working o...
Agreed |
||
| 4 | |||
DeckPacker
piefed.blahaj.zone
DeckPacker@piefed.blahaj.zoneJoined: 2026-03-07 |
I wrote previously about how to put this in the session cookie, but if it is going to end up in the db, it probably makes sense to have it be a new table rather than adding a new column onto the user table. It can probably be a really simple table like CommunityBlock since this is essentially a style-only version of that (CommunityStyleBlock perhaps). Some things to take note of while working o...
Thank you so much, for this advice!
|
||
| 2 | |||
wjs018
piefed.wjs018.xyz
wjs018@piefed.wjs018.xyzJoined: 2025-07-15 |
Thank you so much, for this advice! I was also planning on doing a separate table for the blocked communities, I didn't think about the deleting part though, so thank you for telling me how that works. As for the UI, I have currently implemented it as an extra section in the community info card at the side (which only shows up if the community has an active theme). I will now be working on impl...
Looks awesome! I always find the UI to be the hardest part, but that looks great. |
||
| 2 | |||
DeckPacker
piefed.blahaj.zone
DeckPacker@piefed.blahaj.zoneJoined: 2026-03-07 |
Looks awesome! I always find the UI to be the hardest part, but that looks great.
Do you know, if there is a way to be able to get the result of my function community.utils.get_community_theme_allowed in the jinja base template when any relevant route is rendered? Because including this as a parameter in every route seems really inefficient. |
||
| 1 | |||
wjs018
piefed.wjs018.xyz
wjs018@piefed.wjs018.xyzJoined: 2025-07-15 |
Do you know, if there is a way to be able to get the result of my function community.utils.get_community_theme_allowed in the jinja base template when any relevant route is rendered? Because including this as a parameter in every route seems really inefficient.
The So, you could have a function for these models that returns whether the style is allowed for that user/community. See something like
Similarly, you just swap some stuff around to add a function under the |
||
| 2 | |||
DeckPacker
piefed.blahaj.zone
DeckPacker@piefed.blahaj.zoneJoined: 2026-03-07 |
The user and community are generally accessible across pretty much every relevant view function and template, so that might work well to stick those kinds of getter functions. So, you could have a function for these models that returns whether the style is allowed for that user/community. See something like User.has_blocked_user() as an example. It could look something like this in the User cla...
That worked, thanks ;) |
||
| 2 | |||
| Post Reply |
Back to top |