Questo componente del tema mantiene anche il comportamento predefinito del lightbox di Discourse, il che significa che facendo clic su una qualsiasi delle immagini queste si apriranno nel visualizzatore lightbox nativo.
Puoi quindi impostare “my theme” nell’esempio sopra come tema predefinito o renderlo selezionabile dall’utente; in entrambi i casi includerà sia Slick che Tiles.
Un grande grazie a tutti coloro che hanno aiutato lungo il percorso:
@dax - Pulsante del compositore @cpradio - Traduzioni dei pulsanti @Mittineague - Gestore ajaxComplete @simon - Gestore api.onPageChange @vinothkannans - Regex URL della pagina dell’argomento @sam - aggiunta di data-theme-* agli attributi consentiti
Segnalazioni di bug, suggerimenti e PR sono benvenuti.
That’s a very good point @kaefert thank you for bringing it up
I will edit both the Slick and Tiles topics and clarify what I meant.
In the meantime, to answer your question:
Tile and Slick act independently. What I meant to say here:
is that there is no conflict between Tiles and Slick. If you want to use both Tiles and Slick at the same time, you can! You just have to install both of them, separately.
If you install both of the same time, you get something like this in the composer:
And if you use both of them in a topic/post you end up with something like this:
The problem I have about activating both at the same time is that I only can set one as default in the admin settings, and can only select one of them in the user settings.
Can you share a little bit more details? The reason why I’m asking is because that looks like a onebox. This theme component only applies styles to images within very specific structure like so
.tiles-initialized {
// all styles are applied here
}
So it should not have any effect on oneboxes at all.
Does the issue still occur if you disable the the theme temporarily?
1- The Facebook onebox plugin is not supported anymore, you don’t need it.
2- No, there should not be any conflict between the two. Tiles only targets specific images but you have to use the button in the composer to make it work
If you’re not sure, check the OP again and let me know if you need more help.
My guess is that subsequent commits to Discourse addressed the issue.
Are you still facing the same problem?
Even better news is that I tinkered a little bit with both Slick and Tiles and they now have much more targeted firing methods that will only fire when needed. Credit here goes to @vinothkannans for the awesome tip.
So if you’re using either Slick or Tiles or both, please update now and let me know if the problem is still there, or if there are any other issues that need to be addressed.