vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Removing spacer_open & spacer_close - How? (https://vborg.vbsupport.ru/showthread.php?t=119286)

SaintDog 06-21-2006 07:50 PM

Removing spacer_open & spacer_close - How?
 
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.


All times are GMT. The time now is 01:09 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
  • Page Generation 0.00977 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete