Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Import External Images Details »»
Import External Images
Version: 1.0.5, by y2ksw y2ksw is offline
Developer Last Online: Feb 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.x.x Rating:
Released: 11-06-2010 Last Update: 02-13-2011 Installs: 300
DB Changes Uses Plugins
Additional Files Translations  
No support by the author.

This vBulletin 4 product imports external images in your posts from external servers or paths into a specific path, normally your forum's image folder.

Differently than the previous product Image Cache for vBulletin 3.x., it parses the posts at regular intervals for new images and replaces the external references in the background. Also, instead of using only a single folder, it creates folders for years and months, making it much easier to handle large quantities of images. The source and destination image URL's are stored into database, too, avoiding unnecessary duplicates.

It moves and optionally converts images from one place to another. It is a handy tool in order to keep your images local to your forums.

Version 1.0.4 is temporarily in BETA stage until the users have confirmed the newly requested features.
Version 1.0.5 is still in BETA stage. It adds a new bunch of additional features, one of which allows you to test your mathematical understanding ... and a few other to fine-tune CURL and socket timeouts, and resizing on the fly of too large images. If you don't know what these options do, please leave them at their default values.

Download Now

File Type: zip 1.0.2.iei4.zip (80.0 KB, 477 views)
File Type: zip 1.0.4.iei4.zip (84.5 KB, 185 views)
File Type: zip 1.0.5.iei4.zip (87.5 KB, 2158 views)

Screenshots

File Type: jpg 08-11-2010-11.32.53.jpg (112.4 KB, 0 views)
File Type: jpg 02-02-2011-22.06.39.jpg (126.0 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #432  
Old 12-06-2012, 07:14 AM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tourajabbasi View Post
Hi,

My server suddenly stopped importing pictures...
can you tell me which settings do i have to check ?
(sockets, curl, fopen) where are they in the server?

We are using dedicated server / centos 6 / 64bit

Thank you
You first should check if your firewall allows to pull in external data, before anything else. Then, if PHP allows to use fopen on external sources, then which options are checked. If fopen does not allow to pull data, you must have CURL instead. The plugin prefers CURL over sockets and falls back to sockets, unless you choose to use only sockets.
Reply With Quote
  #433  
Old 12-16-2012, 12:53 AM
Manoel J?nior Manoel J?nior is offline
 
Join Date: Feb 2009
Location: SP / Brasil
Posts: 778
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by y2ksw View Post
One of the possible issues are missing space, but also server settings. If your server disallow pulling in external content (sockets, curl, fopen) it is likely not working.
Searching deeper, more exactly in error_log me this message appears:

Code:
[16-Dec-2012 00:33:19 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 2800 bytes) in /home/test/public_html/forum/includes/cron/iei_cron.php on line 92
Was that why the product is not working properly? What should I do?
Reply With Quote
  #434  
Old 12-18-2012, 03:36 PM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Manoel J?nior View Post
Searching deeper, more exactly in error_log me this message appears:

Code:
[16-Dec-2012 00:33:19 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 2800 bytes) in /home/test/public_html/forum/includes/cron/iei_cron.php on line 92
Was that why the product is not working properly? What should I do?
I think the product tried to load a huge image. PHP usually has a space limit and in this case it has 128 MB per process and this memory ran out of space. Maybe you need to enable the image resizing and trim imported images down to a suitable limit.
Reply With Quote
  #435  
Old 12-19-2012, 11:30 PM
Manoel J?nior Manoel J?nior is offline
 
Join Date: Feb 2009
Location: SP / Brasil
Posts: 778
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi y2ksw,

That even when not doing more cache have to put the value 0 in attributes: Maximum Width and Maximum Height.

When I put 0 value stopped giving error and now is doing the caching of images.

Thanks for all the help and serves as a warning to others.
Reply With Quote
  #436  
Old 12-22-2012, 01:16 PM
Doganay YILDIZ Doganay YILDIZ is offline
 
Join Date: Feb 2011
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a problemmi? Pictures ftp uploading beautifully. However, I opened the new topics added almost 6 hours but still ftp. What's the problem?
Reply With Quote
  #437  
Old 12-26-2012, 05:36 AM
cylon1 cylon1 is offline
 
Join Date: May 2011
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear friends:

This extension is amazing, I use it since months, and all works very well. The only problem is that, I'm using a vps with limited resources (apache, 512Mb ram). I've noticed that one of the slowest sql in my vps is the following:

Code:
# Query_time: 16.976461  Lock_time: 0.000214 Rows_sent: 0  Rows_examined: 278721
SET timestamp=1356435021;
SELECT postid, dateline, pagetext 
        FROM post
        WHERE iei_parsed=0
            AND pagetext LIKE '%[/IMG]%'
        ORDER BY postid 
        LIMIT 0, 5;
As you can see, my posts table has only 278721 rows. I think this is a small forum, I suppose that there will be bigger forums out there. But you can see too, that the query time is very high (16sg). I have discarded another problem (very much visits, and so on).

Is there a way to increase the perfomance of this query?

Best regards and thanks in advance.
Reply With Quote
  #438  
Old 12-28-2012, 09:17 AM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cylon1 View Post
Dear friends:

This extension is amazing, I use it since months, and all works very well. The only problem is that, I'm using a vps with limited resources (apache, 512Mb ram). I've noticed that one of the slowest sql in my vps is the following:

Code:
# Query_time: 16.976461  Lock_time: 0.000214 Rows_sent: 0  Rows_examined: 278721
SET timestamp=1356435021;
SELECT postid, dateline, pagetext 
        FROM post
        WHERE iei_parsed=0
            AND pagetext LIKE '%[/IMG]%'
        ORDER BY postid 
        LIMIT 0, 5;
As you can see, my posts table has only 278721 rows. I think this is a small forum, I suppose that there will be bigger forums out there. But you can see too, that the query time is very high (16sg). I have discarded another problem (very much visits, and so on).

Is there a way to increase the perfomance of this query?

Best regards and thanks in advance.
Not that I can think of. A server should really ahve more than 512 MB of RAM, specially when using a database server, too. You may try to add some MB to the MySQL key buffer, but I doubt it will help.
Reply With Quote
  #439  
Old 12-28-2012, 09:20 AM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Doganay YILDIZ View Post
There is a problemmi? Pictures ftp uploading beautifully. However, I opened the new topics added almost 6 hours but still ftp. What's the problem?
I don't know. This product imports only external images which can be read by the server, using CURL or fopen. If it doesn't work for you, I'm sorry, but there is nothing I can do about.
Reply With Quote
  #440  
Old 01-12-2013, 05:33 PM
destacamos destacamos is offline
 
Join Date: Feb 2011
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this prodcut, but does nothing.

forum is installed in a subfolder:

www.website.com/forum

i create a folder images/imported to:

www.website.com/forum/images/imported

with 777 permissions

I uploaded the xml file, and nothing, when I put a picture in the forum does nothing.

for example I try this:
http://www.miblogdecineytv.com/image...ulas/Cars3.jpg

created a thread and put the image [IMG] Image [/IMG]

and still appears the url of miblogdecine .... and no create nothing in my server.

can anyone help me, please? thanks.
Reply With Quote
  #441  
Old 01-14-2013, 09:12 PM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it does nothing (please check with FTP in your imported folder), you system does not allow to pull in external data.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06767 seconds
  • Memory Usage 2,372KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (20)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete