The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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:
|