vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to remove vb version shown in "View Page Source" (https://vborg.vbsupport.ru/showthread.php?t=239397)

vicelover 03-30-2010 06:52 AM

How to remove vb version shown in "View Page Source"
 
Hi, guys

when view page source via browser, we find there are some line codes display the version of vb.
Code:

Line 7: <meta name="generator" content="vBulletin 4.0.2" />
Code:

Line 24: var SIMPLEVERSION = "402";
I'd like not show the version info, so how to remove the above two codes?
Thanks in advance.

borbole 03-30-2010 12:30 PM

Quote:

Originally Posted by vicelover (Post 2012700)
Hi, guys

when view page source via browser, we find there are some line codes display the version of vb.
Code:

Line 7: <meta name="generator" content="vBulletin 4.0.2" />
Code:

Line 24: var SIMPLEVERSION = "402";
I'd like not show the version info, so how to remove the above two codes?
Thanks in advance.




At the headinclude template find the following code:

HTML Code:

var SIMPLEVERSION = "{vb:raw vboptions.simpleversion}";
And change it to:

HTML Code:

var SIMPLEVERSION = "";
This will remove the version at
Code:

Line 24: var SIMPLEVERSION = "402";
Whereas to remove it from

HTML Code:

<meta name="generator" content="vBulletin 4.0.2" />
change:

HTML Code:

<meta name="generator" content="vBulletin {vb:raw vboptions.templateversion}" />
to

HTML Code:

<meta name="generator" content="vBulletin" />
Let me know how it will go.

vicelover 04-01-2010 02:11 AM

Hi, borbole, it works like a charm.
Thanks very much.:up:
you can check at my site. :)

raja811 04-02-2010 10:41 AM

thanks

borbole 04-02-2010 01:35 PM

You are most welcome guys :)


All times are GMT. The time now is 07:16 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.01190 seconds
  • Memory Usage 1,724KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete