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
  1. You should now delete this file from your server. Do not run it again.
  2. Upload the file 'ye-olde-counter.php' to your 'my-plugins' folder and browse to this file. You may need to create this directory.
  3. 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
  4. Add the counter class to your stylesheet:

    #counter{text-align: center; padding-top: 20px;}

  5. Add the number class to your stylesheet (you'll probably change this class):

    .counter_number{color: red;}

  6. View your counter
  7. If you post where you got it in your forum, we would much appreciate it!