phpBB HTML MOD

User avatar
axew3
w3all User
w3all User
Posts: 2716
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpBB HTML MOD

Post by axew3 »

Let test 4 together with just this code on next post:
the <iframe> code you see, come from the Youtube Embed button share option, that appear when you click on the Share button. Just click on it and copy (i just substituted width and height attribute value to accomplish to what i want to display here, so changed into width="100%" height="100%)

Code: Select all

[HTMLMARKUP] 
<table style="width:100%;text-align:center;margin:0; padding:0px;"><tr>
<td style="max-width:25%"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/4FG-106Opxg?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></td>
<td style="max-width:25%"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/JvLMRwJDiRc?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></td>
<td style="max-width:25%"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/LanCLS_hIo4?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></td>
<td style="max-width:25%"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/JPjyue81qhU?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></td>
</tr></table>

<table style="width:100%;text-align:center;margin:0; padding:0px;"><tr>
<td style="max-width:50%"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/dV67vnRNMOA?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></td>
<td style="max-width:50%"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/VAVER-QBEyI?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></td>  
</tr></table>
User avatar
axew3
w3all User
w3all User
Posts: 2716
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpBB HTML MOD

Post by axew3 »

User avatar
axew3
w3all User
w3all User
Posts: 2716
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpBB HTML MOD

Post by axew3 »

So what about if we want the post to be parsed as html, but in between we want also pure text?
Cleaning up any <br> tag spaces or something else, will result that the text will be not readable.
The problem has been resolved this way (look that also the script written in more lines will work fine):

if we want to write text and not html or javascript, then we'll do like this:

Code: Select all

[HTMLMARKUP]  
test that this is <b>htmlcode</b>
[HTMLTEXT]
my text
in 
more lines
<p>text me<br> with a <br/> br tag</p>
this is not parsed as html
[/HTMLTEXT]

<h1>ok!</h1>
<b>test me! again</b>
<p style="text-align:center">test</p>fdfbdsf dge geddd
[HTMLTEXT]
<p>test me <br>and br here<br>and here</p>
this is not parsed as html
[/HTMLTEXT]
sasdadsadsasasadsdas

[HTMLTEXT]
<p>bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb</p>
this is not parsed as html
[/HTMLTEXT]

<table style="width:100%;text-align:center;margin:0; padding: 10px;"><tr>
<td style="max-width:25%"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/xdx-WGUqx2A?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></td>
<td style="max-width:25%"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/xdx-WGUqx2A?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></td>
<td style="max-width:25%"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/xdx-WGUqx2A?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></td>
<td style="max-width:25%"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/xdx-WGUqx2A?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></td>
</tr></table>

<br><br>
<script>alert('WoW!');
</script>
<iframe width="560" height="315" src="https://www.youtube.com/embed/xdx-WGUqx2A?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 
<a href="test.com">test link</a>  
<b> and bolder</b>
Stay tuned lovely and cool people, you never seen an html editor within a phpBB post done so easily!
The html on posts extension will be released very soon!

viewtopic.php?t=1769
User avatar
axew3
w3all User
w3all User
Posts: 2716
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpBB HTML MOD

Post by axew3 »


1.0.1 has been released, enjoy here:
viewtopic.php?t=1776
Random American
User w
User w
Posts: 7
Joined: Tue Oct 27, 2020 5:52 pm

Re: phpBB HTML MOD

Post by Random American »

Thanks, though I personally will never use it, as I see no reason to use HTML outside of an HTML or php page.
User avatar
axew3
w3all User
w3all User
Posts: 2716
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpBB HTML MOD

Post by axew3 »

Well, yes or no, without using an extension, you could achieve results that you may wants only in certain cases, to show something into a post or to start a topic. The code also show that it is possible to add (safely) HTML on posts.

If the HTML extension is then uninstalled,is possible to remove all HTML posts searching for posts containing the string
[HTMLMARKUP]

maybe not so useful if not for some very particular case!
Post Reply