The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
using hooks to generate dynamic template vars
I have a hook like below:
Code:
<? $server = "localhost"; $database = "voice"; $server = "localhost"; $user = "root"; $password = ""; $dborig = mysql_connect($server,$user,$password); mysql_select_db($database,$dborig); $stats = array(); $sql = "SELECT COUNT(*) as count FROM account"; $result = mysql_query($sql); $row = mysql_fetch_array($result); if($row){ $stats["registered"] = $row['count']; $registeredusers = $row['count']; } mysql_close($dborig); ?> How can I do this. I have my hook running successfully. I just cant figure out how to get the template var replaced. Thanks nobody? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|