Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Remove all (Template-)Comments from any HTML-Output Details »»
Remove all (Template-)Comments from any HTML-Output
Version: 1.00, by MrZeropage MrZeropage is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-05-2006 Last Update: Never Installs: 10
Uses Plugins
 
No support by the author.

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

Don't forget to click INSTALL if you use this



Bugs:
none found yet

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-06-2006, 12:09 PM
manguish manguish is offline
 
Join Date: Apr 2003
Location: UK
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks good - i will try this thanks
Reply With Quote
  #3  
Old 06-06-2006, 01:34 PM
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Location: Istanbul
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #4  
Old 06-06-2006, 07:42 PM
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Location: Buenos Aires
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installing! This is great.

JS would be awesome too!

joke of the day: PHP Comments would be awesome too! :P :P lol
Reply With Quote
  #5  
Old 06-06-2006, 07:45 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like the idea of your mod.

Do you know if this conflicts in any way with this mod?
Reply With Quote
  #6  
Old 06-06-2006, 10:01 PM
bairy bairy is offline
 
Join Date: Oct 2005
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 06-07-2006, 03:43 AM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 06-07-2006, 03:47 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 06-07-2006, 04:30 AM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 06-07-2006, 06:25 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04885 seconds
  • Memory Usage 2,289KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete