13
Mithrandir:
Thanks
a) Maybe I could display a message when a player is checked. By strict interpretation of the rules, though: "Declaring a check is not obligatory." (
FIDE Laws of Chess, article 3.8b).
b) Hmmmm ... I haven't seen that problem. But that popup window was tricky to implement, and could have a bug I missed. It uses a Smarty template (chess_game_promote_popup.html), which is compiled via XoopsTpl::fetch and assigned to a Smarty variable (in game.php), and then the window is opened via Javascript in another template (chess_game_board.html):
w = window.open('', 'pawn_promotion', 'width=180,height=36,left=300,top=300');
Then the piece selected within the window gets passed back via Javascript.
What O/S, browser and screen resolution are you using?