![]() |
no it wont, do you see an $DB_site in the file? :)
|
I'm not sure if it would work, but I think bbinactive should be added to the templatesused variable in index.php? Would it work even though its being called from global.php? Or does global.php have a templatesused variable? All I know is, a query will be added as bbinactive is eval()'d in the code, so when you close your forum, there will be one more query?
|
nice hack teck, it was getting annoying when the other admin of my site would continue posting when I had the board closed for updating.
|
you are right N9ne it'll create an extra query on every page if you are loggedin as admin and the board is closed:
fix: in global.php find PHP Code:
PHP Code:
|
WOW this is something new, TECK adds a query to his forum :D hehe, glad I could help, I feel all proud for no reason now lol.
|
Quote:
First, it doesn't matter if it adds a query since is not everyone who will see the pages. Plus you save in the server memory by not loading an extra template. I rather perform an extra query. :) Although, your fix is good. :D |
well i'm not worried, that's why i said that long sentence that you have to be logged in as admin and the board must be off.
but i think the small bit of extra server memory used is better than an extra query... with my if-cunstruction it won't hurt when borad is online ;) |
I was repeating Freddie's words, about the server memory... hihi... to late. :D He explained that to me once.
Is good that you posted in details the explanation, people will have the choice to mod or not to... ;) Speeking of... he's reading the thread right now. :classic: |
LoL but nonetheless, when you're an admin and the board is closed, there will be that extra query ;)
|
Quote:
|
All times are GMT. The time now is 08:30 AM. |
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:
|