![]() |
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 |
I'll definitenly install this when I get back to home. Thanks! :)
|
Oh, neat..
This is something I actually thought about yesterday. Thanks. |
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 |
How does it effect to the board's loading and parsing performance? Positive or negative? Oops, same question as MGM's...
|
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--> |
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 |
Quote:
|
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) : |
Installed n working fine for RC3 :)..
|
So how does this affect script code that is enclosed inside <!-- --> ?
|
I just installed. I noticed this script in my page:
Code:
<script type="text/javascript"> |
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 :)
|
Isn't there already an opion to remove comments from output in the regular VB control panel?
|
That just affects template identification comments as far as I know.
|
Yes, this is only for Template-Names itself
|
thanks a zillion, my comments are usually long and very illustrative, which is not good if someone is seeing the page source.
worked like a charm with vbulletin 3.6.2 |
hi, i installed this and was working perfectly, till we found a small bug.
whenever a user is previewing a msg, all the line spacings are gone, though the previewed msg has its original line spacing pattern. uninstalled it cuz some users got annoyed from this happening all the time. Though i didn't mark it here as uninstalled as i think this will be fixed easily. waiting for the update. One question though: how does it affect the overall server load? cuz i think in big forums this is gonna be a serious problem. Also, in the userCP when logged in as moderator/admin the moderate threads page is out of forum size "800px is the size of my forums, it extends a little bit out of this when I installed the pluggin", the moderate posts seems to be working fine though ?!!! |
Ok, will have a closer look on this, thanks for reporting
|
ok thanks, but i had a question about how does this patch affect the server load, any ideas?
|
Quote:
|
It is amazing, I was thinking that I needed something to help clean up the ugly vbulletin source code. It took about 20 seconds to stumble upon this and I feel like I hit the jackpot. I even thought I was going to have to modify the regexp to get rid of the blank lines but you have already done that also :)
I am having one problem though, for me it is getting rid of all the blank lines but not the comments. I have both options enabled in the admincp (General Options) and I am not sure what else it could be. At first I thought it was because I was running vbcmps but then I realized that the script was removing the blank lines. If you have any ideas it would be greatly appreciated. Once again, great product, thanks a bunch. |
I uninstalled then reinstalled the product and everything seems to work great now! Thanks again!
|
this hack caused some serious problems in 3.6.8 with certain plugins not working for guests, but it took me awhile to discover it, since I am usually logged in as admin ;)
I disabled all plugins, and then enabled them one by one until I came upon this one as being the problematic one. I suggest exercising great caution when using this in 3.6.8 |
Hmmm, working fine here on vB3.6.8
What addons/functions stopped working? what was the problem/error? |
Quote:
|
BTW, simply add 'and $show['guest'] == True' to the conditional prior to the code that strips line breaks, and the editor preview/quote problem will disappear for members.
|
can you update this for 4.0.5 ?
|
All times are GMT. The time now is 05: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|