7
A better solution would be to add a parameter to the xoopsCodeDecode function , something like this:
xoopsCodeDecode(&$text, $allowimage = 1, $allowjs = 0)
then have a condition on the javascript replacement code, so it's only replaced if not allowed. Since the default is 0 it shouldn't have any impact on existing modules, and you can just change your news one to pass a $allowjs = 1 parameter. Unfortunately xoopsCodeDecode isn't called directly from the modules, so you'll also have to change the calling functions to pass the parameter
Anyway, it's just an idea...
And I'm happy to hear that my last post helped you, thanks for telling me
Rowd