PDA

View Full Version : Version number


vbfan4life
08-30-2008, 11:34 PM
I'm having a bit of a difficult time figuring this problem out, and I'm sorry if it's been asked and answered before.

What I'm trying to do is remove this from the header, when people access the source:

<!-- CSS Stylesheet -->
<style type="text/css" id="vbulletin_css">
/**
* vBulletin 3.7.3 CSS
* Style: 'DarkVB'; Style ID: 2

Ideally, I'd like to remove the whole CSS code, as it's really not neccessary to kick that out in the header. But my main goal is to suppress the version number. Now, I tried to modify this code in the adminfunctions_template.php file in the includes folder:

$fullcsstext = "<style type=\"text/css\" id=\"vbulletin_css\">\r\n" .
"/**\r\n* vBulletin " . $vbulletin->options['(C) Copyright, 2000-2008 JelSoft Software'] . " CSS\r\n* Style: 'Available Upon Request'" .
"$css\r\n</style>\r\n" .
"<link rel=\"stylesheet\" type=\"text/css\" href=\"clientscript/vbulletin_important.css?v=" . $vbulletin->options['simpleversion'] . "\" />"

But it appears to have made absolutely no impact at all.

Plus, I'd like to remove this from the header, as it's a potential security risk:

<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_important.css?v=373" />

<!-- / CSS Stylesheet -->

<!--
var SESSIONURL = "";
var SECURITYTOKEN = "REMOVED";
var IMGDIR_MISC = "images/dark_vb/misc";
var vb_disable_ajax = parseInt("0", 10);
// -->
</script>
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=373"></script>
<script type="text/javascript" src="clientscript/vbulletin_menu.js?v=373"></script>

Any suggestions? Thanks in advance.

Lynne
08-31-2008, 02:40 AM
I'm the person who mentioned the file to look in for the fullcsstext. Did you remember to go and save a style after you changed it?

I really have no clue about changing the other lines. I'm also wondering if it will really make a difference securitywise if you do remove those lines.

SEOvB
08-31-2008, 03:03 AM
security by obscurity never works if thats the goal.

If your looking to remove that code, check the regular function.php files and not the ones prefixed with adminfunctions

Lynne
08-31-2008, 03:27 AM
The adminfunctions script I was referencing for him was (I thought) the one to actually write the css to a file in your admin cp (when you edit the Main CSS for the style and then hit Save). He wanted to remove those couple of lines at the top of the css file that says the version number. I did a search through the files for "Style:" and came up with those lines in that file. I don't really know if changing the lines there will work since I didn't try it.

vbfan4life
08-31-2008, 12:34 PM
@Lynne:

Yeah, what's really surprising is that I found the exact text for the output in the adminfunctions file, and it made absolutely no difference. vB even appears to run if I delete the entire file.

Here's what I've changed that code to, uploading it to the includes folder:


$fullcsstext = "<style type=\"text/css\" id=\"vbulletin_css\">\r\n" .
"/**\r\n* vBulletin " . $vbulletin->options['Copyright 2000-2008 JelSoft Software'] . " CSS\r\n* Style: 'Available Upon Request'" .
"$css\r\n</style>\r\n" .
"<link rel=\"stylesheet\" type=\"text/css\" href=\"clientscript/vbulletin_important.css?v=" . $vbulletin->options['Copyright 2000-2008 JelSoft Software'] . "\" />"



it makes absolutely no difference, because it continues to run on as if I made no change.

I know that obscurity doesn't prevent anything; after all, all one needs to do is scroll down, and they'll learn what theme I use, and what version I use when they see what stylesheet is called up, but I just don't want it to be obvious. As soon as you open the source, there it is. I guess I'm just paranoid is all.

I'll look into the functions.php file, but again, ideally I want to eliminate these two things:


<style type="text/css" id="vbulletin_css">
/**
* vBulletin 3.7.3 CSS
* Style: 'DarkVB'; Style ID: 2
*/


and, if possible, this, which is right before the title:


<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_important.css?v=373" />


Does anyone know what needs to be edited in the functions.php? All I can find for the version is the code for the footer, and I obviously don't want to modify that, since I've already set it to show the copyright minus the actual version number.

Lynne
08-31-2008, 03:30 PM
I'm not sure why changing that file had no effect for you. I just made a small change in that line (added an "x" in there), uploaded that file, saved the Main CSS in my style, refresh my vb page, looked at the source code and it showed up for me. I then tried deleting the file and I could not save my css. I'm not sure at all why it is having no effect for you.

vbfan4life
08-31-2008, 05:05 PM
I'm not sure why changing that file had no effect for you. I just made a small change in that line (added an "x" in there), uploaded that file, saved the Main CSS in my style, refresh my vb page, looked at the source code and it showed up for me. I then tried deleting the file and I could not save my css. I'm not sure at all why it is having no effect for you.

It's puzzling, to say the least. I've tried clearing my cache, and refreshing, yet it doesn't "take" the changes in the adminfunctions file. I guess I just have to live with it; it seems to be a lost cause.

EDIT: I got it!! :) I had to go back and resave the CSS file. D'oh.

MoT3rror
09-01-2008, 05:35 AM
Set $vbulletin->options['simpleversion'] to nothing in global_start or another plugin around then should take a away the 373.

abdobasha2004
10-05-2013, 04:10 AM
if you still want to delete it remove the line in adminfunctions_template.php and after that rebuild the styles

Digital Jedi
10-05-2013, 04:31 AM
Doh! 2008. ;)