Ahh so glad to hear that it works for you. I hope my instructions were clear. Disclaimer: I am a graphic artist that learned to program-- so I'm not really qualified to be doing this or to give you advice on your system resources... but I'll do it anyway.
This hack should only add 1 query to your showthread. That is 1 query per load of the page to fetch the reader's ignore list-- not 1 query per post. It fetches the ignore list at the top of the script when it is first loaded. It parses this list into an array.
Lower down it uses the array. Once for each post on the page, it checks to see if the poster's name is contained in the ignore array. If it is there, it switches to the _ignored template.
So you're adding 1 query per page view and 1 possibly 3 if statements per post. I don't think it should be that resource intensive.
RE: Admins & Moderators
Please correct me if I'm wrong, but the only real way to tell if someone is an Admin or Mod is to do a getpermissions and cross reference their userid with the current forum.. which would add 1 query per post on the page-- something I'm not willing to do myself.
The cheat way to do it is hardcode the user titles into showthread. Change:
Code:
if ((isset($ignore[$userid]) || isset($ignore[($username)])) || ($usertitle=="Guest" && isset($ignore[$guestcode]))) {
to
Code:
$modtitle["Drug Czar"] = "yes";
$modtitle["Administrator"] = "yes";
$modtitle["Moderator"] = "yes";
if ((!isset($modtitle[$usertitle])) && ((isset($ignore[$userid]) || isset($ignore[($username)])) ||
($usertitle=="Guest" && isset($ignore[$guestcode])))) {
And of course replace your Admin/Mod titles in the array. If you want to be more efficient, move those $modtitle variables up to the top of the script and out of the post if.