1 (edited by keeshii 2016-02-10 21:52)

Topic: [Extension] om_images 1.4.2.07

om_images
This extension saves the copy of images from img/url tags on the server.

om_images 1.4.2.07 (current): om_images-1.4.2.07.zip
om_images 1.4.2.06: om_images-1.4.2.06.zip


Changelog:
1.4.2.07 - 2016-02-10
quick reply request correction.
processing images with get params.

1.4.2.06 - 2014-09-16
compability with php 5.5

1.4.2.03 - 2013-11-24
fixed issue with tag [img=title]url[/img]


How it works:

  • when user is posting, all images pointed by img tags will be downloaded by server, links will be updated

  • only jpeg, gif and png images are processed, other links are omitted

  • admin may set the max. width/height and size of downloading images

  • user may disable this feature, so no images in his post will be processed

  • when editing, old images will stay, new will be downloaded, unused will be removed

  • if post is deleted, the images are deleted as well

Writting this extension was tricky, because posts may be deleted in many places, may be moved, etc. I have tested my extension on pure punbb installation. And I don't guarantee this extension will cooperate with other plugins that are manipulating on the posts - it wolud be nice, if you check it before installing on the production. My plugin is working correctly with pun_move_posts.

Screenshots:
http://dev.ryuu.eu/distfiles/punbb/om_images1.png
http://dev.ryuu.eu/distfiles/punbb/om_images2.png

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

2 (edited by kudataz 2013-11-24 21:19)

Re: [Extension] om_images 1.4.2.07

nice ext guru.
i try post ex:

[img=226x112]http://punbb.informer.com/img/slick_punbb/logo_2_left.png[/img]

the result after submit post is

[img=http://domain.com/extensions/om_images/img/logo_2_left.png]226x112[/img]

how to solve this sir, please ur help big_smile

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

Re: [Extension] om_images 1.4.2.07

Fixed. Gezz.... why it must be completly different than in url tag tongue

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

Re: [Extension] om_images 1.4.2.07

BTW sir, how to insert image in other domain..? #suggest
ex: main domain

http://www.situs.com

how to make images, save in other folder website? ex:

http://cdn.situs2.com

please ur help big_smile

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

Re: [Extension] om_images 1.4.2.07

Unfortunately there is not an easy way to do that. Right now there is one unique folder per post - when post is removed, the whole folder is removed as well. For this feature it will be easier to write a new extension than modyfing this one.

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

Re: [Extension] om_images 1.4.2.07

keeshii wrote:

Unfortunately there is not an easy way to do that. Right now there is one unique folder per post - when post is removed, the whole folder is removed as well. For this feature it will be easier to write a new extension than modyfing this one.

how about saving in root permalink.. http://site.com/om_images/ (not other website)

eror generated guru..

One:
cant donlod gif image?
eror message here..
Warning! The following errors must be corrected before your message can be posted:
Allowed file types are gif, jpeg and png.
_http://s7.postimg.org/4x8lbio0b/2015_03_12_055340.png

Two:
eror on unchecklist
details on this video _http://kumpulbagi.com/tf/9d9c66e-aa/video2015-03-12060049,288292,gallery,1,1.wmv

Please your help ^^

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

Re: [Extension] om_images 1.4.2.07

Hey!
It's a great extension but it doesn't work while replying a topic, it only uploads pictures added into first post to internal server.

Re: [Extension] om_images 1.4.2.07

Hi, I have corrected the problem you mentioned.

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

Re: [Extension] om_images 1.4.2.07

keeshii. thank you!
it can load multiple images?

10 (edited by batiatus 2016-02-10 17:38)

Re: [Extension] om_images 1.4.2.07

keeshii wrote:

Hi, I have corrected the problem you mentioned.

Thanks for that. But you know some images have session slugs at the end of url, like image.jpg?v=123 or it doesn't even have file type code, in such condition it doesn not upload the photo. You can try it with an url from loremflickr.com

Edit: Now I have a chance to test, it still does not work on replies. I don't know why. Also you forgot putting /img/ folder in new version smile

Re: [Extension] om_images 1.4.2.07

PanBB.Ru wrote:

it can load multiple images?

um... yes, of course.

ok, I have upgraded the extension one more time. Just unzip the downloaded file to the "extensions" folder, then log in as administrator and upgrade the extension (I have added new hooks, so upgrade must be done).

Unfortunately we have to know the extension of the images from the url. Otherwise we would have to download *everything* that occurs in the img/url tags. I figured that checking the files' extension works just fine, the only thing I could do is to improve the regular expression responsible for finding them.

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);