UseBB Community

The official board for UseBB help and discussion

UseBB Community » Feature Requests » [COMPLETED] Take css style out of the template

[COMPLETED] Take css style out of the template

Page: 1

Author Post
Member
Registered: Mar 2005
Posts: 92
Location: Rethymno, Crete, Greece
Make the css a seperate file. I think it would really help (in many ways). Although I dont know how the img_dir would get parsed after doing so ..
_______________
Yep I know me,.. thats that guy ..
> Lets script :: The PtokaX Lua Board :: The PtokaX Script Database
« Last edit by Dietrich on Fri Jul 01, 2005 7:43 pm. »
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
I don't know how I would do this. I can create a seperate .php file for the css and pass the img_dir via a GET variable, but it will make the CSS work apart from the template system of UseBB and its advantages (such as output compressing).
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Mar 2005
Posts: 92
Location: Rethymno, Crete, Greece
Maybe something like this would work fine, havent tested it thought..
function GetBufferedFile($filename) {
if ( file_exists( $filename ) && is_writable( $filename )) {
ob_start();
echo fread( fopen( $filename,"r") , filesize($filename) );
$output = ob_get_contents();
ob_end_clean();
return $output;
}
return FALSE;
}
This returns the file contents as a string, that can then be used for anything strings are used for ;).
_______________
Yep I know me,.. thats that guy ..
> Lets script :: The PtokaX Lua Board :: The PtokaX Script Database
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
That way fetching the CSS will cause much more processing time than like it is now.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Mar 2005
Posts: 92
Location: Rethymno, Crete, Greece
Well like it is now it certainly takes _me_ more time to process my css.. ( editing with some program with abilities suited for css editing is definately faster than in my script editor...)
[*edit*] Anyhow, I cant make you do it, if you dont want to.. :(
_______________
Yep I know me,.. thats that guy ..
> Lets script :: The PtokaX Lua Board :: The PtokaX Script Database
« Last edit by Herodes on Sat Mar 26, 2005 1:45 pm. »

Page: 1

UseBB Community » Feature Requests » [COMPLETED] Take css style out of the template

UseBB Community is powered by UseBB 1 Forum Software