Forums / Cotonti / General / rc.php?

foxhound
#35131 2012-08-13 12:02

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="themes/nemesis/js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="themes/nemesis/js/jquery.easing.1.3.min.js"></script>
    <script type="text/javascript" src="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.

 

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />