vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   Save bandwidth with CSS. (https://vborg.vbsupport.ru/showthread.php?t=85366)

Brad 11-17-2002 10:00 PM

Save bandwidth with CSS.
 
This modification will save you tons of bandwidth. What it dose is point all the <font> tags to one source.

Basicly This:

Code:

<font face="verdana, arial, helvetica, sans-serif" size="2">
Becomes This:

Code:

<font class="nf">
It also blocks users from using custom sized text on your forum via their broswer :).

Buddha 11-18-2002 02:09 PM

don't forget to add the large font sizes as well (if you use it).
i've got a bunch of stuff css'ed as well to save bandwidth. grabbed all of the css headerinclude and put it into it's own stylesheet along with all of my others (include the font size), and then linked it instead.
Quote:

<link href="forum.css" rel="stylesheet" type="text/css">
there's a nice long thread about it at vbulletin.com in their hints and tips.

imported_DemonZ 11-18-2002 02:54 PM

Very nice, Anime-loo.

I am currently using this already, but it's a good Mod.

Brad 11-18-2002 02:58 PM

Just to clarify, i dident make this myself. I belive it came out of the hints and tips forum at vbulletin.com.

filburt1 11-18-2002 04:09 PM

http://www.vbulletin.com/forum/showt...threadid=17943 , specifically.

I for one don't use it because I sometimes do things like <normalfont style="padding:3px"> and this would confuse the browser. :)

Tony G 11-19-2002 03:30 AM

Ahh, thats smart! Nice work. :)

Orfejs 01-30-2003 04:13 PM

At last I found it.
It's miserable, it's fu2#$@#$ that by default vb2 did not used css all over the templates, because it's such a headache without them and all the serious browser support them for years ...

imported_Someguy 02-05-2003 08:48 PM

Thanks, I for one am a 56k user, and I could immeditaly (badd speler, can't u tel?) see the difference.

Mickie D 04-08-2003 05:26 PM

anime loo you have helped me loads of times :)

thanks very much for this mod, all mods that save bandwidth are top mods :)

Tony G 04-09-2003 05:29 AM

I used this, couldn't use the smaller font which looks a bit more stylish though because it's hard for big reso's to see it.

Xelation 04-13-2003 06:05 AM

Thank you god! I've always wondered how certain sites kept people from changing the size of the font... now it stays the same size no matter what their browser setting is... WEEE!! :D

imported_kyouens 05-01-2005 04:56 PM

Why the hell would you want to stop people from changing the font sizes? To DECREASE the accessibility of your page for people with vision troubles, etc? That is contrary to what we all learned in webdesign 101. While it might make your site look cool, it's a bad precedent.

Thug 09-26-2005 02:42 PM

realy i dont understand this bit

Now go to the Styles section of the admin cp and click modify, then pick the style you wish to edit and click [fonts/colors/etc].

Under Larg Font and Normalfont leave the face and size options blank (if they are already filled deleate their contants)

Under the class feild add:

nf

Do the same for small font but under the class feild add this insted of nf:

sf

can anyone help me

clearchannel 10-23-2005 06:17 PM

Quote:

Originally Posted by Thug
realy i dont understand this bit


Now go to the Styles section of the admin cp and click modify, then pick the style you wish to edit and click [fonts/colors/etc].

Under Larg Font and Normalfont leave the face and size options blank (if they are already filled deleate their contants)

Under the class feild add:

nf

Do the same for small font but under the class feild add this insted of nf:

sf


can anyone help me

I have the same issue. I created a new style so as to give my members a choice but I do not find how to complete this part of the instructions

Quote:

Now go to the Styles section of the admin cp and click modify, then pick the style you wish to edit and click [fonts/colors/etc].

Under Larg Font and Normalfont leave the face and size options blank (if they are already filled deleate their contants)
When I click on styles then fonts/colors/etc I do not find the reference to large font. I instead see all style options, common templates, style, etc.

I want to create a new style the members can chose if they do not desire to see all the hoppla.

clearchannel 11-05-2005 05:11 PM

Is there no interest in replying to this message? I am running vB 3.51?

Oh crap, I just realized this is a mod for vB2. How stupid am I......LOL

Is this doable in vB.51?


All times are GMT. The time now is 05:41 AM.

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.01202 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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