vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Import External Images (https://vborg.vbsupport.ru/showthread.php?t=253309)

y2ksw 11-18-2011 11:24 AM

Quote:

Originally Posted by Ichigo88 (Post 2269150)
nothing :(

forse e dico forse ? stato quando ho resettato il database ad un giorni prima per? i file erano gli stessi e non del giorno prima. pu? essere? scusa se non parlo in inglese ma cos? mi spiego meglio, ripondi pure in inglese te non c'? problema.

Italian support: www.vbulletin.it ;)

sticky 12-03-2011 01:51 AM

For some reason this mod struggles with importing images from photobucket. This one would not import for example: http://i19.photobucket.com/albums/b1.../IMG_7359R.jpg

y2ksw 12-03-2011 09:01 AM

Quote:

Originally Posted by sticky (Post 2274191)
For some reason this mod struggles with importing images from photobucket. This one would not import for example: http://i19.photobucket.com/albums/b1.../IMG_7359R.jpg

This may well be. Importing from a few sites has always been a problem, for example all those which block hot linking over time, or those which require to login. But it also has been proven not to work with too restrictive server settings, such as memory and timeout issues.

sticky 12-03-2011 09:12 AM

Quote:

Originally Posted by y2ksw (Post 2274273)
This may well be. Importing from a few sites has always been a problem, for example all those which block hot linking over time, or those which require to login. But it also has been proven not to work with too restrictive server settings, such as memory and timeout issues.

So no way to get this to work for that image?

It isn't the server...

y2ksw 12-04-2011 11:03 AM

I don't believe there is anything we can do.

Alfa1 12-06-2011 11:46 PM

I'd like to suggest a feature for a future release:

Import the image into a profile album of the post owner.

Przemoo 12-20-2011 02:05 AM

how to set this up to send images into different server than forum ? i've got low bandwith and wish to have all pistures on different host, is that possible?

y2ksw 12-20-2011 08:23 AM

Quote:

Originally Posted by Przemoo (Post 2279266)
how to set this up to send images into different server than forum ? i've got low bandwith and wish to have all pistures on different host, is that possible?

Yes. But it needs your own system to move the files from the forums to another place and quite some extra settings which you should first try in a test bed. If you search for fsftp or ftpfs in this thread, you'll get some ideas how to do this.

kingMOB 12-20-2011 12:32 PM

Quote:

Originally Posted by Alfa1 (Post 2275353)
I'd like to suggest a feature for a future release:

Import the image into a profile album of the post owner.

This would be really nice =)

Manoel J?nior 01-24-2012 11:41 PM

Please, help-me!!

My images stopped being imported, or rather they are imported but they are in my FTP with nomenclature: 3391.attach.pl_cached not 3391.imgcache

How can I do to fix this?

y2ksw 01-25-2012 09:09 PM

Quote:

Originally Posted by Manoel J?nior (Post 2291986)
Please, help-me!!

My images stopped being imported, or rather they are imported but they are in my FTP with nomenclature: 3391.attach.pl_cached not 3391.imgcache

How can I do to fix this?

I have no idea how this could happen. Do you have a symbolic link or mount point to a different volume?

Manoel J?nior 01-25-2012 09:22 PM

Quote:

Originally Posted by y2ksw (Post 2292385)
I have no idea how this could happen. Do you have a symbolic link or mount point to a different volume?

I do not know! I did the following test:

1. I changed the location of storage of images, I gave permission 777
2. I created a new topic with a picture
3. I went on FTP, the new folder, and he created the folder and subbasta, but with the year 2011, and within that folder there is no file.

What steps can I take to resolve this problem?

y2ksw 01-26-2012 04:23 PM

Was the picture publically accessible? For example, if you paste an image from your desktop, Apache is not able to read it and ignores it. Also, if the image is a dynamic URL or the location needs passwords, you may see the images but Apache not.

Manoel J?nior 01-26-2012 04:45 PM

Quote:

Originally Posted by y2ksw (Post 2292740)
Was the picture publically accessible? For example, if you paste an image from your desktop, Apache is not able to read it and ignores it. Also, if the image is a dynamic URL or the location needs passwords, you may see the images but Apache not.

Hello y2ksw,

From what I can gather is that this file that you've (3391.attach.pl_cached) relates to the attachments, so please disregard that part.

What is happening is that it creates the directory, but does not create the files. As an example I quoted my post above:

1. I changed the location of storage of images, I gave permission 777
2. I created a new topic with a picture
3. I went on FTP, the new folder, and he created the folder and subdirectory, but with the year 2011, and within that folder there is no file.

I found it strange that instead of creating the directory in 2012 he created the directory 2011.

In keeping with this structure:

./imgcache/2011/03 /

And inside the directory there is nothing, but he created the directory and subdirectory.

Thanks for you help!!!!

y2ksw 01-26-2012 06:41 PM

Could you please try to create a file from a script in that folder and see what rights it has (or what errors):

PHP Code:

<?php
$fp 
fopen('imgcache/2011/03/test.file''wb');
fwrite($fp'abc');
fclose($fp);

echo 
file_get_contents('imgcache/2011/03/test.file');
die;
?>


Manoel J?nior 01-28-2012 05:10 PM

Quote:

Originally Posted by y2ksw (Post 2292782)
Could you please try to create a file from a script in that folder and see what rights it has (or what errors):

PHP Code:

<?php
$fp 
fopen('imgcache/2011/03/test.file''wb');
fwrite($fp'abc');
fclose($fp);

echo 
file_get_contents('imgcache/2011/03/test.file');
die;
?>


It created the file perfectly content with abc

What could be wrong? Very thanks for you help!

temsamane 01-30-2012 02:16 PM

is this working for 4.1.10?

y2ksw 01-30-2012 07:05 PM

Quote:

Originally Posted by Manoel J?nior (Post 2293516)
It created the file perfectly content with abc

What could be wrong? Very thanks for you help!

What was the reason for which you changed the previous folder to another? Are the foldernames syntactically the same?

I mean:
/abc = /def
but not:
/abc <> ./def/

y2ksw 01-30-2012 07:06 PM

Quote:

Originally Posted by temsamane (Post 2294191)
is this working for 4.1.10?

Yes :)

Manoel J?nior 01-30-2012 11:20 PM

Quote:

Originally Posted by y2ksw (Post 2294293)
What was the reason for which you changed the previous folder to another? Are the foldernames syntactically the same?

I mean:
/abc = /def
but not:
/abc <> ./def/

I have not changed, has always been this directory. What I meant earlier, that he should have created a new folder with the year 2012, would not it?

y2ksw 01-31-2012 09:46 AM

Quote:

Originally Posted by Manoel J?nior (Post 2294400)
I have not changed, has always been this directory. What I meant earlier, that he should have created a new folder with the year 2012, would not it?

If you didn't change the folder and it worked before and not now any more, maybe your provider changed something beyond our accessibility, such as, for example, the memory allocation for PHP scripts. There is no way to know, for me, what could have happened.

In a specific case before we made any imaginable efford to find out why, giving eventually up. And this is for me yet final. If the plugin does not work, there is nothing I can do about it.

merkaz 02-17-2012 03:53 PM

nice mod thanks ...

It will be better if there is away to make it run for only first post in the thread ..

I think there is no need to check all forum post ...

merkaz 02-17-2012 11:50 PM

MySQL error :

Database error in vBulletin 4.1.6:

Invalid SQL:
INSERT IGNORE INTO iei_img (
oldurl,
newurl
) VALUES (
'http://>............/web/img/200907141558550.200905101539340_Damascus.jpg',
'http://............./clear.gif'
);

MySQL Error : MySQL server has gone away
Error Number : 2006

Nirjonadda 02-20-2012 05:10 PM

Installed working fine with 4.1.10

merkaz 02-22-2012 01:37 PM

It works fine .. the mod finishes the all posts on my site 2005, 2006 , 2007 , 2008 , 2009 , 2010 and 2011 .. it stoped in 1/2012 why ?

its not working on this month posts ..

merkaz 02-23-2012 03:33 AM

1 Attachment(s)
there are many posts with images in my forum and the images is works and valid .. this mod Replaced these iamges with the clear.gif ...

even if " Remove Invalid Images " set to no .. this mod remove these images so now I have alot of posts without images ...

too bad I didn't know this until now ..

the post before the mod work :
Attachment 136631
after
Attachment 136632

the images on my forum is gone awaaaaay :(

y2ksw 02-25-2012 10:12 AM

Quote:

Originally Posted by merkaz (Post 2302268)
It works fine .. the mod finishes the all posts on my site 2005, 2006 , 2007 , 2008 , 2009 , 2010 and 2011 .. it stoped in 1/2012 why ?

its not working on this month posts ..

Maybe the question is, what has changed at your hosting plan from then to now.

y2ksw 02-25-2012 10:16 AM

Quote:

Originally Posted by merkaz (Post 2300684)
MySQL error :

Database error in vBulletin 4.1.6:

Invalid SQL:
INSERT IGNORE INTO iei_img (
oldurl,
newurl
) VALUES (
'http://>............/web/img/200907141558550.200905101539340_Damascus.jpg',
'http://............./clear.gif'
);

MySQL Error : MySQL server has gone away
Error Number : 2006

Going backwards your requests, this one shows the database server timed out before the image could be handled. Please fix first your server!

y2ksw 02-25-2012 10:17 AM

Quote:

Originally Posted by merkaz (Post 2300544)
nice mod thanks ...

It will be better if there is away to make it run for only first post in the thread ..

I think there is no need to check all forum post ...

Until now, we all need the importation of all images ;)

y2ksw 02-25-2012 10:45 AM

Quote:

Originally Posted by merkaz (Post 2302530)
there are many posts with images in my forum and the images is works and valid .. this mod Replaced these iamges with the clear.gif ...

even if " Remove Invalid Images " set to no .. this mod remove these images so now I have alot of posts without images ...

too bad I didn't know this until now ..

the post before the mod work :
Attachment 136631
after
Attachment 136632

the images on my forum is gone awaaaaay :(

First, make sure to clear the post cache if you have any (truncate table: 'postparsed'). And maybe this will solve also other problems.

If you have a backup, you may replace the old posts:

Change the queries from 'INSERT INTO' to 'REPLACE INTO' from the 'post' table only. Also, consider to uninstall the plugin first (reason: additional field in post table). Of course, if users have edited their posts, they are overwritten by the restore. Thus, consider to make another backup before restore ;)

Finally, the product is running quickly through all posts unless the post count is very small or the interval very large. If your server is setup to allow download documents via CURL, there should be no issue, however, if there are issues with downloading you would have find out when testing.

clutchthese 02-28-2012 12:02 AM

This replaces and .gif images with .jpg images, even when "don't convert to .jpg" is selected.

Is there anything you can do to allow this to work with .gifs?

temsamane 02-28-2012 01:30 PM

it there any update for last vb version?

is this mod slowing down the forum?

y2ksw 02-28-2012 02:52 PM

Quote:

Originally Posted by clutchthese (Post 2304047)
This replaces and .gif images with .jpg images, even when "don't convert to .jpg" is selected.

Is there anything you can do to allow this to work with .gifs?

Can you make us a snapshot of your settings?

y2ksw 02-28-2012 02:54 PM

Quote:

Originally Posted by temsamane (Post 2304232)
it there any update for last vb version?

is this mod slowing down the forum?

I have it running on 4.1.10.

And yes, it may slow down a little the forum. For this reason you may adjust he number of posts to parse and also setup manually the period when parsing should happen (cronjobs).

clutchthese 02-28-2012 09:28 PM

Quote:

Originally Posted by y2ksw (Post 2304272)
Can you make us a snapshot of your settings?

No problem....


https://vborg.vbsupport.ru/external/2012/02/8.png

https://vborg.vbsupport.ru/external/2012/02/9.png

sarangan 03-02-2012 12:39 PM

New Feature request:

Problem: My forum is targetted by many spammers at this time. For that reason I moderate all new threads before showing to public. For 2 days ago a spammer posted 50 threads in my forum with about 50x30 = 1500 porn images. The problem was this plugin imported all those images.. Even I deleted all those spam threads, images are still in folder. :-(

Solution:
Adding an option to only begin to import images for approved threads. It should wait until a thread is approved by a mod or admin. Is this possible? If so, I'm looking forward to have this option implemented in this plugin.

Thanks for a really wonderful plugin which helped me a lot from having broken images.

Rckcrwlr 03-04-2012 11:25 AM

I need to add something like this due to the amount of images that are pertinent to the subject of the forum.

If it does not work, is there a way to get it back to original. I will back it up.

Is there a way to "test" it prior to flicking the switch?

y2ksw 03-05-2012 08:22 AM

Quote:

Originally Posted by sarangan (Post 2305331)
New Feature request:

Problem: My forum is targetted by many spammers at this time. For that reason I moderate all new threads before showing to public. For 2 days ago a spammer posted 50 threads in my forum with about 50x30 = 1500 porn images. The problem was this plugin imported all those images.. Even I deleted all those spam threads, images are still in folder. :-(

Solution:
Adding an option to only begin to import images for approved threads. It should wait until a thread is approved by a mod or admin. Is this possible? If so, I'm looking forward to have this option implemented in this plugin.

Thanks for a really wonderful plugin which helped me a lot from having broken images.

This product is not intended to solve a lot of problems, but only one: avoid loosing hot-linked images forever. I understand there may be spam related and other problems, but a lot of additional options are also always a source of additional problems which I am unable to follow up.

y2ksw 03-05-2012 08:23 AM

Quote:

Originally Posted by Rckcrwlr (Post 2306019)
I need to add something like this due to the amount of images that are pertinent to the subject of the forum.

If it does not work, is there a way to get it back to original. I will back it up.

Is there a way to "test" it prior to flicking the switch?

You should try it first in a copy or test forum. Also, backups are always a good idea. Thre is no switch to try. It's on or off :)

clutchthese 03-05-2012 11:28 AM

Do you have any idea about the .gif's? I really like this mod, but don't want it to copy the .gif images as jpg... they're not animated after saving to server.


All times are GMT. The time now is 11:12 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02023 seconds
  • Memory Usage 1,851KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete