1 (edited by PanBB.Ru 2017-04-16 09:39)

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

Two in one! This extension allows you to upload files and images to the PunBB forum. When you try to download large image , it will automatically be cut.

After installing the BB panel code reds will appear a button to upload files and images.
By pressing the pop-up to download the file dialog box .

https://punbb.info/uploads/images/2016/06/06/71a08aeed1de5d2824e9bb086cfe5a95.png

To generate links using the new tag [ file ] Name [/ file ] Size (Num Loads)

In the admin panel, 3 page Settings Images ( lists all downloaded ) and files (the list as well ) .
Once installed, you can set up groups that are allowed to download files and images , and each separately .

You can also customize the types of files and images , and their maximum size to download .
All files and images are downloaded to the folder /uplpads/image/ or /uplpads/files/ , respectively.
Next, the path is formed from the year, month and date , which is logical in my opinion ...

Languages
English
French
Russian

Dependencies :
pan_framework
pun_jquery
pun_bbcode

Tested and works in Opera , Mozilla, Google Chrome ... PaleMoon, Vivaldi, Opera, Edge (for Windows10) and even the native Android browser on my smartphone...
It does not work in IE8 and below .

Pan Uploader will in future be considered as a basis for plug-ins ( Gallery , Multimedia, Video and Audio )

It is important to know!
When installing the extension creates a table in the database to monitor the uploaded files . Try to make a backup copy of the table when reinstalling / extension removal.

To do this, you can use the Pen Backup DB tool , or you can create manually using phpMyAdmin.

Download the extension of Pan Uploader
PS: Thanks to all who participated in the aid : Sempai, Xakker's, MaraKat user for translation into French. And jQuery developers Sebastian Tschan and Anthony Terrien for provided scripts.

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

PanBB.Ru wrote:

T

Dependencies :
pan framework
pun_jquery
pun_bbcode

What does "dependancies" mean ? Are these add-ons compulsory and must be installed before Pan Uploader ?

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2

3 (edited by PanBB.Ru 2016-06-27 05:09)

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

MaraKat wrote:
PanBB.Ru wrote:

T

Dependencies :
pan framework
pun_jquery
pun_bbcode

What does "dependancies" mean ? Are these add-ons compulsory and must be installed before Pan Uploader ?

Yes , it is obligatory. It's just a small library of versatile functions . It is also used , and other extensions .

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

Thanks for the answer. And thanks for reading the long post below, related to my first test of this extension. I hope it is the place and way for a feedback.

I installed every thing on my forum (1.4.4, sqlite3) : the 3 dependencies extensions and pan_uploader.
I had to chmod to 777 the whole folder /upload, recursive mode, ie including every sub-folder and file included, otherwhise, I could not use the image in the forum. (error 403 : access to file required authorization)

I translated the lang file to French (if you want it, just ask), but some English strings remain and I do not know were to look (maybe in an other extension not yet translated ???) : at the bottom of the upload  popup :

Image: (gif,jpeg,jpg,png), max width 700px, max height 500px.
Fichiers: (zip,rar,pdf,epub), max size310Ko.

When I open the first time the image or file manager panel, before uploading any image/file, I get 2 error messages  one at the top of the page

Notice: Undefined variable: all_items in /.../extensions/pan_uploader/files.php on line 40 Notice: Undefined variable: num_files in ...e/extensions/pan_uploader/files.php on line 51 Notice: Undefined variable: num_files in .../extensions/pan_uploader/files.php on line 54 Notice: Undefined variable: num_files in .../extensions/pan_uploader/files.php on line 55

one just above the alert "No file (or image) uploaded

Notice: Undefined variable: all_items in .../homepages/18/d149996993/htdocs/place/extensions/pan_uploader/files.php on line 126 Notice: Undefined variable: result in .../extensions/pan_uploader/files.php on line 153

After I uploaded an image, the error messages disappear (in image manager panel), but  the image is not listed in this page , it says : No uploaded images, even if I can see the uploaded image in the correct folder via ftp and even if I was able to use it in a forum post.

http://image.prntscr.com/image/eef9498591564a2f974b1f9b8dd98786.png

I did not found how I could find easily the url of an image that I just uploaded in order to use it on the forum. I managed to do it only because I had access to ftp ...

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2

5 (edited by PanBB.Ru 2016-06-27 17:59)

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

We did not test the extension on SQLite. But be sure to try to fix the problem.

Thank you.

I am pleased to add the French translation in the extension. Throw off to me in PM .

6 (edited by PanBB.Ru 2016-06-27 20:21)

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

MaraKat, your forum working on SQLite or SQLite3 ?

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

sqlite3

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2

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

well , we will try to check the work on the SQLite3 , but it may take some time.
The results you will see in this thread...

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

Thank you. I'm ready to test whenever you want, if I can be of help. Do you want my French file ?

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2

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

Do you want my French file ?

Yes, put it here and we'll add it to expand. Thank you smile

11 (edited by PanBB.Ru 2016-06-28 10:40)

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

updated version, checked on the work of SQLite3.

Image: (gif,jpeg,jpg,png), max width 700px, max height 500px.
Fichiers: (zip,rar,pdf,epub), max size310Ko.

When I open the first time the image or file manager panel, before uploading any image/file, I get 2 error messages  one at the top of the page

This message warns the user about which files are available for download to the server.

last updated version 0.3. Download from first post.

12 (edited by MaraKat 2016-06-28 10:58)

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

Thanks for this quick update. Sorry for my quick and direct speech, I do not mean to be rude or critical, just factual. wink

For the lang file, I am not authorized to upload any file here.

For the new release, it's worse than the previous one. Every problem is the same as described yesterday. Moreover, I was not able to use the newly uploaded image on the forum, even If I can see it in ftp. Images uploaded yesterday are usable.

I had to chmod also the new image to 777, while I had configured yesterday the parent folders to this value. It means that (at least on my server), every new folder /file has to be given chmod individually if it is created by a php command. It will not be really practical.

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2

13 (edited by PanBB.Ru 2016-06-28 11:34)

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

For the new release, it's worse than the previous one. Every problem is the same as described yesterday. Moreover, I was not able to use the newly uploaded image on the forum, even If I can see it in ftp. Images uploaded yesterday are usable.
I had to chmod also the new image to 777, while I had configured yesterday the parent folders to this value. It means that (at least on my server), every new folder /file has to be given chmod individually if it is created by a php command. It will not be really practical.

in file functions.php in function uploader_create_catalog($dir) replace all 700 on 777.
Delete directory uploads.
Reinstall.

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

Okie !!! Also, I am running a new test, for was not aware that I had to install the update from the administration panel, on not only replace the files.
There are some changes, but everything is not running correctly, yet. I come back in minutes to provide a new feedback.

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2

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

You can use the common right 777 , but it is not safe .

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

Well ... even if its not safe, it's what is required to display an image, otherwise, you get an error 403 (requires authorization)

I deleted the upload folder, then modified the functions.php file, turning every 0700 I met into 0777. To no avail : the folders created in the new upload folder (and sub-folders) are still with a 700 chmod, while the individual files are 604. If I do not modify the chmods via ftp, they will not change. Even the folders created via my admin panel at my hoster are useless, since fitted with low chmods. Every time I have to use the ftp protocol to fix them. Host is 1&1 in Germany, with a shared server.

Now, with the new extension (June 28th), display is somewhat modified on admin side :
- the 2 error messages are still there if nothing has been uploaded.
- I can see the 1st uploaded image listed in a table, with its url that I can copy,  but with an error message about time zone :
(the same kind  I had with the attachment extension)


Strict Standards: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in .../extensions/pan_uploader/images.php on line 195 28.06.2016 14:12 → 10.7 kB →

At this stage, I cannot use the image in the forum, though I can see it exists via ftp : I must chmod, manually beforehand.

Now I am going to chmod manually, recursive mode the folder uploads to 0777

And then I can display the image on the forum.

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2

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

Ммм... where I can see it with the bugs ?

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

Answer by MP.

PS : Is there a way to view or receive an alert when one receive a new MP ?

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2

19 (edited by PanBB.Ru 2016-06-28 18:55)

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

I found what the problem was . In fact, it is very difficult to determine from a smartphone . Only with main computer, all become immediately clear.

Just look at how it works ...


Update version 0.3.1

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

I installed Pan Uploader 0.3.1, but I see no difference with previous, sorry ... Same issues as before.

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2

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

Hello !
Pan_Uploader does a perfect job now, with my other hosting provider.
The old one refused to grant sufficient chmod (644) to the newly uploaded files, and with only 604, the images were uploaded in the correct folder, but could not be used unless I corrected the chmod via ftp. Not really easy.

Now, everything is all right, you may add to the description that this great extension was tested with the following browsers in their latest version : PaleMoon, Vivaldi, Opera, Edge (for Windows10) and even the native Android browser on my smartphone : I was able to take a photo and upload it immediately to the forum. Of course, this sounded so easy that I restricted strongly access to Pan_Uploader features. And now guests and new members do not even see the Pan-Uploader icon.

Thank you so much for this add-on.

I have a question now. I want the uploaded photos to be displayed centered in the message. I did not see any possibility with BBcode, so I tried via the CSS, but did not succeed. Can you help, please ?

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2

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

I have a question now. I want the uploaded photos to be displayed centered in the message. I did not see any possibility with BBcode, so I tried via the CSS, but did not succeed. Can you help, please ?

Show on the picture , you need to do... It is bad that we can not attach a screenshot sad

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

http://image.prntscr.com/image/a2ee3b29e22c4c66a08373c2f65bae76.png

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2

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

You will need to configure the main style file which is responsible for the content. Uploader is not to blame...
I can help you only after the weekend.

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

Hello !
Back with this chmod problem.
Is it possible to grant a chmod 644 to new files via a php command ? This could help me use Pan_uploader with my main hosting provider.

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2