Re: Pan Uploader - upload files and images in the post

Is it possible to grant a chmod 644 to new files via a php command ?

for files or folders?
Why do you need it?

Re: Pan Uploader - upload files and images in the post

My main sites and domains are hosted at 1&1 in a cheap shared hosting package.
The files created with a php command, such as the images uploaded with pan_uploader are granted a 604 chmod, which is not enough to use and display them. A minimum 644 chmod is needed and I found no soluce by the hoster help technician to enable it. But he spoke about the php command : CHMOD that I could iimplement in "my" script.
I tried to grasp what was explained there :  http://php.net/manual/fr/function.chmod.php but did not understand what could be done and where.  Remember, that I am no coder ...
Note : Chmod for folders are OK.

Re: Pan Uploader - upload files and images in the post

Find str 102 code

$new_image = $dir_of_image.$base_name;

add after str:

chmod($dir_of_image.$base_name, 0644);

Re: Pan Uploader - upload files and images in the post

I tried, but it does not work.
Here are lines 102 - 103 -104 now in my loader.php file

                    $new_image = $dir_of_image.$base_name;
                    chmod($dir_of_image.$base_name, 0644);
                    list($width, $height) = getimagesize($new_image);

I can choose the file in the loader, but it disappears at the moment when I click on the choosen image.
Then the folder is correctly created with the right chmod, but it is empty : no file in it.

Without this modification, the file is indeed uploaded, but it has a too low chmod (604)

Re: Pan Uploader - upload files and images in the post

With a new test, I see that the pictures are correctly uploaded with the right chmod : 0644. Great !!!!
But I cannot use them immediately, because the loading popup (the square with black background) disappears.
In order to use them, I must  fetch the picture url via ftp and use the image insertion icon.

Re: Pan Uploader - upload files and images in the post

@chmod($dir_of_image.$base_name, 0644);

Re: Pan Uploader - upload files and images in the post

Add the @, but not change :
file is uploaded with correct chmod, but still cannot use it immediately in the post

33 (edited by PanBB.Ru 2016-07-27 10:41)

Re: Pan Uploader - upload files and images in the post

file is uploaded with correct chmod, but still cannot use it immediately in the post

so the file or picture? for the file you want to paste to another area.

where can I watch it?

Re: Pan Uploader - upload files and images in the post

Files or images : I cannot use them, when trying to upload.

- Images : folders and sub-folders are created, the picture is at the right place, with the right chmod 644, but cannot be used immediately in the message, since the popup disappears and i do not know its address.
- Files : folders and sub-folders are also created, but nothing is uploaded and the folder remains empty.

URL is in your private message.

Re: Pan Uploader - upload files and images in the post

Updated to 0.3.6 version.

Added:
It allows you to send pictures and files with personal messages.

Re: Pan Uploader - upload files and images in the post

Hello ! Could pan_uploader be used with sc_wysiwyg extension instead of pun_bbcode ?

37 (edited by PanBB.Ru 2016-08-22 17:37)

Re: Pan Uploader - upload files and images in the post

The author of this extension Sam Clarke. As far as I know, this version for PunBB 1.4.1.
Author does not support its expansion . What sense can we do for him his job? You can try to do for yourself.

Re: Pan Uploader - upload files and images in the post

Well : display the pan_uploader icon in its menu bar ... and check if it still works with the sc_wysiwyg  extension.
When I installed sc_wysiwig, the bb_code menubar disappeared and with it the pan uploader icon.

39

Re: Pan Uploader - upload files and images in the post

i have a question, how do I do to only registered members can download the attachments?

Re: Pan Uploader - upload files and images in the post

Hello. Today we are updating to version 0.4 and there a function will be added.

41

Re: Pan Uploader - upload files and images in the post

PanBB.Ru wrote:

Hello. Today we are updating to version 0.4 and there a function will be added.

Thank you!

42 (edited by PanBB.Ru 2017-03-07 20:07)

Re: Pan Uploader - upload files and images in the post

Updated to 0.4.1 version.

To switch to the new version need to perform 3 simple steps.
1. Upload new extension files over old ones.
2. Sign in to the boot Uploader configuration and upgrade them.
3. Refresh your browser cache.

43 (edited by zetrader 2017-03-07 16:16)

Re: Pan Uploader - upload files and images in the post

Hello, i've just installed pan uploader 0.4, when i try to upload/post an image i have this message :
"When you send a message an error has occurred."
My forum is in french, i tried to rename the pan_uploader/lang/French to pan_uploader/lang/Francais but it's the same error so i came back to pan_uploader/lang/French.
I don't have any problem to upload an image in the chat with this live chat (it seems to use a similar button to upload images) :
http://punbb.ru/topic6162-reliz-live-chat.html

44 (edited by zetrader 2017-03-07 17:17)

Re: Pan Uploader - upload files and images in the post

Ok i understood the problem :
- if i use the structure uploads/.../years/month/ i have the "When you send a message an error has occurred."
- if i use the structure uploads/.../user_id/ i can upload images (as admin)

I have Pan Moderator 0.5.6.2 (Allows you to moderate the names of the authors of posts, post the date and date of registration.), i guess the bug in the date structure is because of this, like i have some admin error message about the date with that extension.

Edit :
I have another problem, when i try as user, i can not post an image (each time i have the "your message has caused us to suspect. it will appear after the approval by the moderator"), it always need the admin approval.
How can i disable this suspect / approval behavior ?
Edit 2 : the problem seems again due to Pan Moderator 0.5.6.2, i uninstalled it, and now as user i can upload/post images

Re: Pan Uploader - upload files and images in the post

At the moderator on the settings page, disable message checking.

Have you done all 3 steps when updating the Uploader?
This is very important, especially step 2.

Re: Pan Uploader - upload files and images in the post

0.4 was my first install, it was not an update, so i guess i didn't need the 3 steps for a fresh install ?
Now i see there is new version 0.4.1, so i have to make the 3 steps to change to 0.4.1, what's new in 0.4.1 ?

Re: Pan Uploader - upload files and images in the post

No. 3 steps are necessary only for first installation. For delegation from 0.3 to 0.4.

Re: Pan Uploader - upload files and images in the post

PanBB.Ru wrote:

Updated to 0.4.1 version.

To switch to the new version need to perform 3 simple steps.
1. Upload new extension files over old ones.
2. Sign in to the boot Uploader configuration and upgrade them.
3. Refresh your browser cache.

Hello PunBB.ru !
Are you sure I won't loose any file or images in the update process ? My forum has become a stocking area for our project ...

49 (edited by PanBB.Ru 2017-03-09 04:03)

Re: Pan Uploader - upload files and images in the post

I'm tested this update. But your first testing on test forum.

50 (edited by zetrader 2017-03-09 11:29)

Re: Pan Uploader - upload files and images in the post

Hello, will there be a possibilty to rename images files after upload (without using ftp software) ? If there's a lot of images, with names of files like be596e2f403fdaf73b5e4936383967 it's hard to know which image it is.
In Uploader -> Image -> Upload images -> Copy a link
A way to do it would be to let change the link (rename image) and save,  the idea is the script would rename the file after saving.