Welcome, Guest. Please Login or Register.
May 20, 2024, 02:16:17 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  General Category  |  Feedback  |  RE: Reducing bandwidth (even more!) « previous next »
Pages: [1] Reply Ignore Print
Author Topic: RE: Reducing bandwidth (even more!)  (Read 1941 times)
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
RE: Reducing bandwidth (even more!)
« on: January 24, 2002, 07:14:37 PM »
Reply with quote

Would it make sense to leave the CSS stuff in a separate file?

I think it would as it's about 2K and is loaded every time. Surely it would make sense to put this in the HEAD section instead:

<LINK HREF="path/to/yabb.css" TYPE="text/css" TITLE="YaBB Stylesheet">

This way the browser would have a cached copy (and it would be easier to try different colour schemes). It would make YaBB use even less bandwidth!  ;D
Logged

You can't have everything... where would you put it? -- Steve Wright
alexrolko
Guest
RE: Reducing bandwidth (even more!)
« Reply #1 on: January 24, 2002, 08:52:44 PM »
Reply with quote

Some sense, but then things like the template editor would become a touch more complicated... and then theres another file for board owners to loose, or muck up, and then using the correct link to the file.
Logged
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Granted, but then it does have it's plusses
« Reply #2 on: January 24, 2002, 09:00:14 PM »
Reply with quote

I'll grant you the fact that people much up their boards, but it does have the following advantages...

@ People can create different colour schemes  :)
@ It's 2K off the size of each file - if pages average 60K that's a 3% saving, which is a lot for a bandwidth hungry site.  :)
@ It's only one more file, and it can be easily covered by an FAQ.
@ It might make multiple board customisation easier in the future  :-\

I think the benefits outwiegh the disadvantages especially for a modular project like YaBB SE
Logged

You can't have everything... where would you put it? -- Steve Wright
alexrolko
Guest
Re:Granted, but then it does have it's plusses
« Reply #3 on: January 24, 2002, 09:24:33 PM »
Reply with quote

Quote from: Gandalf on January 24, 2002, 09:00:14 PMI'll grant you the fact that people much up their boards, but it does have the following advantages...

@ People can create different colour schemes  :)
@ It's 2K off the size of each file - if pages average 60K that's a 3% saving, which is a lot for a bandwidth hungry site.  :)
@ It's only one more file, and it can be easily covered by an FAQ.
@ It might make multiple board customisation easier in the future  :-\

I think the benefits outwiegh the disadvantages especially for a modular project like YaBB SE

Yup  :D  and as for the usage of a seperate document, it would be easy to make a MOD that would allow users to choose a color scheme  :)
Logged
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
RE: Reducing bandwidth (even more!)
« Reply #4 on: January 24, 2002, 09:30:29 PM »
Reply with quote

Exactly: Avatars, smilies, colour schemes - YaBB is the ultimate in customisation!  ;D
Logged

You can't have everything... where would you put it? -- Steve Wright
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
RE: Reducing bandwidth (even more!)
« Reply #5 on: January 24, 2002, 11:05:50 PM »
Reply with quote

Quote from: Gandalf on January 24, 2002, 07:14:37 PMWould it make sense to leave the CSS stuff in a separate file?

Of course! ;)

The first thing I did when I put my board up was to link it to a separate style sheet, but then I stuck all the styles back in the HTML template because it was quicker to experiment with the settings that way. Although I've just been back tonight to separate them again now I'm fairly happy with the appearance...

Now, if you could modify a separate CSS template through your browser instead of having to save it to hard disk and FTP it, that would be something! 8)

PS There's no reason why you couldn't have a choice of an all-in-one HTML template or separate HTML and CSS. It would only require one simple, reversible decision at the install stage.
« Last Edit: January 24, 2002, 11:51:22 PM by Peter Duggan » Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
RE: Reducing bandwidth (even more!)
« Reply #6 on: January 24, 2002, 11:36:05 PM »
Reply with quote

Another slightly cumbersome thing about working online with a separate style sheet is that, if you want to add new styles and classes (as I've done), you have to edit both HTML and CSS to see the effect. Ideally the admin section would let you open both together in the same window to edit and save simultaneously, but I don't know how easy that would be to implement on the PHP side?
Logged

PabUK
Full Member
***
Posts: 136


I eat llamas!

WWW
RE: Reducing bandwidth (even more!)
« Reply #7 on: January 25, 2002, 01:24:43 AM »
Reply with quote

I am all for reducing bandwidth, good idea!
Logged


944 Topics, 15010 Posts, 180 Members as of 30th April
Michael
YaBB God
*****
Posts: 782


Recursion \Re*cur"sion\, n. - See recursion.

ICQ - 47769041mrtorrent@hotmail.com WWW
RE: Reducing bandwidth (even more!)
« Reply #8 on: March 08, 2002, 08:56:19 PM »
Reply with quote

Yeah, I've always thought that having the CSS in every page was a bit of a drag and just annoying to look at when you view the completed HTML source. There's a couple pros for keeping the CSS separate:

1) You can change the entire look of your board without changing the physical structure, simply by swapping .css files.
2) This opens up a whole new avenue for customization: if a feature is added to allow users to choose their own template, not only is there the option to change the layout of things in the forums by choosing different template.html files, but they can have every different kind of structure in any flavor they want! They can choose a "layout" and a "theme," ya know?
3) Following along with #2, yabb forum admins can easily swap templates without having to go edit every template file to fit the physical layout of their forum. Much more convenient. ;)

As for editing the template and the theme, you could either put them both on the same page or provide a separate link for each.

Btw, is anyone doing something to allow users to choose their forum theme/template? Last night I wrote up a quick mod for this for SP1. If no one's doing anything for SE, I'll write something for it when I get a chance.
Logged

~ Michael ~
--------------
The MikeCam
I went to the Net and all I got was this stupid tagline.
Ben_S
Disciple of Joe
Support Team
YaBB God
*****
Posts: 1586


I Love YaBB SE!

WWW
RE: Reducing bandwidth (even more!)
« Reply #9 on: March 08, 2002, 10:06:40 PM »
Reply with quote

Ohhh you have to make that for SE, I'v been using something similar but it wasnt integrated with the forum, just set the selected CSS from a cookie. That as a mod for SE would be tops
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
RE: Reducing bandwidth (even more!)
« Reply #10 on: March 09, 2002, 05:08:16 AM »
Reply with quote

hrmm.. an extra little textarea to edit the css would make the lazies happy ;)
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Dave Smulders
YaBB SE Developer
YaBB God
*****
Posts: 608


WWW
RE: Reducing bandwidth (even more!)
« Reply #11 on: March 13, 2002, 06:05:58 PM »
Reply with quote

Well....I can make it optional....if one creates a template.css, automatically the edit screen would be added to the template-editing screen.
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  General Category  |  Feedback  |  RE: Reducing bandwidth (even more!) « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.364 seconds with 20 queries.