I hope, someone will help.
I use my forum website like files category system, so I need to upload a lot of files. That's why I want upload files over https://disk.yandex.com/ . But to make it easy I want users be able to do that just by clicking "Add files"
Before phpbb I used to have other forum software where I was able to upload files to yandex disk, get link and paste it into post by just clicking "Add files" via help some codes. Developer made some changes in my forum files.
Firstly, he add file to my server named "yandex.php" below: I looked at yandex.php and saw that this file all about yandex disk, there is no code spesific to my previous forum software.
After that, he made 2 changes in file named dyukle.php: dyukle.php is file that similar to plupload.php in phpbb/
Those changes were below
1) Firstly, adding code below :
Код: Выделить всё
require 'yandex.php';
Код: Выделить всё
echo YandexDisk::uploadFile($_FILES["yukle"]["tmp_name"], $dosya_adi);
$dosya_adresi = YandexDisk::setPublic($dosya_adi);
That's it and I am sure he commented some codes that upload files directory inside server.
After these changes I was able to upload files over yandex disk to my forum.
Now I want to do same thing in phpbb. I upload yandex.php to my server. But I don't know where to add those 2 changes in plupload.php.
Please, help me complete doing this.