I have a database which differs from my vb database that I want to query for info and show a link in the users postbit if the row exists. Can this be done inside the vbulleting template system or would this have to go into the showthread.php file? I would rather avoid the file mod if possible.
The query would be simply:
PHP Code:
require ('second/db/connect.php');
$DBQuery;
$exists = mysql_query("SELECT * FROM homepage WHERE userid=$bbuserinfo[userid]");
if (mysql_num_rows($exists) > 0) {
$loglink = "<a href=\"link.php\">Log</a>";
}
Any ideas? How would I also get $loglink into the postbit template?