Page 1 of 1

Diagrams

PostPosted: 03 Oct 2004, 12:22
by Volker Pittlik
Those who use the subSilver style have possibly noticed the new "Diag" button. It enables you to post diagrams in a very comfortable way.

Press it, insert a Fen string, press it again and you get a diagram like this one:

[diag]1r1r2k1/ppp2ppp/8/8/3Pq1bN/4P1P1/P2Q1P1P/1RR3K1 w - -[/diag]

Thanks to Cornel Pacurar who has given this mod to us.

The feature will be added to the other styles soon.

Regards

Volker

P.S. The mod can use Fairy Forsythe notation too. I have no idea what to do with that but if you like to see some example go here:

http://wbforum.volker-pittlik.name/diag ... amples.php

Diagrams now enabled in all styles!

PostPosted: 03 Oct 2004, 13:30
by Volker Pittlik
You can use the diagram now in all styles! The help text is only available if you use English as board languge, but you will understand I'm not very keen to change 90+ language files.

The shortcut for the diagram is (alt+k).

Regards

Volker

Re: Diagrams

PostPosted: 04 Oct 2004, 14:24
by Joachim Rang
Great!

Perhaps it is possible to modify the script in such a way, that the FEN-String will be displayed as well? This will greatly reduce the time to import the position in your favorite GUI.

Thank

Joachim

Re: Diagrams

PostPosted: 04 Oct 2004, 15:12
by Volker Pittlik
Joachim Rang wrote:Great!

Perhaps it is possible to modify the script in such a way, that the FEN-String will be displayed as well? This will greatly reduce the time to import the position in your favorite GUI.

Thank

Joachim


I'm pretty sure it is. The script is available here: http://www.geocities.com/vkcrypto/PHP/

Note that the script is supporting fairy chess. To avoid a confusing piece counting to use only the piece placement part of the FEN-String is recommended.

About the out put of the FEN-String: if I post a position I caopy the string and insert it here. It wouldn't be too much work to paste it one times in the diagram and one times below it.

[diag]1r1r2k1/ppp2ppp/8/8/3Pq1bN/4P1P1/P2Q1P1P/1RR3K1 w - - bm f3; id "arasan.4";[/diag]

1r1r2k1/ppp2ppp/8/8/3Pq1bN/4P1P1/P2Q1P1P/1RR3K1 w - - bm f3; id "arasan.4";

However to modify the script would be easier. Franz Huber has promised to take a look at it. I will do too (but I'm not experienced with php). Maybe you can do too?

Regards
Volker

Re: Diagrams

PostPosted: 04 Oct 2004, 17:19
by F.Huber
Volker Pittlik wrote:However to modify the script would be easier. Franz Huber has promised to take a look at it. I will do too (but I'm not experienced with php). Maybe you can do too?


Na ja, einen ?look at it? hab ich ja schon mal gemacht, aber mit dem konkreten Erstellen eines ge?nderten Skripts schaut es von meiner Seite nicht recht erfolgversprechend aus. :(
Zwar ist mir einigerma?en klar, wie man diese Zahlen unter dem Diagramm korrigieren k?nnte (bzw. sie einfach weglassen), aber das dringendere Problem w?re ja, die eingegebene FEN nochmals auszugeben.
Leider geht das aber nicht anstelle dieser Zahlen, da man sie sonst nicht per Maus markieren und kopieren kann.
Das m??te durch einen zus?tzlichen Skript-Befehl erfolgen, aber mit dieser PHP-Sprache kenne ich mich auch ?berhaupt nicht aus. Normalerweise w?rde ich in diesem Fall einfach mit ?Versuch und Irrtum? arbeiten (meistens auch mit Erfolg! :) ), aber ich w??te nicht, wie ich hier auf meinem Rechner so ein ge?ndertes PHP-Skript ?berhaupt zum Laufen bringen k?nnte!?
Es wird also wieder mal an Dir h?ngenbleiben, Volker ... :wink:

Gr??e,
Franz.

Re: Diagrams

PostPosted: 04 Oct 2004, 17:56
by Volker Pittlik
F.Huber wrote:... aber ich w??te nicht, wie ich hier auf meinem Rechner so ein ge?ndertes PHP-Skript ?berhaupt zum Laufen bringen k?nnte!?
Es wird also wieder mal an Dir h?ngenbleiben, Volker ... :wink:

Gr??e,
Franz.


To test at your own machine you need a) a webserver (for example Apache) and a local installation of php. Apache is running here meanwhile but php offers strong resistance.

To change the script on the server without testing ended in the expected result: diagram not displayed :wink: .

If all this is running I'll try again.

Volker