View Full Version : Template Name in CSS Comments
MoMan
11-27-2009, 04:08 PM
I've disabled the 'show template names in html comments' ACP setting, yet still see this in my styles:
/*
vBulletin 3.8.4 CSS
Style: 'Modern Skin (Green)'; Style ID: 8
*/
Any idea what could be causing this? Thanks!
Lynne
11-27-2009, 04:14 PM
Just do a search for "Style ID:" in your vbulletin files and you'll find where it is getting added and you can modify the text if you want.
It looks like that's added when you save a style from the comtrol panel, includes/adminfunctions_template.php line 809 or so.
(ETA: Lynne was trying to teach you and I went and blurted out the answer... :o).
MoMan
11-27-2009, 04:42 PM
Just do a search for "Style ID:" in your vbulletin files and you'll find where it is getting added and you can modify the text if you want.
It looks like that's added when you save a style from the comtrol panel, includes/adminfunctions_template.php line 809 or so.
(ETA: Lynne was trying to teach you and I went and blurted out the answer... :o).
I'm not on my main PC so I can't run an easy 'search all' over all the files, but I'll have a look at the adminfunctions and see if I can't cut the code out. Thanks for the help!
--------------- Added 1259347793 at 1259347793 ---------------
I'm not on my main PC so I can't run an easy 'search all' over all the files, but I'll have a look at the adminfunctions and see if I can't cut the code out. Thanks for the help!
Edit: Removed this code and rebuilt CSS, and the comments vanished perfectly!
"/**\r\n* vBulletin " . $vbulletin->options['templateversion'] . " CSS\r\n* Style: '$title'; Style ID: $styleid\r\n*/\r\n" .
Thanks again!
Lynne
11-27-2009, 05:13 PM
(ETA: Lynne was trying to teach you and I went and blurted out the answer... :o).
Yeah, that's my style. I try to teach so users can then do some of this stuff the next time on their own. It kinda gives you a sense of accomplishment to do something on your own without having someone tell you. Of course, we are here to help if you break something when doing it on your own. :D
Well I'm trying to learn myself so I've been doing it partly by finding answers for other people (stealing their learning opportunities) - sorry if I'm getting in the way of your style. I've just had some down time, probably I'll be moving on to other things soon. :)
Lynne
11-27-2009, 05:27 PM
Well I'm trying to learn myself so I've been doing it partly by finding answers for other people (stealing their learning opportunities) - sorry if I'm getting in the way of your style. I've just had some down time, probably I'll be moving on to other things soon. :)
Oh, no problem at all! I was just explaining why I do things the way I do.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.