Hm, well I don't want to cause any inconvenience with this... if you have to apply any thing more than a few seconds of effort, well, you know, I'll live without it.
Edit: Perhaps I could just hack up something where it only allows certain people to access the post counter? Like this:
Code: Select all
<?php
if (!isset($_GET['u'])) {
die('0');
}
$enabled_users = array(
30233,
12345
);
if (!in_array($_GET['u'], $enabled_users)) {
die('0');
}
$user = mysql_real_escape_string($_GET['u']);
$mysql = mysql_connect('host', 'user', 'pass', 'db');
$query = mysql_query('SELECT user_posts FROM phpbb_users WHERE user_id = "' . $user . '"', $mysql);
if ($result = mysql_fetch_array()) {
die($result[0]);
}
?>
And trusted users can ask to be manually put into the $enabled_users array, as long as they promise to cache it themselves
