Hello @gabor-udvari
I'm using your fork branch on my site. I'm facing a new problem. The uploads working fine.
As of now my files are organized by month and year.
The problem is when the month changes, old month images are broken. I guess the problem is aux_image function in this file (line number 372 ) https://github.com/gabor-udvari/Magic-Fields-2/blob/fork/mf_front_end.php uses the current upload directory constant to retrieve the image.
I mean in this file https://github.com/gabor-udvari/Magic-Fields-2/blob/fork/mf_constants.php
you used
$mf_ud = wp_upload_dir();
if( mf_mu2() ){
/* MU path /wp-content/blogs.dir/{id_blog}/files_mf */
define('MF_FILES_DIR', WP_CONTENT_DIR.DS.'blogs.dir'.DS.$blog_id.DS.MF_FILES_NAME.DS);
define('MF_FILES_URL', WP_CONTENT_URL.'/blogs.dir/'.$blog_id.'/'.MF_FILES_NAME.'/');
define('MF_CACHE_DIR', MF_FILES_DIR.MF_CACHE_NAME.DS);
define('MF_CACHE_URL', MF_FILES_URL.MF_CACHE_NAME.'/');
}else{
define('MF_FILES_DIR', $mf_ud['path'].DS.MF_FILES_NAME.DS);
define('MF_FILES_URL', $mf_ud['url'].'/'.MF_FILES_NAME.'/');
define('MF_CACHE_DIR', MF_FILES_DIR.MF_CACHE_NAME.DS);
define('MF_CACHE_URL', MF_FILES_URL.MF_CACHE_NAME.'/');
}
But i'm not sure. Can you fix that problem? Thanks
Hello @gabor-udvari
I'm using your fork branch on my site. I'm facing a new problem. The uploads working fine.
As of now my files are organized by month and year.
The problem is when the month changes, old month images are broken. I guess the problem is aux_image function in this file (line number 372 ) https://github.com/gabor-udvari/Magic-Fields-2/blob/fork/mf_front_end.php uses the current upload directory constant to retrieve the image.
I mean in this file https://github.com/gabor-udvari/Magic-Fields-2/blob/fork/mf_constants.php
you used
But i'm not sure. Can you fix that problem? Thanks