View Full Version : Removing spacer_open & spacer_close - How?
SaintDog
06-21-2006, 07:50 PM
The style I am developing doesn't make use of either and I would like to remove them altogether from the coding. They have been removed from the templates, though the templates are still called through vBulletin.
I'd like to simply drop the queries being made for these templates. Anyone know right off where they're located or if I can remove templates via a plugin?
gulldarek
06-21-2006, 08:14 PM
./global.php in $globaltemplates array (around line 298) remove this:
'spacer_open',
'spacer_close',
Around line 535 remove this:
eval('$spacer_open = "' . fetch_template('spacer_open') . '";');
eval('$spacer_close = "' . fetch_template('spacer_close') . '";');
in ./includes/class_postbit.php around line 263 remove this:
global $spacer_open, $spacer_close;
PennylessZ28
06-22-2006, 12:52 AM
Hey! I was doing that too, working on a CSS 3 complaint vb style for vb3.6
SaintDog
06-22-2006, 01:56 AM
Thanks much :).
Yeah, to be honest, neither of the templates serve a purpose. A basic wrapper would function just as well, if not better and could be inserted globally with template calls already being made through the header, footer and navigation areas.
That alone eliminates 2 template calls and 2 items to be cached.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.