Quote:
Today at 07:51 AM Xenon said this in Post #127
it will add 4 queries per function so in sum 8 queries in total
the position is right, but you should put it into an if block so it will just be executed if you're an admin
|
Like this?
PHP Code:
if ($bbuserinfo[usergroupid] == 6) {
updatethreadcount($threadinfo[threadid]);
updateforumcount($threadinfo[forumid]);
}
I didn't know that each of those functions added 4 queries. How come so many?
Also, is there a way to make a checkbox that when ticked will update the post with the current date and time that you are editing the post (like a newreply or newthread) and if not ticked, will just update it as normal (like if you manually change the date or time)?