cotonti.com : rc.php? https://www.cotonti.com Neueste Themenbeiträge Cotonti en Thu, 16 Oct 2025 13:26:21 -0000 elfrenazo I'm using it without problems, and have many scripts

]]>
Di, 14 Aug 2012 16:35:17 -0000
Kingsley #35132 GHengeveld:

Correct. You should not use minified javascripts with rc_add because it may cause problems (not always). It's best if you just download the original js source, use that instead and let Cotonti handle the minification.

Well, this sheds some light on some of my 'problems'... thankssssssss

 

]]>
Mo, 13 Aug 2012 15:41:22 -0000
foxhound Thanks for the confirmation. I can stop banging my head now.

]]>
Mo, 13 Aug 2012 15:08:11 -0000
GHengeveld Correct. You should not use minified javascripts with rc_add because it may cause problems (not always). It's best if you just download the original js source, use that instead and let Cotonti handle the minification.

]]>
Mo, 13 Aug 2012 13:30:39 -0000
foxhound Sorry to dig up an old thread but in relation to this:

[quote]Compresses JS/CSS files with GZIP[/quote]

Does that mean any js files specified in the rc.php should not be minified already?
I am asking that cause any javascript file I add there seems to not work. If i add the script normally in the header.tpl it works just fine.

I have this in my header:

    <script type="text/javascript" src="https://www.cotonti.com/themes/nemesis/js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="https://www.cotonti.com/themes/nemesis/js/jquery.easing.1.3.min.js"></script>
    <script type="text/javascript" src="https://www.cotonti.com/themes/nemesis/js/jquery.wt-rotator.min.js"></script>

which works (the slider using this javascript).
However, if i disable those in my header and activate these lines in my rc.php than it (the slider using this javascript) does not work:

cot_rc_add_file('themes/nemesis/js/jquery-1.7.1.min.js');
cot_rc_add_file('themes/nemesis/js/jquery.wt-rotator.min.js');
cot_rc_add_file('themes/nemesis/js/jquery.easing.1.3.min.js');

I am really lost and do not see what I am doing wrong if my above assumption is not correct.

 

]]>
Mo, 13 Aug 2012 12:02:52 -0000
Trustmaster
  • Controls caching of static files (which saves poor IE users, because IE cannot control cache itself)
  • Compresses JS/CSS files with GZIP
]]>
Di, 28 Jul 2009 19:02:37 -0000
Kilandor
Its usefull for people if they decide to share plugins across multiple sites.]]>
Di, 28 Jul 2009 17:48:04 -0000
DemptD
rc.php...]]>
Di, 28 Jul 2009 12:12:10 -0000