vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - Remove all (Template-)Comments from any HTML-Output (https://vborg.vbsupport.ru/showthread.php?t=121872)

MrZeropage 07-22-2006 10:00 PM

Remove all (Template-)Comments from any HTML-Output
 
1 Attachment(s)
This small PlugIn will give you the option to remove all comments you put in your templates before the HTML-code gets spit out to the client's browser.

You can activate or deactivate this feature via AdminCP (vBulletin Settings -> General Settings) and even allow usergroups to view those comments anyway (like for Developer, Styler, Admins ect.)

In addition you are able to activate the removal of blank Lines in the HTML-output, this makes the code more clean after removing the comments ;)



Just import the product and adjust the settings the way you need it :cool:

Don't forget to click INSTALL if you use this ;)



Bugs:
none found yet

Planned feature:
1) remove //-Comments from JavaScript

Snake 07-23-2006 11:44 AM

I'll definitenly install this when I get back to home. Thanks! :)

KTBleeding 07-23-2006 02:22 PM

Oh, neat..

This is something I actually thought about yesterday. Thanks.

MGM 07-23-2006 09:27 PM

While I understand that having a lower page size makes things load faster, what is the effect of using the coding to remove the comments? Like, does it add more server load? Do the disadvantages outweigh the advantages?

MGM out

tako 07-24-2006 05:11 AM

How does it effect to the board's loading and parsing performance? Positive or negative? Oops, same question as MGM's...

MrZeropage 07-24-2006 05:15 AM

This way you can add more internal information to the code, by now there are often more information in the sourcecode than you think of.

Example:
most modification add their code in templates like
Code:

<!-- this is additional function for admins-->

[...CODE...]

<!-- / of special mod -->

This means although the user can't use/see this function, he has some information about installed addons in his sourcecode.

MGM 07-24-2006 05:39 AM

But again, is the advantages of removing the comments better than the disadvantage of having the code check every template and remove every comment line for line?

MGM out

MrZeropage 07-24-2006 05:53 AM

Quote:

But again, is the advantages of removing the comments better than the disadvantage of having the code check every template and remove every comment line for line?
It does not check the code line-per-line it is just some simple replacements in the final output, only one command per comment-type

utw-Mephisto 07-25-2006 11:33 PM

1 Attachment(s)
Works perfect - thanks :)

Some people did not understand in your 3.5x release what it does ..

Here a screenshot (including spelling mistakes :D) :

Mudvayne 07-29-2006 08:01 PM

Installed n working fine for RC3 :)..


All times are GMT. The time now is 03:19 PM.

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.01140 seconds
  • Memory Usage 1,727KB
  • 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)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete