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.jpg

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:

AndyB

Well-known member
Well I got stuck trying to save the BB Code Media Site.

pic001.jpg

Andy/AudioList/Index.php
pic002.jpg

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

Chris D

XenForo developer
Staff member
The class named you have entered isn't the same class name in the PHP file.
 

AndyB

Well-known member
At this point I have this:

pic001.jpg

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