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?

y2ksw 09-05-2011 08:41 PM

Probably the task is not running. If you turn logging on (edit the task) you should see at least a note.

If no images are downloaded, probably your server is locked against downloads or by disallowing fopen on URL's or by firewall.

DaffyDuck 09-06-2011 05:27 AM

I turned on logging, made it manually run the task, and viewed the log - no entries.

Looks like the task is not running at all.

What now?

DaffyDuck 09-06-2011 05:30 AM

I'm running version 1.02, by the way.

Had the same when having had version 1.04 or 1.05 installed.

Gemma 09-06-2011 10:49 AM

Thanks for this :)

y2ksw 09-06-2011 03:24 PM

Quote:

Originally Posted by DaffyDuck (Post 2242450)
I turned on logging, made it manually run the task, and viewed the log - no entries.

Looks like the task is not running at all.

What now?

Quote:

Originally Posted by DaffyDuck (Post 2242451)
I'm running version 1.02, by the way.

Had the same when having had version 1.04 or 1.05 installed.

No idea. If you have php logs somewhere, check if something is missing. Maybe the cronjob is disabled? Is the board off-line?

DaffyDuck 09-07-2011 12:57 AM

Nope, board is up and running. As far as I can tell, all other cron jobs are running just fine. Even checked in the cron folder to make sure the iei file has right permissions and ownership set.

It wasn't originally, but even after I changed it to reflect the other scripts' ownerships, it still doesn't work.

Truly confusing.

What's even more startling is that months ago when I first had it running, it appears to have been working (the import/images folder is created and has prior files in it). It just seems that the actual script simply doesn't want to run.

Even deleting it and reinstalling it made no difference.

Really odd.

DaffyDuck 09-07-2011 04:24 AM

Okay, I was able to verify that the script *does* execute :


Introduced an error in the script - script sticks. There's an obvious execution difference.

Remove the error, script seems to work. SO, we now know it executes the code, but the code does nothing.

Also, it generates an error in the general error log file, to verify that the introduced error was registered, and that the code was being executed otherwise:

[Tue Sep 06 22:22:59 2011] [error] [client 99.9.155.41] PHP Parse error: syntax error, unexpected T_STRING in /home/suaymac/public_html/includes/cron/iei_cron.php on line 24, referer: http://suaymac.com/suayadmincp/cronadmin.php?do=modify

Okay, so now what?

The script runs, but does nothing (or rather, not the intended behavior) - not quite sure what other places to look into.

DaffyDuck 09-07-2011 08:22 PM

Update - updating to 1.05, and previously completely removing the older version, made it work. It performs as expected now. Yay!

Thanks for the help!

DaffyDuck 09-10-2011 12:22 AM

One additional observation / request / question -- this script seems to work on the FORUM section, yet doesn't touch images in the CMS section. Is there some way to make it include those?

Scalemotorcars 10-06-2011 03:43 PM

Ive noticed this is missing some photos. It seems images with this structure or at least from this site are not being imported.

Code:

http://www.hostingpics.net/viewer.php?id=335914DSC0001.jpg
This is my ignore list.

Any ideal why?

Scalemotorcars 10-06-2011 03:44 PM

Quote:

Originally Posted by DaffyDuck (Post 2244113)
One additional observation / request / question -- this script seems to work on the FORUM section, yet doesn't touch images in the CMS section. Is there some way to make it include those?

I would like to see this also.. :up:

y2ksw 10-07-2011 07:51 AM

Quote:

Originally Posted by Scalemotorcars (Post 2253977)
Ive noticed this is missing some photos. It seems images with this structure or at least from this site are not being imported.

Code:

http://www.hostingpics.net/viewer.php?id=335914DSC0001.jpg
This is my ignore list.



Any ideal why?

That's a HTML page and not an image :)

Scalemotorcars 10-07-2011 12:25 PM

Since it only displays the actual image on my site is there still a way to import it?

nhawk 10-07-2011 12:40 PM

Quote:

Originally Posted by Scalemotorcars (Post 2254324)
Since it only displays the actual image on my site is there still a way to import it?

On your site, change the picture url to http://img11.hostingpics.net/pics/335914DSC0001.jpg

Scalemotorcars 10-07-2011 04:59 PM

Forgive my ignorance but how exactly would I do that? Is it a white-list setting or ???

y2ksw 10-07-2011 09:15 PM

Quote:

Originally Posted by nhawk (Post 2254327)
On your site, change the picture url to http://img11.hostingpics.net/pics/335914DSC0001.jpg

Quote:

Originally Posted by Scalemotorcars (Post 2254400)
Forgive my ignorance but how exactly would I do that? Is it a white-list setting or ???

You would do this with a query from phpmyadmin, such as:

Code:

UPDATE post SET pagetext=REPLACE(pagetext, 'http://www.hostingpics.net/viewer.php?id=', 'http://img11.hostingpics.net/pics/')
This can be time consuming and a server killer, but then you would be able to import the pictures normally. Maybe you will have to run this query locally with a very large timeout. It isn't however a guarantee to work, and the img11 suggests there are at least 11 different solutions for one problem ...

Normally you would first run a script to see if all the images are coming from the same server and then apply a global query which solves links in bunches.

Manoel J?nior 10-10-2011 11:29 PM

Broker with images:

Code:

http://forumcom.detonaleech.com.br/files/John_Denver_-_Country_Roads-oN86d0CdgHQ_s.jpg
Not record the image, how to fix?

y2ksw 10-11-2011 03:30 PM

Quote:

Originally Posted by Manoel J?nior (Post 2255745)
Broker with images:

Code:

http://forumcom.detonaleech.com.br/files/John_Denver_-_Country_Roads-oN86d0CdgHQ_s.jpg
Not record the image, how to fix?

There is no way to download images which need authorisation or which are hotlink-protected.

yahooooh 10-21-2011 08:15 AM

Quote:

Originally Posted by y2ksw (Post 2186556)
Could you please make examples? I'm not sure what you want to have added.

i ask for adding thread url as link for image
when image is hosted and change the url address to my site
i want to make the image itself can be clicked with url of the thread itself

so if one copy the thread the images will be clicked to my forum thread

y2ksw 10-22-2011 07:50 AM

Quote:

Originally Posted by yahooooh (Post 2259681)
i ask for adding thread url as link for image
when image is hosted and change the url address to my site
i want to make the image itself can be clicked with url of the thread itself

so if one copy the thread the images will be clicked to my forum thread

It already works this way. It copies the image to your site and renames the URL to the image. If somebody copies the message, they also copy the correct URL.

If, one day, you change your domain name, just reinstall the product and the images are reimported with the new domain name's URL (if the old domain is still accessible).

yahooooh 10-22-2011 08:02 AM

Quote:

Originally Posted by y2ksw (Post 2260063)
It already works this way. It copies the image to your site and renames the URL to the image. If somebody copies the message, they also copy the correct URL.

If, one day, you change your domain name, just reinstall the product and the images are reimported with the new domain name's URL (if the old domain is still accessible).

i mean to make it clickable with link to the thread belong to it
to be for example the image been like this:
https://vborg.vbsupport.ru/

if you click the image it will be direct to the this thread
and only should be this if the original has not link to another site
that what i mean

y2ksw 10-22-2011 06:15 PM

Quote:

Originally Posted by yahooooh (Post 2260066)
i mean to make it clickable with link to the thread belong to it
to be for example the image been like this:
http://www.vbulletin.org/custompics/...tar39423_1.gif

if you click the image it will be direct to the this thread
and only should be this if the original has not link to another site
that what i mean

I understand. However, it is such an additional feature which just serves you and nobody else. I take note about this request, but most probably it will not be implemented.

MyPeSePe 10-31-2011 11:40 AM

I have all my pictures hosted on imageshack but tynipic or not the matter to my server

Sorry, was a technical failure, if I work

Ichigo88 11-14-2011 08:40 PM

ciao y2ksw ho un problema! ho messo la 1.0.5 va bene! ma da qualche giorno ho problemi che in alcuni topic mostra immagini che non centrano con il contrnuto.
cioè mi spiego esempio se un topic ho messo una locandina di un albom ramazzotti, c'è il problema che l'immagine cambia e diventa altro.
non so se mi sono spiegato, a comunque non sono riuscito a capire sto problema.

thanks!

y2ksw 11-15-2011 11:39 AM

Quote:

Originally Posted by Ichigo88 (Post 2267959)
ciao y2ksw ho un problema! ho messo la 1.0.5 va bene! ma da qualche giorno ho problemi che in alcuni topic mostra immagini che non centrano con il contrnuto.
cio? mi spiego esempio se un topic ho messo una locandina di un albom ramazzotti, c'? il problema che l'immagine cambia e diventa altro.
non so se mi sono spiegato, a comunque non sono riuscito a capire sto problema.

thanks!

what have you changed before you had the problem? :)

tarzan22 11-16-2011 04:20 PM

4.1.8 ?

funciona

Manoel J?nior 11-16-2011 05:21 PM

Quote:

Originally Posted by tarzan22 (Post 2268573)
4.1.8 ?

funciona

Sim, funciona perfeitamente!!!!

Dave Hybrid 11-16-2011 08:03 PM

Installed this on a very old site and it turned every image link into a dead url.

I can post a good image link, run the cron and it is zapped.

Because it edits the database it is irrecoverable.

Use with caution.

I'd love to hear if there is anyway to fully uninstall this, and reverse any changes it made it image urls, as at present, i have a forum full of dead images, 1000's of them.

Ichigo88 11-18-2011 08:54 AM

Quote:

Originally Posted by y2ksw (Post 2268149)
what have you changed before you had the problem? :)

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.

y2ksw 11-18-2011 11:23 AM

Quote:

Originally Posted by Dave Hybrid (Post 2268651)
Installed this on a very old site and it turned every image link into a dead url.

I can post a good image link, run the cron and it is zapped.

Because it edits the database it is irrecoverable.

Use with caution.

I'd love to hear if there is anyway to fully uninstall this, and reverse any changes it made it image urls, as at present, i have a forum full of dead images, 1000's of them.

The description of the plugin tells what it does, and I always have reccomended to make backups, test and check before using in production. It solves widely known problems, but it may not be adeguate to use in all situations.


All times are GMT. The time now is 08:07 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.04153 seconds
  • Memory Usage 1,856KB
  • 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_code_printable
  • (24)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