BB Code Media Site - is it possible to call a template?

AndyB

Well-known member
Hello,

I'm creating a new add-on and currently I'm calling an <iFrame> from the BB Code Media Site (Embed HTML), this calls a PHP file on the same server.

pic001.webp

Calling the PHP file works fine, but it would be so much easier if could call a template instead, is this possible without loading the entire page? I would like the output of the template displayed in the embedded HTML.

Thank you.
 
Last edited:
Well I got stuck trying to save the BB Code Media Site.

pic001.webp

Andy/AudioList/Index.php
pic002.webp

Why do I get an error trying to "Save BB Code Media Site" ?
 
Last edited:
At this point I have this:

pic001.webp

This returns the word "test" in the message. Now is it possible to add PHP code to call a template and have the output of that template be returned to this Index.php and then ultimately have the HTML entered into the message?
 
Top Bottom