(great work! )
I'm not sure, what kind of file are you explicitly searching for? A file inside a plugin directory that you want to emit via HTTP?Garvin, is there any way to search in the plugin directories, like getTemplateFile, but getPluginFile? Could I use __FILE__ or something?
That's hard.
Reason for this is that plugin directories can be linked and be in any kind of plugin 'substructure'. Most plugins that emit stuff via HTTP configure a "HTTP path to plugin directory" witha reasonable default setting inside the plugin file and use that path.
The other (freakier) way would be to use the 'external_plugin' event, pass it a variable and use fpassthru() to output file contents virtually.
Best regards,
Garvin