Rodolfo said:
I don't think 'cause is original_name var !!!
In this case ( Keep basename in the image upload name succeed ) - When you upload multi pic , the page will display is
http://sitename.com/?uploaded ----> not error ( pics upload succeed , and link good )
And when you upload just one pic , when we uploaded a pic has name AB CD.png , the page will display is
http://sitename.com/?v=AB%20CD_MDs0h.png ---> it will error , 'cause the link of pic is
http://sitename.com/images/AB CD_MDs0h.png .
So , we just fixed the page display when uploaded just 1 pic like upload multi pic
So i change some code in peafowl.php by this way :
1/ in peafowl.php - find this
Code:
if(data.filesUploaded==1) {
window.location = "<?php echo __CHV_RELATIVE_ROOT__; ?>?v="+ImagesUp;
2/ Replace it by this
Code:
if(data.filesUploaded==1) {
window.location = "<?php echo __CHV_RELATIVE_ROOT__; ?>?uploaded";
3/ In content/themes/peafowl/view.php , find this
Code:
<div class="input-item"><label for="viewer-link"><?php show_lang_txt('txt_show_viewer_link'); ?>:</label> <input type="text" id="viewer-link" value="<?php show_img_viewer(); ?>
replace it by this
Code:
<!-- <div class="input-item"><label for="viewer-link"><?php show_lang_txt('txt_show_viewer_link'); ?>:</label> <input type="text" id="viewer-link" value="<?php show_img_viewer(); ?>" /></div> -->
And problem will be fixed , all error of this mod will fixed
Tested succeed in my site