vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=121872

Remove all (Template-)Comments from any HTML-Output
by MrZeropage
23 Jul 2006 08:47

2 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 23 Jul 2006 12:44

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

KTBleeding 23 Jul 2006 15:22

Oh, neat..

This is something I actually thought about yesterday. Thanks.

MGM 23 Jul 2006 22:27

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 24 Jul 2006 06:11

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

MrZeropage 24 Jul 2006 06:15

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
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

MGM 24 Jul 2006 06:39

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 24 Jul 2006 06:53

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 26 Jul 2006 00:33

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 29 Jul 2006 21:01

Installed n working fine for RC3 :)..

Paul M 29 Jul 2006 21:25

So how does this affect script code that is enclosed inside <!-- --> ?

nevetS 29 Aug 2006 05:53

I just installed. I noticed this script in my page:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It was properly untouched. I haven't tested it extensively, but it seems to do the trick. I don't know the real SEO affect of something like this, but I do like the idea of removing a lot of template-related comments from the code.

MrZeropage 29 Aug 2006 06:04

This was done to remove comments from the templates (so I can put some more information for myself in it without any user getting those information) and not for any SEO-related thing :)

Jaxel 29 Aug 2006 11:34

Isn't there already an opion to remove comments from output in the regular VB control panel?

ForumDog 29 Aug 2006 15:04

That just affects template identification comments as far as I know.


All times are GMT. The time now is 10:45.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.