vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Remove all (Template-)Comments from any HTML-Output (https://vborg.vbsupport.ru/showthread.php?t=117790)

MrZeropage 06-05-2006 10:00 PM

Remove all (Template-)Comments from any HTML-Output
 
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

manguish 06-06-2006 12:09 PM

Looks good - i will try this thanks ;)

Atakan KOC 06-06-2006 01:34 PM

Thanks ;)

COBRAws 06-06-2006 07:42 PM

Installing! This is great.

JS would be awesome too!

joke of the day: PHP Comments would be awesome too! :P :P lol

Freesteyelz 06-06-2006 07:45 PM

I like the idea of your mod. :)

Do you know if this conflicts in any way with this mod?

bairy 06-06-2006 10:01 PM

It's a simple search/replace, doubtful they'll be a conflict with anything of a similar nature.

One thing to remember is that some mods (e.g. visitors in the last 24 hours) insert their data into the template using the comments to find their position.
In other words, using this hack may stop others from displaying their output.

Zia 06-07-2006 03:43 AM

hi MrZeroPage,
Really nice to see that u r even walks in different path rater than ibpro :)

Would u mind to say..what is the benifit of this plugins plz? Faster Page Loading or any thing els ?


Thanx in Advance Man.

Adrian Schneider 06-07-2006 03:47 AM

Quote:

Originally Posted by Zia
hi MrZeroPage,
Really nice to see that u r even walks in different path rater than ibpro :)

Would u mind to say..what is the benifit of this plugins plz? Faster Page Loading or any thing els ?


Thanx in Advance Man.

It will make the HTML file they download smaller, which will speed things up for them a bit.

MrZeropage 06-07-2006 04:30 AM

Quote:

One thing to remember is that some mods (e.g. visitors in the last 24 hours) insert their data into the template using the comments to find their position.
In other words, using this hack may stop others from displaying their output.
No problem if you make sure my PlugIn runs at least, so others can use comments for their insertions and after that my PlugIn will remove the comments :)

Quote:

Would u mind to say..what is the benifit of this plugins plz? Faster Page Loading or any thing els ?
Benefit is that you can write more internal things in the Template-Comments as you don't have to mind they will ever be readable in User's Browser ;)

Boofo 06-07-2006 06:25 AM

Quote:

Originally Posted by MrZeropage
No problem if you make sure my PlugIn runs at least, so others can use comments for their insertions and after that my PlugIn will remove the comments :)

Benefit is that you can write more internal things in the Template-Comments as you don't have to mind they will ever be readable in User's Browser ;)

How can you make sure it runs last?


All times are GMT. The time now is 10:27 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.01759 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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