nova4x ...but I found a problem...
flagrow/upload extension names the uploaded files using the colon to uniquely identify the files with upload hour:minutes:and-then-original-filename.ext
When you FTP your site or you backup/restore it, I don't know why, but the colon is substituted by the underscore and you lose the links and all the images disappear from your post
I often tell that I graduated as software engineer in 1991 but 10 years ago I became a professional forex trader instead of developing Automatic Trading Systems for banks and other institutions
I have a professional knowledge of C#/.NET + mql4 + cAlgo + SQL + plain CSS all the tools I used to develop my own Automatic Trading System and now to constantly improve it
I have only a poor knowledge of PHP and I never heard before about LESS, Composer and so on
This to tell that despite my limitations I could EASILY migrate my JOB PRODUCTION SITE to FLARUM simply following the github instructions
Now I'm HIGHLY customizing my site as relaxing activity while my money are running for me and I'm more and more happy of my choose to left DotNetNuke and phpbb/wordpress for FLARUM
Feel free to see or test my PRODUCTION FLARUM site (please use FLARUM TAG) as you can image it's about forex trading
http://nova4x.com
https://nova4x.eu (...and you can test how FLARUM works fine also through cloudflare)
...after my long talk this is the solution for who experiences my same problem
Simply copy the below code in a php script and place it in your site ASSETS/FILES dir and call its url i.e. http://mysite.com/assets/files/myscript.php to restore the colons instead of the underscores
Note: I saw better solutions i.e. global() ... but I'm still learning php!
<?php
$dirs = scandir('.');
foreach ($dirs as $dir) {
if ($dir === '.' or $dir === '..') {
continue;
}
if (is_dir('./' . $dir)) {
$files = scandir($dir, 1);
foreach ($files as $file0) {
if ($file0 === '.' or $file0 === '..' or is_dir('./' . $dir . '/' . $file0)) {
continue;
}
if (substr($file0, 2, 1) == '_' && substr($file0, 5, 1) == '_') {
// echo $dir . '/' . $file0 . ' -> ' . substr($file0, 2, 1) . ' -> ' . substr($file0, 5, 1) . '<br/>';
$file1 = substr_replace($file0, ':', 2, 1);
$file1 = substr_replace($file1, ':', 5, 1);
rename($dir . '/' . $file0, $dir . '/' . $file1);
}
}
}
}
echo 'DONE!';