Yeah, I want the $CatName and $Title variables to display in the ubbt_registered menu bar basically....
I know I need to put a query in the template of ubbt_reg, something like this found in postlist....
<br />// -------------------<br />// Grab the board info<br /> $Board_q = addslashes($Board);<br /> $query = "<br /> SELECT Bo_Title,Bo_CatName<br /> FROM {$config['tbprefix']}Boards<br /> WHERE Bo_Keyword = '$Board_q'<br /> $groupquery<br /> ";<br /> $sth = $dbh -> do_query($query);<br /> $rows = $dbh -> fetch_array($sth);<br /> list($Title,$CatName) = $rows;<br /> $dbh -> finish_sth($rows);<br /> if (!$Title) {<br /> $html -> not_right($ubbt_lang['BAD_GROUP'],$Cat);<br /> }<br />
So, basically, I need that query to be in the template, but only run if the page is postlist or showflat... Maybe there is a simpler way...
The point is that is that I'm building a menu and will have the Site Name : Forum Name : Post Title in the menu, where appropriate. Hope that made sense...
-peter