MyBB Community Forums

Full Version: Pull through contents from a shared partial/template on my forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.
(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?