I have a very similar question. My site is
www.wavingthewheat.com
I am using a php script to count the number of rows in a table on the database. The script is loaded at
www.wavingthewheat.com/chatuser.php
I am trying to have the output of that file displayed in my navbar template. I have created a plugin with the following code
PHP Code:
ob_start();
include('/home/bluepr12/public_html/wavingthewheat.com/chatuser.php');
$includedphp = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('nabvar',array('includedphp ' => $includedphp));
In my navbar template I have {vb:raw includedphp} as part of the Chat link.
The php script works and displays the number of online users, however I can't get anything to display in the template using the plugin.