1 (edited by hcs 2010-11-25 16:00)

Topic: [Release] Upload images to post

The extension adds a big button to upload the images. After uploading the images in the message is automatically inserted bb-codes.
Required: JQuery, pun_bbcode
Current version 1.1.8
Download: http://punbb.ru/downloads/hcs_image_uploader.zip

Screenshoots:

http://punbb.ru/downloads/img-up/img-up-post.jpg

http://punbb.ru/downloads/img-up/img-up-post-2.jpg

http://punbb.ru/downloads/img-up/img-up-adm.jpg

Re: [Release] Upload images to post

Brilliant,

A lot of people have been wanting this!

Thanks

Re: [Release] Upload images to post

very vey nice!

Re: [Release] Upload images to post

where do the images get uploaded to?
are there options to resize images or cap image sizes?

5

Re: [Release] Upload images to post

Images are stored in the storage /uploads/
Sizes vary in the admin center, see the first message, there is a screenshot
Administration>Settings>Images

Re: [Release] Upload images to post

hi

it states there

Required: JQuery, pun_bbcode


so is it the one on JQuery we are talking about ?

http://code.jquery.com/jquery-1.4.4.js

once i downloaded the content.. where should i put it ?
thanks

7

Re: [Release] Upload images to post

setup this extension for jquery: http://punbb.informer.com/forums/topic/ … cy-jquery/

Re: [Release] Upload images to post

hi i have install the jquery but i am unable to click on the button as well
:i want to download the images:

any idea whats wrong with my installation ?

http://punbb.informer.com/forums/post/138765/#p138765

thanks

9

Re: [Release] Upload images to post

I think in iu_admin.php is missed this line:

'iu_max_file_age'        => $form['iu_max_file_age'],

10

Re: [Release] Upload images to post

demex wrote:

I think in iu_admin.php is missed this line:

'iu_max_file_age'        => $form['iu_max_file_age'],

hmm u mean my issue is due to this missing / replacement code ?
i found 9 with similar code
which one should i change ?
thanks

11

Re: [Release] Upload images to post

in this block of functions

'iu_allow_image'        => $form['iu_allow_image'],
'iu_max_file_size'        => $form['iu_max_file_size'],
'iu_max_width'        => $form['iu_max_width'],
'iu_max_height'        => $form['iu_max_height'],
'iu_thumb_width'        => $form['iu_thumb_width'],
'iu_thumb_height'        => $form['iu_thumb_height'],
'iu_disable'        => $form['iu_disable']

i think is missed one line

'iu_max_file_age'         => $form['iu_max_file_age'],

it should be like this

'iu_allow_image'        => $form['iu_allow_image'],
'iu_max_file_size'        => $form['iu_max_file_size'],
'iu_max_file_age'         => $form['iu_max_file_age'],
'iu_max_width'        => $form['iu_max_width'],
'iu_max_height'        => $form['iu_max_height'],
'iu_thumb_width'        => $form['iu_thumb_width'],
'iu_thumb_height'        => $form['iu_thumb_height'],
'iu_disable'        => $form['iu_disable']

without that line in admin panel we can't change image storage time  smile

12

Re: [Release] Upload images to post

hi demex

thanks for the adv.
i have changed the code and tried to post a new reply / thread but what i am seeing here is the button "i want to download images" but when i click on it... nothing happens as well..

Would that be possible to try it from ur end (localhost) ?
thanks

13 (edited by demo-world 2011-04-03 18:22)

Re: [Release] Upload images to post

Thanks for Script, working fine. I would ask if there is a way that only registered people see these Images ?

By using this Script, bigger images are displayed in a blank window, after disable the script, the pictrure will be shown as popup, which i prefer. Why is that ? Can i change this ?

14 (edited by walsc 2011-04-22 12:04)

Re: [Release] Upload images to post

My users sometimes have trouble with this script: Uploaded images sometimes stay in the temporary folder (...uploads/users/.../.../tmp/...), where they disappear after some minutes.
Why does this happen?

In the upload.php there is a time-limit (set to 5 minutes) for the execution time. Could this be the cause or ist this only the upload-time limit?

    // 5 minutes execution time
    @set_time_limit(5 * 60);
    // usleep(5000);

I would prefer if the uploaded images would not be saved in a temporary folder where they disappear after some time. Uploaded images shold be saved only in the target folder. How can i change this?

15

Re: [Release] Upload images to post

Since nobody seems to do anything on this script any more, ist there an alternative script around?

16

Re: [Release] Upload images to post

Hi folks.

Just downloaded this extension yesterday, installed it and everything looka
great, however, ones I try to upload a picture the submission never goes
through, it just stands there and ticking the upload clock, forever.

What can cause this problem.

17

Re: [Release] Upload images to post

my guess is you need to chmod the folder that the extension uploads files to (I think it is called "uploads"?) so that the script has permissions to write the files to it.

18

Re: [Release] Upload images to post

hklown wrote:

my guess is you need to chmod the folder that the extension uploads files to (I think it is called "uploads"?) so that the script has permissions to write the files to it.

Ok, How do I do that?

19

Re: [Release] Upload images to post

It depends on what FTP software you use. Look in the software's documentation for how to change a file/folder's permissions (CHMOD) and change the uploads folder to something where the user and group have write permission.

20 (edited by crobbe 2011-05-13 16:25)

Re: [Release] Upload images to post

hklown wrote:

It depends on what FTP software you use. Look in the software's documentation for how to change a file/folder's permissions (CHMOD) and change the uploads folder to something where the user and group have write permission.

Ok, done that, it didn't do the trick.

And now that I look, I DO NOT have the "images" link in the administrator area like shown above.

Hmm, this is getting cranky smile

EDIT.

I uninstalled it, redid it, fixed the CHMOD but still dosen't work. It just loads, loads and loads but
the picture never ends up in the forum. It stops at 90-92% and that's that.

21

Re: [Release] Upload images to post

What version of the extension?

22

Re: [Release] Upload images to post

hcs wrote:

What version of the extension?

Version v1.1.7 on PunBB 1.3.5

23

Re: [Release] Upload images to post

Ha ha..., that's what I am looking for. Many forums are powered by PunBB... This will be very useful for me... Thanks a lot.....

24

Re: [Release] Upload images to post

New 1.1.8 version released.
Try it.

25 (edited by walsc 2011-05-15 07:16)

Re: [Release] Upload images to post

I made an update to the new release of hcs image uploader in my testforum. Since then upload does not work any more, only a spinning wheel is shown that does not stop. (ie and ff)
IE reports an error:
Zeile: 18
Zeichen: 947
Code: 0
URI: .../extensions/jquery/j/lib.min.js



And:
In the acp the "storage time" always is "0" and any changes will not be saved.