query($query);
$query = "INSERT INTO ".$bb_table_prefix."counter (hits) VALUES (1);";
$bbdb->query($query);
$_SESSION['installed'] = 1;
}
?>
Ye olde counter install
Done!
This ye olde counter was brought to you by: http://www.freelancewebdeveloper.net.au. It was written to install on bbpress
- You should now delete this file from your server. Do not run it again.
- Upload the file 'ye-olde-counter.php' to your 'my-plugins' folder and browse to this file. You may need to create this directory.
- Place this
<div id="counter"><?php ye_olde_counter(); ?></div>
in your 'bb-tempaltes/footer.php' file at the bottom somewhere in the footer div tag
- Add the counter class to your stylesheet:
#counter{text-align: center; padding-top: 20px;}
- Add the number class to your stylesheet (you'll probably change this class):
.counter_number{color: red;}
- View your counter
- If you post where you got it in your forum, we would much appreciate it!