Quote:
Originally posted by Buddha
here's my suggestion... you say that the new one can be controlled through the admin cp now, to choose what you would like selected and whatnot. is it possible to have it so that you can create a copy within the cp, choose a name and all of the options you would like selected for that page, and which templates would correspond to the header/footer, left, main and right. know what i mean? then have a dropdown menu perhaps that displays all of the additional pages that you have created and then you can select one and do the work on it from there.
|
Changing the code so that a certain header/left and right templates are displayed based on the page would be quite easy, are you using the standard vbindex.php?page=template_name method for displaying extra pages? Alternativly you can make a copy of the vbindex.php and remove the code for the functions you don't use and use that php file for the rest of the site.
Quote:
ok, checked through all of the pages, and it's nowhere to be found, so now i'm asking.
is there a way that i can trim the vbindex code to remove querries if i am not using the newest threads display in the right panel (using 2.0.1). thanks.
|
If you are not using the latest threads bit at all for your site, you can comment out or delete all of the code starting at:
PHP Code:
// latest threads
// -------------------------
if (!isset($numthreads)) {
$numthreads=$maxthreads;
}
To:
PHP Code:
eval("\$threads = \"".gettemplate('home_threads')."\";");
// -------------------------
// end latest threads
This will then remove the queries that are generated by it.