Damus

Recent Notes

Random Penguin · 5w
Should there be a "Pages" widget too? In working on the drop-down selector to Register different account types I got sidetracked making a "Pages Widget" like the existing "Groups Widget." One nic...
Random Penguin profile picture
I've been working on making it look right in Vier and got sidetracked by the fact the "Groups" widget does not appear in Vier's left-hand sidebar, only in the right-hand "discovery" sidebar. I'll be changing that. For consistency and to make sure the expand/collapse works right it needs to only appear in the left-hand sidebar where uses can actually control its position or whether it appears at all. There was also some stylesheet strangeness hiding some widget elements for no apparent reason.

I'm not planning to make this work in Duopuntozero, Quattro, or Smoothly as it is my understanding those themes are deprecated and it looks like nothing really works in them anymore under Friendica 2026.01.
Random Penguin profile picture
Should there be a "Pages" widget too?




In working on the drop-down selector to Register different account types I got sidetracked making a "Pages Widget" like the existing "Groups Widget."

One nice thing about the "Groups Widget" is that little [+] that takes you to the Register form to create your own Group. But there isn't anything like that for creating a PAGE. So that was my primary reason for creating the new widget. But it's also nice to have a list of Pages you're following right there in the sidebar. It shows both "Organization" and "News" page account types.

And I made the Pages Widget sortable like everything else in that sidebar. Because this isn't a mock-up, it's functional on my Dev Server. I've only tested it in Frio/Bookface. I still need to check it in Vier.

Hopefully there wasn't some fringe technical reason a Pages Widget didn't already exist.

#Friendica #dev #widget @Friendica Developers

2
Random Penguin · 5w
I've been working on making it look right in Vier and got sidetracked by the fact the "Groups" widget does not appear in Vier's left-hand sidebar, only in the right-hand "discovery" sidebar. I'll be changing that. For consistency and to make sure the expand/collapse works right it needs to only appe...
Random Penguin · 5w
PR is now here: github.com/friendica/friendica…
Random Penguin · 5w
This was a comment on my other post but I want to raise it as its own issue as to whether this solution addresses the problem of new users not knowing how to create a Page or Group on Friendica?#Frien...
Random Penguin profile picture
Okay, I've incorporated the suggestions and I've got it working on my Dev Server.

So the final product will use human-readable URL parameters, so if it is "?type=group" only the three Group options will be in the dropdown list. And I did something similar for the "Page" and "Personal" options. No/invalid params means it shows the whole list of account type options. Trimming the list and pre-selecting is now handled on the backend in PHP rather than on the front-end with JS.

I'll try to put this together into a PR sometime this weekend.
Random Penguin · 5w
This was a comment on my other post but I want to raise it as its own issue as to whether this solution addresses the problem of new users not knowing how to create a Page or Group on Friendica?#Frien...
Random Penguin profile picture
Out of curiosity, is there some particular reason to hide the label on password fields? Both the core and theme field_password.tpl templates have this in them:
{{if $label != false}}
<label for="id_{{$field.0}}">{{$field.1}}{{if $field.4}} <span class="required" title="{{$field.4}}">*</span>{{/if}}</label>
{{/if}}

It's easy to override it by putting {{assign name="label" value="true"}} before the template call, I just don't understand why it normally hides the password field label?
Random Penguin · 5w
This was a comment on my other post but I want to raise it as its own issue as to whether this solution addresses the problem of new users not knowing how to create a Page or Group on Friendica?#Frien...
Random Penguin profile picture
Is there any reason I shouldn't be exposing the account type and page flag data on the front-end?

The way I wrote my mod each option has a numerical value. The first digit represents the account type and the second the page flag. So any URL with parameters to auto-select an account type from the dropdown would be like ?type=32.

But it could also be written to use strings for the option values and then equate those to numbers on the backend, so then the URL with params would be like ?type=group.
Andy HΞ3 · 5w
Nice nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqjyfhtfwc40hrc7pxrxvp5ztve3nz4lc4yrxguq2saxpycwmre78q6m9q72 I think the account types in THIS drop down menu should use clearer logical term...
Random Penguin profile picture
@Andy HΞ3 I agree with that. I was considering:

Personal (standard account)
Personal Soapbox (auto-approve Follow requests)
Personal Love-all (auto-approve Friend requests) Organization Page
News Page
Public Group
Restricted Group
Private Group (experimental)


Not sure about including the explanations behind Soapbox and Love-all though.
Random Penguin profile picture
This was a comment on my other post but I want to raise it as its own issue as to whether this solution addresses the problem of new users not knowing how to create a Page or Group on Friendica?#Friendica @Friendica Developers
RE: dillyofapickle.com/objects/8aa…

7
Michael 🇺🇦 · 5w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqjyfhtfwc40hrc7pxrxvp5ztve3nz4lc4yrxguq2saxpycwmre78q6m9q72 Looks great.
Andy HΞ3 · 5w
Nice nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqjyfhtfwc40hrc7pxrxvp5ztve3nz4lc4yrxguq2saxpycwmre78q6m9q72 I think the account types in THIS drop down menu should use clearer logical terms. I am not suggesting to rename the account types, but to think about whether a slightly modified ...
Andy HΞ3 · 5w
Yes, something like this. It should be succinct, I'd say. If you have a real explanation, you may not need the "Personal". Personal Soapbox (auto-approve Follow requests) Love-all (auto-approve Friend requests) Organization Page News Page Public Group Restricted Group Private Group (experimental) ...
Random Penguin · 5w
Is there any reason I shouldn't be exposing the account type and page flag data on the front-end? The way I wrote my mod each option has a numerical value. The first digit represents the account type and the second the page flag. So any URL with parameters to auto-select an account type from the dr...
Random Penguin · 5w
Out of curiosity, is there some particular reason to hide the label on password fields? Both the core and theme field_password.tpl templates have this in them: {{if $label != false}} <label for="id_{{$field.0}}">{{$field.1}}{{if $field.4}} <span class="required" title="{{$field.4}}">*</span>{{/if}...
Random Penguin · 5w
Okay, I've incorporated the suggestions and I've got it working on my Dev Server. So the final product will use human-readable URL parameters, so if it is "?type=group" only the three Group options will be in the dropdown list. And I did something similar for the "Page" and "Personal" options. No/i...
Random Penguin · 5w
PR submitted here: github.com/friendica/friendica…
Random Penguin · 6w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpquz3t8t9gyzt64ul694jrv2qmytlf42wlthqyml4dx046vqe8z57q296wag In the Booklook theme I'm working on I've been trying to figure out how to add set-up...
Random Penguin profile picture
I poked around a bit in the code. This isn't a "wizard" like I was talking about, but it is possible to create an additional account with a specific account type. Here I've added a drop-down menu for selecting the Account Type when creating the additional account. And this drop-down, like the password box below it, only appears if you're already logged in and the server allows additional accounts:



Then you just select the account type from the drop-down:

And the new account is created with the correct account-type and page-flags in the database. Implementing this was actually really easy and only requires editing three files: two in the core and one in the Frio theme. I could also add a script to auto-select from the list if the link was like /register?type=32 which would be a "Public Group" (type 3, flag 2).Thoughts? Would this be enough to end user confusion over how to create a Page or a Group account?


Random Penguin profile picture
@Friendica Developers

In the Booklook theme I'm working on I've been trying to figure out how to add set-up wizards for alternate account types since it's so opaque new users can't figure out how to do that.

One wizard would be for creating an Organization page and another for a Group. I suppose I could also create one for a "News" account, though I'm not sure if that account type has much difference from an "Organization" account.

I guess the first up-front question I should ask is if it's even possible to create a new account with an account type of something other than zero? So you don't have to log into that account and go to Settings > Account > Advanced Account Types and change it to News, Organization, or Group manually.

If it's not possible to create an account with different account type I guess there'd be no point in trying to make a set-up wizard.

But if there IS a way to do it, these wizards would require creating custom template forms called by custom PHP modules/classes. I see that there is actually a "route_collection" hook "that should be used to add addon routes pointing to classes." I assume it could also be used for a theme not just an addon?

It also says "Notice: the class whose name is provided to the route handler must be reachable via auto-loader." I don't know what that means.

Actually I have no idea how you use this at all.

I've looked at the paths to modules defined in /static/routes.php but that hasn't really helped me figure out how to use this hook. The documentation could really benefit from some example code for each hook.

It would probably be easier to implement a wizard for sub-account types in the Friendica core than in a theme anyway, but I thought I'd ask before I waste too much time on it.
2
Michael 🇺🇦 · 6w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqjyfhtfwc40hrc7pxrxvp5ztve3nz4lc4yrxguq2saxpycwmre78q6m9q72 I would love to see something like this in the core, at least for groups, so that this could be called by the group widget. Could you create it for the core? If you need support for that...
Random Penguin · 6w
I poked around a bit in the code. This isn't a "wizard" like I was talking about, but it is possible to create an additional account with a specific account type. Here I've added a drop-down menu for selecting the Account Type when creating the additional account. And this drop-down, like the passw...
joseph · 9w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqjyfhtfwc40hrc7pxrxvp5ztve3nz4lc4yrxguq2saxpycwmre78q6m9q72 I looked at it and they have ambitious plans. Theyhave 6 levels of types fo sites you...
Random Penguin profile picture
@joseph
I did not see anything about being compatible wit activity pub or other social media similar systems.

Right on their project homepage it reads:Connect beyond boundaries
Join a network of millions across Mastodon, PeerTube, Mobilizon, and the wider fediverse using ActivityPub. Protocol bridges also connect you with Bluesky and beyond, breaking down walls between social platforms.


If you look in their "Ecosystem" section it appears that protocol connections are done through Extensions. Currently only ActivityPub and Bluesky.

bonfirenetworks.org/