MyBB Community Forums

Full Version: How to post html?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Dear all,

I have installed MyBB Forum on my server. When I try to make a thread with my html code, the editor doesn't understand my html code and show my html code in the post. Thus I want to make some changes to allow html code on my post.

About the security, I have something to tell:
  • I really don't care about the security when allow pure html in my post, just because my forum is used in local network. Not published.
  • My forum is allow only trusted user to post, so I can guaranty about the security.
About my questions I have something to ask you: 
  1. Is there anyway to disable sceditor toolbar? I think if sceditor toolbar is gone then I can post html. But I'm not sure this way can help!?
  2. Is there any configuration from MyBB Admin that can help me to enable user to post html?
  3. Is there any plugin to help me to post html?
html posting option available at forum settings (each forum should be configured separately)
instead of configuring each forum, HTML in Posts plugin can be used.
(2017-04-04, 02:51 AM).m. Wrote: [ -> ]html posting option available at forum settings (each forum should be configured separately)
instead of configuring each forum, HTML in Posts plugin can be used.

Dear .m.:

I have tried your suggested plugin and enable html posting option in forum settings. But what I have experienced is just a mess when there is no image or hyperlink has been viewed instead of pure html code itself. I have sent you a picture to illustrate what I have experienced.

Now I want to completely remove the sceditor-toolbar in my post and change php functions to disable it's translate BBCode, so that I can only need to post my HTML code and then it can be show freely on my posting. Can you help me to achieve this?

Thank you,
Tri
If your trying to embed a webpage using HTML in a thread then I'm sure enabling HTML in a post Is not the best idea!
(2017-04-09, 04:27 AM)mrmod Wrote: [ -> ]If your trying to embed a webpage using HTML in a thread then I'm sure enabling HTML in a post Is not the best idea!

Dear mrmod,

I understand your phrase, but that also solve my problem if it can be done. At lease, I can make a post with my HTML.

As I mention above, all of modules that I have tried seem to be useless unless I am going to disable all HTML encapsulate function from posting thread feature of MyBB forum. Can you help me to look for what php file I need to change, or some where to fix to be able to post HTML code?

Best Regards,
Dung Tri
^ sorry, somehow I missed seeing this thread ..
when the plugin is used, individual forum setting need not be selected.

would you like to PM me temporary access to forum admin panel to check it ..
(2017-04-11, 02:28 PM).m. Wrote: [ -> ]^ sorry, somehow I missed seeing this thread ..
when the plugin is used, individual forum setting need not be selected.

would you like to PM me temporary access to forum admin panel to check it ..

Hello .m.



I did try to disable forum setting which allow html in post. But the result is still the same. Here is my bug report.
  • This is sample html code:
<h1>Hello World</h1>
<p>This is sample picture</p>
<img src="http://imgsv.imaging.nikon.com/lineup/lens/zoom/normalzoom/af-s_dx_18-300mmf_35-56g_ed_vr/img/sample/sample4_l.jpg" width="50px" height="50px"/>
<p>This is an attachment link</p>
<a href="https://gymkhana.iiita.ac.in/tenders/docs/letterlegal5.doc">Download Attachment</a>
  • And this is the preview mode:
[Image: MyBBThreadPreviewMode.png]
Note: You can see the image cannot be viewed in preview mode, and some html code is broken.
  • This is what I see in my post content using Browser Elements from Chrome:
<h1>Hello World</h1><br>
<p>This is sample picture</p>
<img src="h&lt;a&gt;&lt;/a&gt;p://imgsv.imaging.nikon.com/lineup/lens/zoom/normalzoom/af-s_dx_18-300mmf_35-56g_ed_v&lt;a&gt;&lt;/a&gt;img/sample/sample4_l.jpg" width="50px" height="50px"><br>
<p>This is an a<a></a>achment link</p>
<a href="h&lt;a&gt;&lt;/a&gt;ps://gymkhana.&lt;a&gt;&lt;/a&gt;&lt;a&gt;&lt;/a&gt;a.ac.in/tenders/docs/le&lt;a&gt;&lt;/a&gt;erlegal5.doc">Download A</a><a></a>achment<br>

Conclusion: I don't know why my html code structure is broken when it is saved in my post. I am consider this to be a bug of HTML plugin. So please re-check my forum if you can.

Best Regards,
Dung Tri
This issue has been fixed by modified some files which cause the error here. If you have same problems with this, please go to (https://github.com/mybb/mybb/releases) to download the last package to update your forum.

Best Regards,
Dung Tri
(2017-04-18, 11:27 PM)trind09 Wrote: [ -> ]This issue has been fixed by modified some files which cause the error here. If you have same problems with this, please go to (https://github.com/mybb/mybb/releases) to download the last package to update your forum.

Best Regards,
Dung Tri

I am having the same issue. 

http://thehubrp.com/mybb/showthread.php?tid=4

Are you saying i need to reinstall my whole board? What files need to be changed?

I downloaded and installed off the main website this morning... and installed the https://community.mybb.com/mods.php?action=view&pid=16 plug in.
^ @fishu style code is not supported in the html posts

if you need frequent use of those specific style properties then they have to be included in the headerinclude template
(either direct code or by including css stylesheet)
Pages: 1 2