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 07-12-2011 07:02 AM

Quote:

Originally Posted by Scalemotorcars (Post 2219505)
Ok I think Im screwed here. Every single post on my site that linked to an image on my photopost is now gone. All I have now is the replacement image.

Site structure is

mysite/forum
mysite/gallery

What do I do now?

I imagine your photopost images weren't readable to visitors and you had not setup the photopost path (mysite/gallery or gallery) into the "whitelist" (Ignore field). So the product tried to download the image but could't read it, and replaced it.

If you have a backup of your post table, you may disable the product and change the INSERT INTO in REPLACE INTO of the queries of your backup (& run a restore of the post table of course), in order to get back what you had, without messing up new posts (since your latest backup).

PS: If you do a restore, make sure not to rebuild the table structure ;)

maznos 07-12-2011 04:35 PM

Quote:

Originally Posted by y2ksw (Post 2219555)
I imagine your photopost images weren't readable to visitors and you had not setup the photopost path (mysite/gallery or gallery) into the "whitelist" (Ignore field). So the product tried to download the image but could't read it, and replaced it.

If you have a backup of your post table, you may disable the product and change the INSERT INTO in REPLACE INTO of the queries of your backup (& run a restore of the post table of course), in order to get back what you had, without messing up new posts (since your latest backup).

PS: If you do a restore, make sure not to rebuild the table structure ;)

Hello

your product is so great.

why not add an additional column to the table that include the original images links for in case someone wants to revert automatically through your product or an additional script

i guess it is somehow easy to implement as it will be an "undo" column.

just an idea :)

y2ksw 07-12-2011 06:52 PM

Quote:

Originally Posted by maznos (Post 2219690)
Hello

your product is so great.

why not add an additional column to the table that include the original images links for in case someone wants to revert automatically through your product or an additional script

i guess it is somehow easy to implement as it will be an "undo" column.

just an idea :)

I thought about it, but is impossible, because an image may be associated with more sources. Since it is unable to tell which is the right one, an undo option may do more harm than good. With a good backup history (I have 6 months) you never get into trouble. REPLACE INTO solves so many problems much better than any other undo procedure may do. :)

maznos 07-12-2011 07:22 PM

Quote:

Originally Posted by y2ksw (Post 2219731)
I thought about it, but is impossible, because an image may be associated with more sources. Since it is unable to tell which is the right one, an undo option may do more harm than good. With a good backup history (I have 6 months) you never get into trouble. REPLACE INTO solves so many problems much better than any other undo procedure may do. :)

somehow i see it is possible since you are going to return the original urls and not touching the files.

think of it like this:
thread have the text: blah blah image1.jpg
the undo column is storing this: image1.jpg=http://blah.com/path/to/image.jpg

so when the undo happen your script just replaces the local file urls to the original url

thats it

keep up the good work:up:

y2ksw 07-12-2011 08:42 PM

Quote:

Originally Posted by maznos (Post 2219744)
somehow i see it is possible since you are going to return the original urls and not touching the files.

think of it like this:
thread have the text: blah blah image1.jpg
the undo column is storing this: image1.jpg=http://blah.com/path/to/image.jpg

so when the undo happen your script just replaces the local file urls to the original url

thats it

keep up the good work:up:

This is what it already stores, but a rollback isn't possible. Imagine you have the replacement image enabled. Then a whole lot of original URL's may be represented by a single image. You would have the trouble to have to use a progressive counter for each image, and in the same time you could not reuse an already stored image. Then it may bloat the disk space wuite a lot, specially if posts with images are quoted a lot.

I'm rather a friend of frequent backups and as a hosting provider I guarantee those work best :)

mybetinfo 07-15-2011 12:36 PM

I installed this module on 4.1.4, but i have one question, the image path is now on my server on imported folders, yeah, great.

But, i have in settings the thumbnails 150px, i run the script toi rebuiold attachment but this image are not shown as the rest at 150x150px, any ideas how to do that ?

http://dli.ro/f/471-poze-cu-userii-d....html#post2449

Check this and few post bellow taht to see the yhumbnails. thank you.

y2ksw 07-16-2011 07:54 PM

This plugin imports only images. If you have problems with ImageShack preview images, please add imageshack to the whitelist (ignore) and they are left alone. This plugin is not searching the original images from other sites. ;)

mb2tour 07-18-2011 12:24 PM

Hi, I'd have one question. This mod is some sort of replacement for external image hosting? Meaning that I will be uploading directly to the FTP and than selecting if I want to post as thumbnail or full view? What about 4.1.4?

Thanks,
~~QS

y2ksw 07-18-2011 01:12 PM

No, this product imports only images, which are pasted in the editor and left there. Over time more than 90% of the remote images disappear permanently. Thus, having them in local, images continue to exist, even if the source died long time ago ;)

Scalemotorcars 07-19-2011 10:34 PM

Well Im screwed. I didn't add gallery to the white-list and now all those photos are gone.

My fault for not backing up the db first. You should add a warning (big red letters) about photopost and possible problems.

Once I do get this fixed manually I just want to make sure the info is correct for the hack. All I do is add gallery to the white list right?


All times are GMT. The time now is 10:54 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.01577 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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