Quote:
Originally Posted by Mark.B
One issue with this hack is that if you have a usergroup whose posts go into pre-moderation before appearing, such posts show up in the stats box.
Anyone know how to fix this?
|
In the index.php find:
Code:
WHERE NOT ISNULL(thread.threadid)
And replace with:
Code:
WHERE NOT ISNULL(thread.threadid) AND thread.visible <> 0
However this will only check if the thread requires moderation and not that of the latest post. It also doesn't check if the user has permissions to view moderated threads.
Edit: I didn't realise I was replying to my vB3.0 version of the hack. The above code might work. I don't know as I have no way of supporting my vB3.0 hacks.