Seite 1 von 2

html Interpretation phpBB vs Parsimony Forum

Verfasst: 20.09.2005 21:21
von Major Kottan
Hallo,

Ich versuche mittels html-Code Schachdiagramme (=Grafiken) in mein phpbb-Forum einzufügen.

Ein Parsimony - Forum kann den html-Code korrekt interpretieren und
das Ergebnis sieht so aus:

[ externes Bild ]


in meinem phpBB - Forum wird der Code dagegen nicht richtig interpretiert und das Ergebnis sieht so aus:

[ externes Bild ]

Das Diagramm ist also viel zu breit und offenbar hat es ein Problem mit "& nbsp"


Der eingefügte html-Code sieht so aus:


-------------------------------------------------------------------------------------
<P align="left"><FONT color="black"><TABLE border="0" cellpadding="0" cellspacing="3"><TR><TD><TABLE bgcolor="#000000" border="3" cellpadding="1" cellspacing="0"><TR><TD><TABLE border="0" bgcolor="#BCBCC5" cellpadding="0" cellspacing="0"><TR><TD align="center" width="30" height="30">&nbsp;</TD><TD align="center" width="38" height="30"><B><FONT color="black">a</FONT></B></TD><TD align="center" width="38" height="30"><B><FONT color="black">b</FONT></B></TD><TD align="center" width="38" height="30"><B><FONT color="black">c</FONT></B></TD><TD align="center" width="38" height="30"><B><FONT color="black">d</FONT></B></TD><TD align="center" width="38" height="30"><B><FONT color="black">e</FONT></B></TD><TD align="center" width="38" height="30"><B><FONT color="black">f</FONT></B></TD><TD align="center" width="38" height="30"><B><FONT color="black">g</FONT></B></TD><TD align="center" width="38" height="30"><B><FONT color="black">h</FONT></B></TD><TD align="center" width="30" height="30">&nbsp;</TD></TR><TR><TD align="center"><B><FONT color="black">&nbsp;8&nbsp;</FONT></B></TD><TD bgcolor="#9EC2EF"><IMG src="http://www.marochess.de/php/chesspieces/br1.gif" border="0" alt=" BR " width="38" height="38"></TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE"><IMG src="http://www.marochess.de/php/chesspieces/br1.gif" border="0" alt=" BR " width="38" height="38"></TD></TD><TD bgcolor="#9EC2EF"><IMG src="http://www.marochess.de/php/chesspieces/bk1.gif" border="0" alt=" BK " width="38" height="38"></TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD align="center"><B><FONT color="black">&nbsp;8&nbsp;</FONT></B></TD></TR><TR><TD align="center"><B><FONT color="black">&nbsp;7&nbsp;</FONT></B></TD><TD bgcolor="#397AAE"><IMG src="http://www.marochess.de/php/chesspieces/bp1.gif" border="0" alt=" BP " width="38" height="38"></TD></TD><TD bgcolor="#9EC2EF"><IMG src="http://www.marochess.de/php/chesspieces/bp1.gif" border="0" alt=" BP " width="38" height="38"></TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE"><IMG src="http://www.marochess.de/php/chesspieces/bp1.gif" border="0" alt=" BP " width="38" height="38"></TD></TD><TD bgcolor="#9EC2EF"><IMG src="http://www.marochess.de/php/chesspieces/bp1.gif" border="0" alt=" BP " width="38" height="38"></TD></TD><TD align="center"><B><FONT color="black">&nbsp;7&nbsp;</FONT></B></TD></TR><TR><TD align="center"><B><FONT color="black">&nbsp;6&nbsp;</FONT></B></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE"><IMG src="http://www.marochess.de/php/chesspieces/bq1.gif" border="0" alt=" BK " width="38" height="38"></TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF"><IMG src="http://www.marochess.de/php/chesspieces/bp1.gif" border="0" alt=" BP " width="38" height="38"></TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF"><IMG src="http://www.marochess.de/php/chesspieces/bp1.gif" border="0" alt=" BP " width="38" height="38"></TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD align="center"><B><FONT color="black">&nbsp;6&nbsp;</FONT></B></TD></TR><TR><TD align="center"><B><FONT color="black">&nbsp;5&nbsp;</FONT></B></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE"><IMG src="http://www.marochess.de/php/chesspieces/bn1.gif" border="0" alt=" BN " width="38" height="38"></TD></TD><TD bgcolor="#9EC2EF"><IMG src="http://www.marochess.de/php/chesspieces/bb1.gif" border="0" alt=" BB " width="38" height="38"></TD></TD><TD bgcolor="#397AAE"><IMG src="http://www.marochess.de/php/chesspieces/wp1.gif" border="0" alt=" WP " width="38" height="38"></TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD align="center"><B><FONT color="black">&nbsp;5&nbsp;</FONT></B></TD></TR><TR><TD align="center"><B><FONT color="black">&nbsp;4&nbsp;</FONT></B></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE"><IMG src="http://www.marochess.de/php/chesspieces/wn1.gif" border="0" alt=" WN " width="38" height="38"></TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF"><IMG src="http://www.marochess.de/php/chesspieces/wr1.gif" border="0" alt=" WR " width="38" height="38"></TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD align="center"><B><FONT color="black">&nbsp;4&nbsp;</FONT></B></TD></TR><TR><TD align="center"><B><FONT color="black">&nbsp;3&nbsp;</FONT></B></TD><TD bgcolor="#397AAE"><IMG src="http://www.marochess.de/php/chesspieces/wp1.gif" border="0" alt=" WP " width="38" height="38"></TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD align="center"><B><FONT color="black">&nbsp;3&nbsp;</FONT></B></TD></TR><TR><TD align="center"><B><FONT color="black">&nbsp;2&nbsp;</FONT></B></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE"><IMG src="http://www.marochess.de/php/chesspieces/wb1.gif" border="0" alt=" WB " width="38" height="38"></TD></TD><TD bgcolor="#9EC2EF"><IMG src="http://www.marochess.de/php/chesspieces/wp1.gif" border="0" alt=" WP " width="38" height="38"></TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF"><IMG src="http://www.marochess.de/php/chesspieces/wq1.gif" border="0" alt=" WQ " width="38" height="38"></TD></TD><TD bgcolor="#397AAE"><IMG src="http://www.marochess.de/php/chesspieces/wp1.gif" border="0" alt=" WP " width="38" height="38"></TD></TD><TD bgcolor="#9EC2EF"><IMG src="http://www.marochess.de/php/chesspieces/wp1.gif" border="0" alt=" WP " width="38" height="38"></TD></TD><TD bgcolor="#397AAE"><IMG src="http://www.marochess.de/php/chesspieces/wp1.gif" border="0" alt=" WP " width="38" height="38"></TD></TD><TD align="center"><B><FONT color="black">&nbsp;2&nbsp;</FONT></B></TD></TR><TR><TD align="center"><B><FONT color="black">&nbsp;1&nbsp;</FONT></B></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#397AAE" width="38" height="38">&nbsp;</TD></TD><TD bgcolor="#9EC2EF"><IMG src="http://www.marochess.de/php/chesspieces/wr1.gif" border="0" alt=" WR " width="38" height="38"></TD></TD><TD bgcolor="#397AAE"><IMG src="http://www.marochess.de/php/chesspieces/wk1.gif" border="0" alt=" WK " width="38" height="38"></TD></TD><TD bgcolor="#9EC2EF" width="38" height="38">&nbsp;</TD></TD><TD align="center"><B><FONT color="black">&nbsp;1&nbsp;</FONT></B></TD></TR><TR><TD align="center" width="30" height="30">&nbsp;</TD><TD align="center" width="38" height="30"><B><FONT color="black">a</B></TD><TD align="center" width="38" height="30"><B><FONT color="black">b</B></TD><TD align="center" width="38" height="30"><B><FONT color="black">c</B></TD><TD align="center" width="38" height="30"><B><FONT color="black">d</B></TD><TD align="center" width="38" height="30"><B><FONT color="black">e</B></TD><TD align="center" width="38" height="30"><B><FONT color="black">f</B></TD><TD align="center" width="38" height="30"><B><FONT color="black">g</B></TD><TD align="center" width="38" height="30"><B><FONT color="black">h</B></TD><TD align="center" width="30" height="30">&nbsp;</TD></TR></TABLE></TD></TR></TABLE></TD><TD valign="bottom"><IMG src="http://www.marochess.de/php/chesspieces//w2move.gif" border="0" alt=" white to move " width="29" height="29"></TD></TR><TR><TD align="center" colspan="2" width="399"><FONT color="black" size="1"><A href="http://www.marochess.de/chess/tools/chessdiag/" target="_blank">ChessDiag V1.01 (12-OCT-2002)</A></FONT></TD></TR></TABLE></FONT></P><P align="left"><FONT color="black" face="Helvetica" size="-1">r4rk1/pp4pp/1q2p1p1/2nbP3/3N2R1/P7/1BP1QPPP/5RK1 w - - 0 22</FONT>
------------------------------------------------------------------------------------

Ich habe folgende html Tags erlaubt:

a,b,p,i,u,pre, table,tr,td,font,img



Was ist das &nbsp im html-Code das offenbar falsch interpretiert wird ?

Bin für jede Hilfe dankbar.

Re: html Interpretation phpBB vs Parsimony Forum

Verfasst: 20.09.2005 21:31
von mad-manne
Major Kottan hat geschrieben:Was ist das &nbsp im html-Code das offenbar falsch interpretiert wird ?
Also zunächst mal ... das &nbsp; ist ein NoneBreakingSpace, mit dem man mehrere Leerzeichen erzwingen kann.

Nun aber zu dem Rest deines Beitrags:
Da kriegt man ja Augenkrebs :D

Bitte versuche doch bei solchen Posts, die Bilder zu handlichen Thumbnails zu verkleinern und diese im Post zu verwenden, evtl. mit einem Link zu einer grossen Version, für diejenigen, die sich das dann genauer ansehen wollen.
Und das Code-Monster, welches du gepostet hast, wäre entweder besser in CODE-Tags oder besser gleich als verlinkte Datei aufgehoben!

Eleganter für die Lösung des Gesamtproblems wäre evtl. ein MOD, welches solch ein Schachbrett mit der gewünschten Stellung zeichnet?! Ob's sowas allerdings gibt, weiss ich nicht.

Es wäre schön, wenn du deinen obigen Beitrag dementsprechend editieren könntest :wink:

Nix für ungut,
Manne.

Verfasst: 20.09.2005 22:11
von Major Kottan
Verzeih,

:grin:


Bei mir sahen die Bilder nicht so groß aus.
Ich "fahre" aber auch mit 1920 x 1080 ....

Hab sie jetzt verkleinert.

Das Erzeugen von Diagrammen mit html-Code ist schon die
richtige, beste und komfortabelste Variante.

Dies wird in mehreren Parsimony-Schachforen so gemacht.

Einen Mod dafür gibts nicht.

Ein Anhaltspunkt für diese Fehlinterpretation ist ja der &nbsp - Befehl.
der im phpBB-Forum nicht richtig verstanden wird.
Weil hier im Diagramm dies als Text steht


Meine Frage ist: Warum wird dieser html-Code von einem
Parsimony-Forum korrekt interpretiert und vom phpBB Forum nicht ?


Ein Anhaltspunkt für diese Fehlinterpretation ist ja der &nbsp - Befehl.
der im phpBB-Forum nicht richtig verstanden wird.
Weil hier im Diagramm dies als Text steht, statt als Befehl ausgeführt zu werden.
Der angegebene html-Code erzeugt auch auf meiner index.htm - Seite ein korrektes Diagramm nur eben nicht in einer Forumsnachricht.


Ich hab ja folgende html- Tags in der Konfiguration erlaubt:
a,b,p,i,u,pre, table,tr,td,font,img


Muß ich das &nbsp auch irgenwie freigeben ?

Verfasst: 20.09.2005 22:21
von Martin Truckenbrodt
Hallo,
schon mal direkt mit "einfachen" Leerzeichen anstatt der

Code: Alles auswählen

&nbsp;
probiert?

Gruß Martin

Verfasst: 20.09.2005 23:37
von mad-manne
Major Kottan hat geschrieben:Verzeih ... / ...
Hab sie jetzt verkleinert.
Danke .. das tut gut :D
Meine Frage ist: Warum wird dieser html-Code von einem
Parsimony-Forum korrekt interpretiert und vom phpBB Forum nicht ?
Es könnte durchaus sein, dass dieses Parsimony-Forum nicht so paranoid mit UserInput umgeht, wie das eigentlich nötig wäre :o
Gerade das Zulassen von Tabellen-Tags kann sowohl ist ein ernsthaftes Sicherheitsrisiko sein, als auch zum Zerschiessen des gewünschten Layouts führen.
Muß ich das &nbsp auch irgenwie freigeben ?
Probier's doch einfach mal ...
Ich fürchte einfach mal, dass es mit so "komplexem" HTML, wie du es oben beschrieben hast in phpBB nicht klappt. Lasse mich aber jederzeit eines besseren belehren.

Gruss,
Manne.

Verfasst: 24.09.2005 01:26
von Major Kottan
Martin Truckenbrodt hat geschrieben:Hallo,
schon mal direkt mit "einfachen" Leerzeichen anstatt der

Code: Alles auswählen

&nbsp;
probiert?

Gruß Martin

Ja danke, damit funktionierts.

Muß halt jetzt immer händisch das &nbsp durch Leerzeichen ersezten, weil das Programm zum Erzeugen des html-Codes ja nicht von mir stimmt.

Was ich sagen will:

Wäre schön wenn phpBB einen & nbsp (Befehl ?) erkennen würde.
Bzw., warum ist dies nicht so, wenn dies ein gültiger html-Befehl ist ?

Verfasst: 25.09.2005 16:33
von Martin Truckenbrodt
Hallo,
freut mich sehr, Dir geholfen zu haben.´

Normalerweise ist es für User überhaupt nicht notwendig HTML Code in produktiven Foren zu verwenden.

Gruß Martin

Verfasst: 25.09.2005 18:09
von Major Kottan
Martin Truckenbrodt hat geschrieben:Normalerweise ist es für User überhaupt nicht notwendig HTML Code in produktiven Foren zu verwenden.

Gruß Martin
Wenn man


Text


Grafik



Text



haben will dann imho schon.

Der Attachment - Mod setzt ja die Grafiken immer am Ende des Postings.
Das Einfügen von Bildern mittels [img] ist auch nicht so schön, weil diese ja auf irgendeinem Webspace liegen müssen.
Am wenigsten Platz, am einfachsten und komfortablsten ist es halt die gewünschten Diagramme durch html - Code zu erzeugen.
Wird ja in Parsimony - Schachforen auch so gemacht.

lg

Major Kottan

Verfasst: 25.09.2005 19:49
von FatFreddy
Moin!

Eine Lösung für dein Problem:

MOD Title: Enable &nbsp;
MOD Description: This is something for &nbsp; lovers . If you want to always allow your users to use '&nbsp;' marks (non-breakable space) in their posts then this is a mod for you .

Download

Gruß

FatFreddy

Verfasst: 25.09.2005 21:14
von Major Kottan
Yuppi :cookie: :cookie: :grin: :grin:

Herzlichen Dank, Fat Freddy, genau das war's.

Sehr hilfreich dieses Forum.
Absolut empfehlenswert ! :grin: