Zum Inhalt der Seite gehen


Geilomat! 😀 Mein erstes #Friendica #Addon ist fertig! 🥰

Mich nervte immer, dass Bilder, die an Posts hängen, einfach direkt verlinkt sind und mich somit jedes mal aus dem Lese-Flow rissen. Sie werden direkt geladen und man musste dann immer mit dem Zurück Button in die Timeline zurück. Oder man nutzte Tabs, was ich aber ständig vergaß (und "handlich" ist halt anders).

Mein Addon #Fancybox bindet nun die gleich lautende jQuery Library ein und ersetzt die Image Links so, dass sie in einem schicken Overlay dargestellt werden. Das Overlay erinnert mich sehr stark an das, was auch in Mastodon hoch poppt. Evtl nutzen die diese Lib auch?

Wer sich mein AddOn installieren will: Ich habe es in ein öffentliches #Codeberg Repo gepackt.

https://codeberg.org/brockhaus/friendica-addons

teilten dies erneut

Als Antwort auf grischa

@grischa macht echt was her. Ich mag die Option alle Bilder im Stream als Gallerie anzeigen zu lassen. Gute Arbeit und danke :)
Als Antwort auf ✅ Her(r) Bern 🇺🇦🇪🇺🇮🇷

Oh wow! Schon eingebunden? Cool! 😀
Hat noch Macken, vor allem, wenn mehr als ein Bild dran hängt, aber das mache ich auch noch fertig. Melde mich dann noch mal, wenn ich eine neue Version ins Repo haue.. 😀
Als Antwort auf grischa

@grischa Oooh, that's awesome, please submit it to the official Friendica Addon repository, we might even want this feature to be part of the core.
Als Antwort auf Hypolite Petovan

Love that you like it! 🥰
I have to tune it a little more, does not work in all situations (but most already). Will give you a ping, when I think it is ready (enough).
It is a little bit hard to push it to github, as I try to avoid github. But we'll find a way. 🙂
Als Antwort auf grischa

@grischa I'm sorry about that, we're in the process of moving from GitHub to Gitea where we have a Friendica instance up and running.

About the addon, it's already great, but currently all the images present on the page are put in the same carousel, and I'd prefer if only the images of a single post were in the same carousel, do you think you can do this?

Let's say you have Post 1 with Image 1-1 and Image 1-2 and Post 2 with Image 2-1. When I expand Image 1-1 in the Fancybox, I'd like to be able to cycle to Image 1-2, but not to Image 2-1. Conversely, Image 2-1 should be on its own when clicked, with no way of cycling to Image 1-1 or 1-2 without closing the carousel first.
Als Antwort auf Hypolite Petovan

About github: No problem. We'll find a way. 😀

About the carousel: Yes. This is one problem. The other: Only the first image of posts are in that carousel. Multiple images per post aren't.

I am on it! 😊
Als Antwort auf Hypolite Petovan

I'm done with the first version. 🙂

* Multiple attachments of a post go all to that gallery
* Each post has its own gallery
* You can loop through the gallery

All pushed to my repo, so you can test it. About putting it into the official repo: I guess you want me to do a pull request, right?
Als Antwort auf Hypolite Petovan

Hmm.. But in the administration my addon list is empty now. I have to check why this is the case. So maybe wait a little with my PR.
Als Antwort auf grischa

Okay. That was a false alert. My friendica had an hickup. After relogin everything was fine.
Updated my PR anyways, as there where test files added to the addon. 🙄😀
Now I think the the PR is fine.
Unbekannter Ursprungsbeitrag

grischa
Ja genau. Ist mir auch gerade aufgefallen. Das mache ich auch noch schick, dann gibt es ein Update.. Knobele noch an der passenden Regulare Expression, da lege ich mir gerne mal die Karten.. 😁
Aber ich denke, ich habe es bald. 😊
Unbekannter Ursprungsbeitrag

grischa
Danke schön! 🥰
Mir gefällt Friendica halt gar nicht schlecht, aber ich hatte ja einen langen Post geschrieben, was mich da stört. Eines war die Bilder Geschichte. Und nur meckern ist uncool, erst recht, wenn die Coder bereits Hilfe angefragt haben.. 😊
Als nächste mache ich vermutlich an Frio rum. Das muss doch irgendwie schicker zu machen sein. Also mehr Optionen..
Als Antwort auf grischa

@grischa Das kommt wie gerufen. Gerade bei Friendica fiel das Verhalten auf; eigentlich ist das ein doofes Überbleibsel wie aus den 1990ern und nicht zeitgemäß. Progressiv gefixt, danke!
Als Antwort auf Carsten Raddatz

Jau, das hat mich echt hefig genervt. Und ich wollte mir mal ansehen, wie die AddOn Programmierung bei Friendica so funktioniert.. ^^

Muss noch mal drüber schrubben, hat noch kleinere Macken, aber ist schon recht brauchbar für das erste AddOn.. 😀
Als Antwort auf grischa

So! Ich habe eine neue Version in das Repository hinterlegt.

Anpassungen:
* Mehrere Bilder eines Posts kommen jetzt alle in die Gallerie, nicht nur das erste.
* Pro Post gibt es jetzt jeweils eine eigene Gallery. Es werden nicht mehr alle Bilder der Seite in die Gallery gepackt.
* Wenn es mehr als ein Bild gibt, dann kann man durch die Gallery loopen (also vom letzten ins erste und umgekehrt).

So ist das glaube ich vollständig. 😊
Unbekannter Ursprungsbeitrag

grischa
@admin
It is already included minus the newer stuff. But it will be, there are some remarks to my PR I have to check first.
@developers
Unbekannter Ursprungsbeitrag

Admin (of friendica.utzer.de)

Test post with some pictures.

one

two

three

Unbekannter Ursprungsbeitrag

Admin (of friendica.utzer.de)

ah, it does not work here, it show the old image view overlay in that case. Not sure why.

Looks like this:

There is no forward/backward button.

Als Antwort auf Admin (of friendica.utzer.de)

Do you have the new fancybox addon installed that was released today?
If so: You may have a cache problem. Clear cache in order to load the updated javascript files. 🙂
Als Antwort auf grischa

One disadvantage seems to be that you can not save images anymore when using a mobile phone with Firefox and Android, right?

Diese Webseite verwendet Cookies zur Erkennung von wiederkehrenden Besuchern und eingeloggten Nutzern. Durch die weitere Benutzung der Webseite akzeptierst du die Verwendung der Cookies.