News: Welcome to the TinyPortal Support site.

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

November 21, 2019, 05:57:50 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189262
  • Total Topics: 20773
  • Online Today: 127
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 120
Total: 120

Author Topic: Formatting of Text in Article-Block  (Read 483 times)

0 Members and 1 Guest are viewing this topic.

Offline Wichtlmex

  • Full Member
  • ***
  • Posts: 100
Formatting of Text in Article-Block
« on: May 23, 2019, 06:31:54 AM »
Hi,
I observe the reduction of HTML formatting of an article when shown in a block.
I could not find a documentation for that issue.
Is this normal behaviour?

Regards
Michael

SMF 2.1 RC1, TP 1.6.3

Offline @rjen

  • Support Team
  • *
  • Posts: 1925
    • FJR-club Nederland
Re: Formatting of Text in Article-Block
« Reply #1 on: May 23, 2019, 09:43:49 AM »
Please explain?

What do you mean with "reduction of HTML formatting"
Running TP1.6.4 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 RC2
Want to check what php version I am testing on? See: PHP Info

Offline Wichtlmex

  • Full Member
  • ***
  • Posts: 100
Re: Formatting of Text in Article-Block
« Reply #2 on: May 23, 2019, 02:47:08 PM »
Sorry for not being clear. The attachment shows it:
Only BOLD font is transferred into the block.
The same article is shown inside a "single article" block.
SMF 2.1 RC1, TP 1.6.3

Offline @rjen

  • Support Team
  • *
  • Posts: 1925
    • FJR-club Nederland
Re: Formatting of Text in Article-Block
« Reply #3 on: May 23, 2019, 02:49:39 PM »
Can you post the html code you are using here?

Either in an attachment or between [code ] [ /code] tags? I want to check it...
Running TP1.6.4 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 RC2
Want to check what php version I am testing on? See: PHP Info

Offline Wichtlmex

  • Full Member
  • ***
  • Posts: 100
Re: Formatting of Text in Article-Block
« Reply #4 on: May 23, 2019, 02:59:09 PM »
Oh, sorry... I don't know how to do that.

I pasted the test from an HTML web page into the article.

SMF 2.1 RC1, TP 1.6.3

Offline @rjen

  • Support Team
  • *
  • Posts: 1925
    • FJR-club Nederland
Re: Formatting of Text in Article-Block
« Reply #5 on: May 23, 2019, 03:09:02 PM »
Go to edit article of the HTML article you created, take a screenshot of the content of the 'body' and attach that here to a reply...

By the way: when copying HTML code (stuff with < a=href > <p > and stuff in it, you must first swith to 'View source' and NOT use the WYSIWYG editor...
Running TP1.6.4 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 RC2
Want to check what php version I am testing on? See: PHP Info

Offline Wichtlmex

  • Full Member
  • ***
  • Posts: 100
Re: Formatting of Text in Article-Block
« Reply #6 on: May 24, 2019, 11:48:47 AM »
Wow.. thanks, you are teaching me a lot.
A screen shot is too small, so I include the code here:

Code: [Select]
<p>
</p>
<h1>
¿Quienes somos?<br /> Wer sind wir?
</h1>
<p>
Somos una sociedad sin fines políticos o religiosos que tiene como meta fomentar las relaciones culturales y humanas entre Alemania y el mundo de habla hispana a través de:
</p>
<ul>
<li>
la realización de charlas, reuniones temáticas, eventos gastronómicos, culturales, etc.
</li>
<li>
fomentar el conocimiento y la comprensión mutua para una mejor integración en Alemania.
</li>
<li>
la difusión del idioma español y la diversidad de nuestras culturas.
</li>
<li>
la cooperación con instituciones similares en Alemania y otros países.
</li>
</ul>
<p>
Wir sind eine Gesellschaft ohne politische oder religiöse Zwecke. Unsere Ziele sind: Förderung der kulturellen und menschlichen Beziehungen zwischen Deutschland und der spanischsprachigen Welt durch:
</p>
<ul>
<li>
Gesprächsabende, Treffen, gastronomische und kulturelle Veranstaltungen usw.
</li>
<li>
Förderung der Integration und des gegenseitigen Verständnisses durch besseres Kennenlernen.
</li>
<li>
Näherbringen der spanischen Sprache und der Vielfalt unserer Kulturen.
</li>
<li>
Zusammenarbeit mit ähnlichen Einrichtungen in Deutschland und in anderen Ländern.
</li>
</ul>
<p>
<br />
</p>
SMF 2.1 RC1, TP 1.6.3

Offline @rjen

  • Support Team
  • *
  • Posts: 1925
    • FJR-club Nederland
Re: Formatting of Text in Article-Block
« Reply #7 on: May 24, 2019, 11:09:38 PM »
I think I know what you mean now.

There are differences in HTML formatting shown in de WYSIWYG editor and in the article showing on the site.

This is unfortunately due to the way SMF defines styles: the editor we are using is the same that is being used in SMF: it has a 'standard' stylesheet. SMF itself has a somewhat different definition of some styles, making the resulting text look somewhat different from what you see in the editor. Most striking example is the H1 tag in your example...

Best advice it to save an HTML article while you are writing an use the 'View article' to check if the result is to your liking...

As for you original note: a HTML article in TinyPortal will look the same as an article or when showing in a block. There is only a slight decrease in line heights in all blocks...

See my example below...

Running TP1.6.4 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 RC2
Want to check what php version I am testing on? See: PHP Info

Offline Wichtlmex

  • Full Member
  • ***
  • Posts: 100
Re: Formatting of Text in Article-Block
« Reply #8 on: May 25, 2019, 10:21:42 AM »
Thank you very much for making me understand.
Michael
SMF 2.1 RC1, TP 1.6.3