lichess.org
Donate

Embedded Lichess games in forum or messages

Am i mistaken, or the user preference for move list appearance, i.e. icons versus letters, do not apply to embedded or linked games within forum or user messages. It seems to default to icons.

can you confirm, that this was intended.

whether there are plans to apply users preferences to those contexts, in the future.

if no plans, i hereby suggest, that feature.

I may also be wrong, in the sense that the rendered link might be using the preferences from the user posting the link.

thanks for clarifications
I checked by sending myself one of my own games by private messaging to myself, lots of myself, but that shortcuts the number of variables, and help to conclude that

If the preferences of either the user, one of the players of the embedded game , or the user viewing the post were being applied for the content of embedded object, then in my experiment, (game with computer), my move list preference being "pieces" as letters not tiny fuzzy "icons" (did i mention tiny?), would be applied. And it is not.

ding! why don't i try here:

lichess.org/embed/cmwCoRYn
There is more: DevTools (Chrome) inspection, live DOM tree browser:

there is this node, both in private message and forum post inspector DOM tree.

iframe class="analyse game" src = "https:// lichess.org/ embed/ [cmwCoRYn] ?theme=wood3 & amp; bg=dark"

The embedding pages being different, the selector paths before the embedded iframe are a bit different. But at first glance the children seem identical.

The only thing that I notice is that there is an almost complete html page inside the iframe node, and that the immediate node called #document, is painted white by Devtools, and can't be played with (only break point, or temp variable assignment). The first html tags are html containing head and body, the rest is very parallel to an analysis page without engine or opening explorer modules.

So, if Lichess members with front-end knowledge or experience are reading:

is the iframe a barrier to application of user profile preferences or local customization modifications?
Is is crippled, even when used with Lichess web site?
Is this intended, or a constraint of iframes?
Are there other possible embedding mechanisms for within Lichess linking?
no sound coming from the board, is that also because the iframe does not allow?
"If the preferences of either the user, one of the players of the embedded game , or the user viewing the post were being applied for the content of embedded object, then in my experiment, (game with computer), my move list preference being "pieces" as letters not tiny fuzzy "icons" (did i mention tiny?), would be applied. And it is not."

I reread, and could not understand my post, too much caveat shielding or attempted tension relief. another try:

If posting.user.preference or viewing.user.preference were used in viewing of embedded game, then the above experiment, with the same user at both ends, would have shown letters in move list. Since only tiny icons, we conclude that neither posting or viewing user preferences are being applied to objects within embedding. That was a suggested possibility in op.

The rest is about finding why preferences that apply to same object are being applied in Lichess pages, but not in otherwise similar embedded versions? Me being ignorant of well know embedding mechanisms, i continue my search for answers.
@berserkasifuweremad

This thread is having an echo in the CSS JS coding team forum, any user on the team or not, can still put here their questions, comments, solutions, pointers, (what else?) for as long as it is not closed.

But the detailed coding, learning, trial and errors, is going to be in the team forum (call that thread a workshop?).
The link to the CSS, JS coding in lichess team sub-forum is the following:
lichess.org/forum/team-css-javascript-coding-on-lichess

there, we have found a solution for a different problem involving styles in such embedded pages or objects.
If some passerby is interested in modifying styles within content of embedded links, content that is wrapped inside an iframe tag, please consider the solution presented for that problem in the following posts:

lichess.org/forum/team-css-javascript-coding-on-lichess/static-nav-bar#9
lichess.org/forum/team-css-javascript-coding-on-lichess/static-nav-bar#10

the snippets there can be adapted to other selectors targeting the embedded objects,
and hence the move list style hopefully.

I may continue in that direction, but i will keep the discussion over there, and link to the solution in a future post here.

This topic has been archived and can no longer be replied to.