زمان کنونی: ۱۰-۲-۱۴۰۳, ۰۵:۵۵ عصر درود مهمان گرامی! (ورودثبت نام)


ارسال پاسخ 
 
امتیاز موضوع:
  • 0 رأی - میانگین امتیازات: 0
  • 1
  • 2
  • 3
  • 4
  • 5
عدم قبول کاراکترهای فارسی در rsform
۳۱-۱-۱۳۹۶, ۰۷:۲۵ عصر
ارسال: #5
RE: عدم قبول کاراکترهای فارسی در rsform
بله فقط قابلیت اضافه کردن پیشوند به نام فایل رو داره تا از ورود اطلاعات تکراری جلوگیری بشه ولی قابلیت تغییر نام فایل اصلی نیستش

یک مقدار جستجو کردم رسیدم به این راه حل

The file to edit would be /administrator/components/com_rsform/helpers/rsform.php around line 2717. Just look for the following code...

$file = $realpath.$prefix.$files['form']['name'][$fieldName];

and change to....

$file = str_replace(" ", "-", $realpath.$prefix.$files['form']['name'][$fieldName]);


You can also replace other odd characters, commas, etc using preg_replace() and a regular expression. The only down side to this is having to edit a core file so if this is used just don't forget to change it again after an update to RSForm Pro. Also don't forget that if there are already files that have been uploaded you'll need to update the names in the database as well as on the server. I can post how to do that if anyone is interested...

ولی متاسفانه فایل هایی که بنده در اختیار دارم انکد شده هستش و قابلیت ویرایش ندارم ...
یافتن تمامی ارسال‌های این کاربر
نقل قول این ارسال در یک پاسخ بازگشت به بالا
ارسال پاسخ 


پیام‌های داخل این موضوع
RE: عدم قبول کاراکترهای فارسی در rsform - xboycooper - ۳۱-۱-۱۳۹۶ ۰۷:۲۵ عصر

پرش به انجمن:


کاربرانِ درحال بازدید از این موضوع: 1 مهمان