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
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
mögen das
teilten dies erneut
✅ Her(r) Bern 🇺🇦🇪🇺🇮🇷
Als Antwort auf grischa • •grischa mag das.
grischa
Als Antwort auf ✅ Her(r) Bern 🇺🇦🇪🇺🇮🇷 • • •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.. 😀
✅ Her(r) Bern 🇺🇦🇪🇺🇮🇷 mag das.
Hypolite Petovan
Als Antwort auf grischa • • •mögen das
grischa und ✅ Her(r) Bern 🇺🇦🇪🇺🇮🇷 mögen das.
grischa
Als Antwort auf Hypolite Petovan • • •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. 🙂
Hypolite Petovan
Als Antwort auf grischa • • •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.
grischa mag das.
grischa
Als Antwort auf Hypolite Petovan • • •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! 😊
Hypolite Petovan mag das.
grischa
Als Antwort auf Hypolite Petovan • • •* 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?
Hypolite Petovan mag das.
Hypolite Petovan
Als Antwort auf grischa • • •grischa
Als Antwort auf Hypolite Petovan • • •grischa
Als Antwort auf Hypolite Petovan • • •Hypolite Petovan mag das.
grischa
Als Antwort auf Hypolite Petovan • • •Hypolite Petovan mag das.
grischa
Als Antwort auf grischa • • •Updated my PR anyways, as there where test files added to the addon. 🙄😀
Now I think the the PR is fine.
Hypolite Petovan mag das.
grischa
Unbekannter Ursprungsbeitrag • • •Aber ich denke, ich habe es bald. 😊
✅ Her(r) Bern 🇺🇦🇪🇺🇮🇷 mag das.
grischa
Als Antwort auf grischa • • •✅ Her(r) Bern 🇺🇦🇪🇺🇮🇷 mag das.
grischa
Unbekannter Ursprungsbeitrag • • •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..
mögen das
✅ Her(r) Bern 🇺🇦🇪🇺🇮🇷, Hypolite Petovan und Carsten Raddatz mögen das.
✅ Her(r) Bern 🇺🇦🇪🇺🇮🇷 hat dies geteilt.
Carsten Raddatz
Als Antwort auf grischa • • •grischa mag das.
grischa
Als Antwort auf Carsten Raddatz • • •Muss noch mal drüber schrubben, hat noch kleinere Macken, aber ist schon recht brauchbar für das erste AddOn.. 😀
grischa
Als Antwort auf grischa • • •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. 😊
Tobias
Als Antwort auf grischa • • •grischa mag das.
grischa
Unbekannter Ursprungsbeitrag • • •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
Admin (of friendica.utzer.de)
Unbekannter Ursprungsbeitrag • • •Test post with some pictures.
one
two
three
Admin (of friendica.utzer.de)
Unbekannter Ursprungsbeitrag • • •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.
grischa
Als Antwort auf Admin (of friendica.utzer.de) • • •If so: You may have a cache problem. Clear cache in order to load the updated javascript files. 🙂
Admin (of friendica.utzer.de)
Als Antwort auf grischa • • •grischa
Als Antwort auf Admin (of friendica.utzer.de) • • •