726

(2 replies, posted in PunBB 1.3 discussion)

You right as user, but for ext developer it functions will be very usefull. Ok, i`m create extensions for this.

727

(2 replies, posted in PunBB 1.3 discussion)

Please add function for add config value in ext code. Now its ugle and may consist more errors like empty "" in PostgreSql DB.

if (!isset($forum_config['o_fancy_js_cache_minify'])) {
$query = array(
    'INSERT'    => 'conf_name, conf_value',
    'INTO'        => 'config',
    'VALUES'    => '\'o_fancy_js_cache_minify\', \'0\''
);
$forum_db->query_build($query) or error(__FILE__, __LINE__);
}

will be good have function forum_ext_add_config($name, $value);

Ext usefull if you have > 2 extensions with own JS/CSS files.

rajuru wrote:

one thing! yslow suggests to put css in head section.

Yes, i know. In punbb CSS always in head, i just move JS in bottom of the page.

It can merge CSS/JS files and minification, and move JS to the bottom of page.
Please, check that cache dir in extension directory have 0777 rights (for write).
You can change default options of ext in FORUM » Administration » Settings » Features in Fancy JS/CSS Cacher Options section.

PunBB 1.3
fancy_js_cache.tar.gz — версия 1.1

PunBB 1.4
fancy_js_cache.zip

I`m sure your extensions will not work correctly, because in CSS files need rewrite url`s in like background: url('//') etc.

Last weeks i`m testing my analogy extensions and now it looks like pretty stable. It can merge CSS/JS files and minification it, and move JS to the bottom of page. You can find my ext http://punbb.informer.com/forums/topic/ … ss-cacher/