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-21-2011 10:05 AM

Quote:

Originally Posted by Scalemotorcars (Post 2222626)
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?

Yes. In the option description it says:

Quote:

Images containing these values are ignored and will not be replaced. Normally you will enter here your media server or gallery folder. Images of your forum and the imported folder are always ignored. Please separate each item by a new line.
It means, if you have a gallery folder, you would add in a new line:

/gallery/

If it is a subdomain or domain:

gallery.domain.tld

If it is ImageShack:

imageshack.

And don't forget to backup your post table this time ;)

8thos 07-31-2011 03:26 AM

What's the point of this mod and can it reduce my First Byte Time in www.webpagetest.org?

y2ksw 07-31-2011 06:47 AM

Quote:

Originally Posted by Octavius. (Post 2227106)
What's the point of this mod and can it reduce my First Byte Time in www.webpagetest.org?

The point is: it moves external images to your server. But I can't tell if it is useful to you :)

Scalemotorcars 08-01-2011 12:17 AM

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 ;)

I only have a complete backup from about 6 months ago and Ive since upgraded from 3.6 to 4.1.4 Is it possible to only use the one table from the complete backup and since its the older version of VB would that be a problem?

y2ksw 08-01-2011 07:51 AM

Quote:

Originally Posted by Scalemotorcars (Post 2227456)
I only have a complete backup from about 6 months ago and Ive since upgraded from 3.6 to 4.1.4 Is it possible to only use the one table from the complete backup and since its the older version of VB would that be a problem?

It is a problem, because the database structure has changed. In order to use the backup you would have to restore the backup in a sandbox, upgrade, backup again and restore as indicated with replace into. However there is no guarantee it works, because I suppose you have (had) also other plugins and probably the database structure isn't exactly the same.

Scalemotorcars 08-01-2011 10:21 PM

Yep it has changed.

So to be clear since I would like to use the mod.

in the white list, if my site is root/forum and root/gallery all I need to do is add /gallery/ to the list.

tommythejoat 08-02-2011 10:32 PM

Perhaps I was reckless but I wanted image resizing, so I installed the 1.0.5 version on my test board.

I was not sure from the instructions whether the mod would create the /images/import directory or I would need to do that, so I ran it for a little while without manually creating the directory. The directory did not appear, so I then created the directory with 755 permissions.

I then ran the mod for about an hour and checked the table iei_img to see what was going on. The table shows a number of images have been re-url'd with many going to year based subdirectories and many just being ignored because they were invalid.

However, the /images/import/ directory remains empty.

Here is a translated url from the table

http://mb.nawcc.org/forum/images/imported/2006/11/1.jpg

Are these entries just a "plan of work" and the code actually does the transfers as another background task?

I have turned the mod off by disabling the cron job at the moment

y2ksw 08-03-2011 07:50 AM

Quote:

Originally Posted by Scalemotorcars (Post 2227908)
Yep it has changed.

So to be clear since I would like to use the mod.

in the white list, if my site is root/forum and root/gallery all I need to do is add /gallery/ to the list.


Yes, you would add add /gallery/ to the list. This however may also exclude /gallery/ images from anywhere else ... so maybe it's a good idea to include the domain, too, e.g.:

mydomain.com/gallery/

And please don't forget the backup! :)

y2ksw 08-03-2011 07:57 AM

Quote:

Originally Posted by tommythejoat (Post 2228394)
Perhaps I was reckless but I wanted image resizing, so I installed the 1.0.5 version on my test board.

I was not sure from the instructions whether the mod would create the /images/import directory or I would need to do that, so I ran it for a little while without manually creating the directory. The directory did not appear, so I then created the directory with 755 permissions.

I then ran the mod for about an hour and checked the table iei_img to see what was going on. The table shows a number of images have been re-url'd with many going to year based subdirectories and many just being ignored because they were invalid.

However, the /images/import/ directory remains empty.

Here is a translated url from the table

http://mb.nawcc.org/forum/images/imported/2006/11/1.jpg

Are these entries just a "plan of work" and the code actually does the transfers as another background task?

I have turned the mod off by disabling the cron job at the moment

These subfolders are created from the post date of the one they were taken from. The code parses posts one by one and tries to find pasted image references. If it finds one, it creates a new entry ([forumhome][setting]/year/month/progressive.extension) and imports the image and changes the reference in the post. Then it sets a flag to the post in order to avoid reparsing with value 1. Other values may follow for additional services and new add-ons.

If an image was imported previously, it just sets the new reference.

DaffyDuck 09-05-2011 02:15 AM

Doesn't seem to be working for me - vB 4.1.5.

Either the cron task is not running (when running it manually, it completes in an instant), or the code is not working. Either way, none of the images are being downloaded, or the URL replaced.

Any ideas?


All times are GMT. The time now is 10:47 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.02685 seconds
  • Memory Usage 1,752KB
  • 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
  • (7)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