I think the problem might be that the template name used by PMs is "postbit" and not "postbit_legacy", or at least that's what it shows in the html comments. Try changing the preRegister call to 'postbit', or just do preRegister twice, once each to 'postbit' and 'postbit_legacy', and see if that works.
BTW, if that is all the plugin code you don't need the ob_ calls, you could just replace the "echo"s with "$php_include = " and remove all the ob_ lines. Also, if you replace only the style= part instead of the entire <div> tag, it won't mess up the html even if the variable is blank.
Edit: or it might be what Lynne said - I was typing while she posted.
|