MyBB Community Forums
Pull through contents from a shared partial/template on my forum - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Pull through contents from a shared partial/template on my forum (/thread-218787.html)



Pull through contents from a shared partial/template on my forum - thewebc - 2018-07-20

Hey,

I'm hoping someone may be able to assist me with the following.

I am trying to pull through the contents from a static HTML file as a shared partial / include / template within the sidebar on my forum. I can always AJAX this content in, however I wanted to know if there was a way in MyBB to pull through the contents rather than making another request on page load.

Thanks in advance.


RE: Pull through contents from a shared partial/template on my forum - Tom K. - 2018-07-23

To my knowledge, no. You could always make a simple plugin that reads the contents of the file to a variable that can be used in templates.


RE: Pull through contents from a shared partial/template on my forum - thewebc - 2018-07-27

(2018-07-23, 02:54 PM)Tom K. Wrote: To my knowledge, no. You could always make a simple plugin that reads the contents of the file to a variable that can be used in templates.

Thanks for the reply Tom, with regards to finding someone who may be able to write the plugin - is it best if I post a request for this in the Plugin Requests section? Unless anyone else may have been able to achieve similar?