MyBB Community Forums
[How To?] Include .html or .php page - 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: [How To?] Include .html or .php page (/thread-234600.html)



Include .html or .php page - hitman5 - 2022-01-02

Hi people!

Just want to ask you how i can include .html page in the main page of the forum? I tried to do that in Footer Teamplate but seems like teamplate does not understand php language

Im using code:  <?php include "/myfile.html"; ?>

i think need to find some php file in html forum folder and put this code there

Can someone help? Thanks!


RE: Include .html or .php page - Matt - 2022-01-02

You’d either need a plugin to define a variable that you could use in the template, or just put the HTML in the template directly.


RE: Include .html or .php page - DiegoPino - 2022-01-02

As Matt writes, you need a plugin… There are several for now I remember:
OUGC Pages: https://community.mybb.com/mods.php?action=view&pid=6

And without Plugins: https://community.mybb.com/thread-116043.html

Other tutorial: https://community.mybb.com/thread-116225.html

 Big Grin


RE: Include .html or .php page - hitman5 - 2022-01-02

(2022-01-02, 06:16 PM)Matt Wrote: You’d either need a plugin to define a variable that you could use in the template, or just put the HTML in the template directly.

Thank you for answer. But problem is that i use trade expert 3 plugin. And if who knows, html page is dynamic and updatabele.

Just installed OUGC Pages Plugin

how to use it?  ougcpages ougcpages [size=1][b]ougcpages[/b][/size]