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 09-04-2015 04:58 AM

Quote:

Originally Posted by majjed2008 (Post 2554214)
can we import the CMS image ? that it post inside articals there ?

Thank you

No, it works only for forum posts.

y2ksw 09-04-2015 05:02 AM

Quote:

Originally Posted by hivitro (Post 2554233)
Hi y2ksw, ty for this great mod, It has served me well these years.

I have a question before making a modification.

I am interested in taking a new .com domain and use images only, like a gallery.

My question is this. If I make a change in Forum URL replacement, and put a new domain, all new and old images will automatically move there?

Currently, my domain is http://www.nivelextremo.com the forum is inside / post / and the images are in / post / imgbackup /

If I for example, bought the domain like www.imgbackup.com or anything else and set

Forum URL replacement -> http://www.imgbackup.com/images

The old and new images, will move to the external domain? Or just new? or what would happen?


Thanks in advance

Only the new images are moved. the old images can be moved, if you change the URL in all posts accordingly (with a REPLACE query on post.pagetext). The short term cheaper solution is a redirect, but it may add quite some load to your server, if you have a lot of images.

hivitro 09-04-2015 05:57 AM

Quote:

Originally Posted by y2ksw (Post 2554238)
Only the new images are moved. the old images can be moved, if you change the URL in all posts accordingly (with a REPLACE query on post.pagetext). The short term cheaper solution is a redirect, but it may add quite some load to your server, if you have a lot of images.

OK I understand. Time to work :D

Thank you.

Edit II > 1st Step Done:

1 - I move all images from inside my forum to another URL, i choose http://www.imageslocker.com and there put all from 2007 to 2015
2 - I Use Mysql UPDATE/REPLACE in post.pagetext and then, do al full Clear system cache.. table repairs, Forums Cache... and then all works ok.

Finally. New images, goes to the forum URL, the next year i will move in bulk again.

In the options IGNORE site i must write with/and not http and www, if not the mod copy again the images to the forum.

I just have a question.. I start to make some order/renames of files, in categories. How does this affect the table iei_img?

Becouse the old URL, will be the same, but the new URL it will not be because I moved / renamed.

majjed2008 09-06-2015 05:55 PM

Hello

after it import the image it dont show up in post I edited the post and i see the link point correctly to site./images/imported but the picture totally gone from all thread how to fix that please ?

Thank you

hivitro 09-06-2015 07:03 PM

Quote:

Originally Posted by majjed2008 (Post 2554422)
Hello

after it import the image it dont show up in post I edited the post and i see the link point correctly to site./images/imported but the picture totally gone from all thread how to fix that please ?

Thank you


Firefox dont show your images if the URL is incorrect or the image is not where you think it is.

Use Chrome or IE to check. Make a test post, and link and external image. Go Administrator panel and run scheduled tasks > vB4 Import External Images

Go again to your test and check if it load the image imported or if show a broken avatar, do a right click in there and open in another windows, check the URL and you will see the error. Fix it in config and clear Cache in your navigator (CTRL+F5) and check again.

majjed2008 09-06-2015 08:31 PM

thank you very much i am going to do that , but i fined the the picture use wrong URL how to change it please ? do i have to thread and edited it manually i have very big forum more than 300K thread ?

hivitro 09-07-2015 12:22 AM

Quote:

Originally Posted by majjed2008 (Post 2554440)
thank you very much i am going to do that , but i fined the the picture use wrong URL how to change it please ? do i have to thread and edited it manually i have very big forum more than 300K thread ?

Sure, once you run this mod, it will start to get a copy of all post/images inside your forum path.

Try to be sure when you make the config. IDK if the vbulletin cache, browser cache.. if you run the vb import, and you need to change anything, you need to clean all cache to be efective.

If you summit a mistake, like me, and write "galerry" and not, "gallery" you can fix with sql sentence inside of you db, iei_img table.

And remember to set a image for "noimage" pictures, its will reemplace a lost linked image if you want.

y2ksw 09-07-2015 08:06 AM

Quote:

Originally Posted by majjed2008 (Post 2554440)
thank you very much i am going to do that , but i fined the the picture use wrong URL how to change it please ? do i have to thread and edited it manually i have very big forum more than 300K thread ?

If you have made a mistake, or simply moved the forum or the images to another place, you may use phpmyadmin and craft a query, like:

Code:

UPDATE post SET pagetext=REPLACE(pagetext, 'old', 'new')
e.g.:
Code:

UPDATE post SET pagetext=REPLACE(pagetext, 'http://www.abc.com/', 'http://www.def.net/')
or:
Code:

UPDATE post SET pagetext=REPLACE(pagetext, '/imported/', '/images/new-site/')
It is unavoidable to make first a backup of the involved table, then a few tests, and if everything is ok, issue the final query.

Manoel J?nior 09-07-2015 03:44 PM

Quote:

Originally Posted by y2ksw (Post 2554459)
If you have made a mistake, or simply moved the forum or the images to another place, you may use phpmyadmin and craft a query, like:

Code:

UPDATE post SET pagetext=REPLACE(pagetext, 'old', 'new')
e.g.:
Code:

UPDATE post SET pagetext=REPLACE(pagetext, 'http://www.abc.com/', 'http://www.def.net/')
or:
Code:

UPDATE post SET pagetext=REPLACE(pagetext, '/imported/', '/images/new-site/')
It is unavoidable to make first a backup of the involved table, then a few tests, and if everything is ok, issue the final query.

This may be something common, it could not be implemented in the product?

y2ksw 09-08-2015 05:19 AM

Quote:

Originally Posted by Manoel J?nior (Post 2554478)
This may be something common, it could not be implemented in the product?

It is too dangerous to handle by ordinary forum owners. Who knows a little about MySQL eventually will do it with no harm, but a complete noob is capable to destroy the message base with one click. I can't be fund of such a problem.


All times are GMT. The time now is 02:04 PM.

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.02451 seconds
  • Memory Usage 1,756KB
  • 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
  • (6)bbcode_code_printable
  • (8)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