:::
Tad Uploader 檔案上傳模組
「根目錄」無法設定權限
那得改程式啦~
把 /modules/tad_uploader/templates/tad_uploader_index.tpl 的 259 行(<option value="0"><{$smarty.const._MD_TADUP_ROOT}></option>)刪掉應該就行了
把 /modules/tad_uploader/templates/tad_uploader_index.tpl 的 259 行(<option value="0"><{$smarty.const._MD_TADUP_ROOT}></option>)刪掉應該就行了
或許使用寫個簡單的js判斷一下就好,在樣板tad_uploader_index.tpl加入
<script type="text/javascript">
$(document).ready(function() {
$("form").submit(function(event) {
var path = $(this).find("select[name='add_to_cat']").val();
var new_cate = $(this).find("input[name='creat_new_cat']").val();
if(path == 0 && new_cate.length == 0) {
swal("根目錄不能上傳喔,請重新選擇目錄或新增目錄")
return false;
}
return true;
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$("form").submit(function(event) {
var path = $(this).find("select[name='add_to_cat']").val();
var new_cate = $(this).find("input[name='creat_new_cat']").val();
if(path == 0 && new_cate.length == 0) {
swal("根目錄不能上傳喔,請重新選擇目錄或新增目錄")
return false;
}
return true;
});
});
</script>
如果是這樣,那問題就不單純了
即可能有自訂樣板在做怪...
把 /themes/使用的佈景/modules/ 底下的東西都刪光試試
即可能有自訂樣板在做怪...
把 /themes/使用的佈景/modules/ 底下的東西都刪光試試

