![]() |
Marvelous suggestion.. I removed the query out of showthread and into global. But one problem, we don't need the blobby ignorelist loaded with EVERY single page. So I made it dependent on whether it's showthread calling global.... like this:
In global.php change: Code:
if ($userinfo=$DB_site->query_first("SELECT daysprune,lastvisit,lastactivity,cookieuser,username,password,usergroupid,timezoneoffset FROM user WHERE userid=$bbuserid")) { Code:
if ($userinfo=$DB_site->query_first("SELECT daysprune,lastvisit,lastactivity,cookieuser,username,password,usergroupid,timezoneoffset".$queryinsert." FROM user WHERE userid=$bbuserid")) { At the top of showthread.php add $queryinsert=",ignorelist"; right above require("global.php"); This will add ignorelist onto the global query only when showthread is the one calling. Then go into showthread.php and change the first part of the hack to: Code:
// IGNORE HACK ************************************************************************************ IGNORE HACK P.S. Please take a look this thread in our Shark Tank. It's about message board communites and how we handle our problem users. Feel free to leave your own comments as owners of large message boards, you don't need to register for the Shark Tank. (The tank is our catch all for crap posts-- we never delete anything, just move it to the Tank in the spirit of free speech.) |
Overgrow - I noticed that you took the ignore feature off of your site. Was it not working well for you?
Why did you take it off? Thanks. Just curious if it caused load problems or something. |
Sorry, it is still there. I haven't taken it down at all-- I think what happened is you weren't logged in. I was messing with the cookies this week and I had it only setting temporary cookies... so when you came back, you weren't logged in and you had no ignore list.
I've fixed the temp/perm cookies now and also implemented the above query fix-- all is well on my little 60-concurrent-user board :) |
I really hope this makes it into the next vB. After all, what's the point of having dynamically-generated thread pages if you can't further control what you see (like this hack lets you)?
This is one cool hack! |
Did the fix...putting it in global make it faster?
|
Jim it should make no change on your forum speed now. Try it out.
|
Is the zip version the most efficient and updated one?
Thanks! |
Hello Overgrow,
I wanted to run the SELECT query you suggested to see who the most ignored user was. So I created a file called most_ignored.php. It looks like this: Code:
<?php But I get this error: Code:
Database error in vBulletin: Invalid SQL: SELECT user,ignorelist FROM user WHERE ignorelist !='' |
I have updated the zip file to 1.1 to reflect the query optimizations by rangersfan. You can find the newest version, including instructions on updating the old version, here:
http://www.overgrow.com/archive/KillFile.zip VT, I'm working on that most ignored script. I'm sorry I had quoted that query incorrectly-- there is no field "user" in the table "user"... the query should be: select username,ignorelist from user where ignorelist !=""; I'm working on the file so it will give the results you want.. will post in a bit. |
OK VT, once you get me started... Here is a little script that will report your kill file stats (who is being ignored). Save it with any name in the same directory as your forum index.php.
Code:
|
All times are GMT. The time now is 07:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|