I've thought that GIF is de-animated when uploading, so that I have to fix the entire uploading algorithm. However, I just found out that the raw gif files with animation have been also uploaded in same directories, with few filename changes.
So, I made it work by changing src attribute of img tag with some javascript. And here's how:
** 1st step:
in theese 3 files below:
ndxzsite/default/index.php
ndxzsite/default/media.php
ndxzsite/mobile/index.php
copy and paste this script tag right above the < / body>
function wakegif(){
var imgtags = $('img');
for(var i = 0; i < imgtags.length; i++ ){
var it = $(imgtags[i]);
var url = it.attr('src');
var newurl = url.replace(/gimgs\/\d+\_/,'gimgs/');
it.attr('src',newurl);
}
};
$(wakegif());
** 2nd step:
in this file below:
ndxzsite/js/ndxzbox.js
in the line between "var lheight;" and "$(document).ready(function()",
which is 17th line in my code; copy and paste this code below:
function wakegif(){
var imgtags = $('img');
for(var i = 0; i < imgtags.length; i++ ){
var it = $(imgtags[i]);
var url = it.attr('src');
var newurl = url.replace(/gimgs\/\d+\_/,'gimgs/');
it.attr('src',newurl);
}
};
and in the same file, which is "jquery.ndxzbox.js"
find the code "processing = false;" and paste this following code in the next line of that
wakegif();
so, it should looks like:
(some other codes)....
...
processing = false;
wakegif();
...
....(some other codes)
in the jquery,ndxzbox.js file, there's five "processing = false;" code. So you have to find and add the code five time in each places.
** step3: That's All!
I hope my instruction is not that bad so you can get some help. :0