paul999 wrote: When there will be a new version released? I want it to use on a forum, but there are to much bugs in this version .
Wait, in this weekend, i'll try to release it...
Code: Select all
White
a2-a3
h2-h3
b2-b3
Nb1-c3
Nc3xb5
e2-e3
e3-e4
h3-h4
f2-f3
d2-d3
a3-a4
c2-c3
Qd1xd3
Bc1-e3
b3-b4
c3xb4
a4xb5
Ke1-e2
Ke2xe1
e4xd5
Qd3-c3
f3-f4
Ke1-e2
Ke2-d2
f4xe5
Qc3xc7
Black
b7-b6
g7-g6
b6-b5
e7-e5
a7-a5
g6-g5
Nb8-a6
g5xh4
Bc8-b7
Bb7-c6
Na6-b4
Nb4xd3+
d7-d5
Ng8-f6
a5xb4
Bc6xb5
Ra8xa1+
Ra1-e1+
Qd8-a8
Qa8xd5
Qd5-a2
Qa2-b1+
Qb1xf1+
Qf1xb5
Bf8xb4
Bb4xd2
mr.boo wrote: Open /chess/chess_posting.php
Find this line :and remarks it all, confirmation page will disappear...Code: Select all
684: $template->assign_vars(array( 685: 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">') 686: ); 687: $message = $lang['Chess_played'].'<br /><br />' . sprintf($lang['Click_return_topic'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">', '</a>'); 688: message_die(GENERAL_MESSAGE, $message);
mr.boo wrote: Open posting.php
Find :(I cut the codes, 'coz its too long...)Code: Select all
$chess_set_name = ( !$board_config['chess_override_user_set'] && ... $chess_board_name = ( !$board_config['chess_override_user_set'] && ... // CHESS_MOD END
Delete "!" operand before $board_config[', and the codes will be :On my old codes, I used '0' value in 'chess_override_user_set' means as user can set their own chess set & board.Code: Select all
$chess_set_name = ( $board_config['chess_override_user_set'] && ... $chess_board_name = ( $board_config['chess_override_user_set'] && ... // CHESS_MOD END
Latter I change it, but forgot to change the code , sorry...
mr.boo wrote: replace /chess/includes/chess_posting.php with this :
chess_posting.php.zip
mr.boo wrote: Open : /chess/templates/subSilver/chess_viewtopic_body.tpl
Find :Replace :Code: Select all
<input type='text' name='notation' id='notation' size='8' maxlength='6' onkeyup='type_notation()' class='post'>
I forgot to changed maxlength value, while notation for pawn promotion length is 8!Code: Select all
<input type='text' name='notation' id='notation' size='10' maxlength='8' onkeyup='type_notation()' class='post'>
Code: Select all
White
a2-a4
h2-h4
Ra1-a3
Ra3-e3
Re3-e5
Re5xa5
Ra5xf5
h4-h5
Rh1xh5
Ng1-h3
b2-b4
Bc1-b2
Rh5xh7
Qd1xc1
Nh3-g5
Ng5-f7
Rh7xf7
Nb1-a3
g2-g4
Bf1-h3
Na3-b1
Ke1-d1
Nb1-c3
d2xc3
Kd1-d2
Qc1xh1
Kd2xe2
Qh1-h8
Ke2-e1
Ke1-f1
Kf1-g1
Kg1-h2
Kh2xg2
Qh8-h7+
Kg2-h2
Qh7-h3+
Qh3-g3+
Qg3-g2
f2-f4
Kh2-g1
Qg2-g5
Qg5-f5
Kg1-f2
Rd1xc1
Rc1-d1
Kf2-e1
black
f7-f5
Nb8-c6
Nc6-a5
g7-g6
Bf8-g7
Ng8-f6
g6xf5
Nf6xh5
a7-a5
Rh8-f8
a5xb4
Bg7xb2
Bb2-c1
c7-c5
Qd8-b6
Rf8xf7
Ke8xf7
Ra8xa4
f5xg4
g4xh3
h3-h2
h2-h1
b4xc3
Qb6-a6
d7-d5
Qa6xe2+
Bc8-f5
Bf5-g4+
Ra4-e4+
Bg4-h3+
Re4-e1+
Bh3-g2
c5-c4
Kf7-f6
Kf6-e6
Ke6-d6
Kd6-c6
Re1-e6
Re6-h6+
Rh6-f6
Rf6-e6
Re6-e1+
Re1-c1
Kc6-d6
b7-b5
All bugs fix will includes on next release...Blubibulga wrote: I agree whit .SlimDog.
I still "fights" with this script...dan369 wrote: Please finnish this hack cause its great! Im sure it will be used a lot.
Download link at first post didn't works?sputum wrote: Is there an actual download?
Bug : rock appeared from nowhere (chess castle check bug).SlimDog. wrote: ...A white tower apeared from nowhere... It had been removed before, but it strangely apeared... :/ It apeared in d1...
Code: Select all
if ( $notation == 'e1c' || $notation == 'e1g' || $notation == 'e8c' || $notation == 'e8g' )
Code: Select all
if ( (($notation == 'e1c' || $notation == 'e1g') && $chess_piece == 'WK') || (($notation == 'e8c' || $notation == 'e8g' ) && $chess_piece == 'BK') )
Next release, OK?.SlimDog. wrote: EDIT: And one more think... When there are a lot of moves, chess board table transforms or smt, looks not well... Maybe moves could be in inline frame ; combinated with java scripts or smt. like that. Or it could display only limit number moves and if there is more moves that limit, it could display a link to all moves popup...