Log in

View Full Version : Need to call php function from bbcode


arob42
01-22-2005, 06:49 PM
I want to take the contents of a custom bbcode and send those contents as a parameter to a php function and use the output of the php function as the replacement for the custom tag contents.

As an example, consider the following line of text:
Blah blah blah blah.

using a replacement similar to this: php_function( {param} ) I want the text to be changed to the following:

Blah blah <output of php_function here> blah.

The output of the php function will be a image reference. i.e. <img src="...">.

Can I do this using existing tools or must I hack functions_bbcodeparse.php

Thanks!

noppid
01-22-2005, 06:52 PM
I believe others have asked this and been told that functions cannot be run from bb codes.