News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Tinypic Shutdown. Any ideas on saving pictures?

Started by khigh, August 05, 2019, 07:53:28 PM

Previous topic - Next topic

khigh

Hi all.

My forum is tinypic heavy. I installed the tinypic plugin after literally YEARS of people not understanding how to do inline pics.

So they're shutting down "in 2019". Not even sure when (anyone know when?).

I'm HOPING I can do some sort of batch operation to download all the pictures with an offline browser, keeping all the pictures along with their names and paths, put them somewhere, and then do a universal replace with the new hostname taking the place of tinypic.

Does that sound like the way to do it, or is there something more elegant?

Thanks for looking!

khigh

Looks like they don't use folders, but separate by server.

I'm downloading the site now with linked pics in WinHTTrack.

They're in the form of http://i64.tinypic.com/mtpiqr.jpg

With the "i" number being between i63 and i68

So I'm thinking of combining them all into one folder, uploading them, and then doing 6 search and replace for say http://i64.tinypic.com to http://mypichost.com

This sounding about right?

Also - one thing. I know I've seen automatic text replace before, but where is it? Thanks.

vbgamer45

Text replace i would recommend using mysql's replace command on the database after you do a database backup first.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

a10

Have used Notepad++, extensive find & replace functions.
FTP download of actual DB table > edit\save > FTP upload (replacing the original table).
Keep a backup of original.
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Kindred

why would you do it that way?? ???

just use a single command UPDATE table SET fieldname = REPLACE(fieldname, find_string, replace_with) WHERE condition;
e.g.
UPDATE smf_messages
SET
    body = REPLACE(body,
        'old_url',
        'new_url');

otherwise, you have to export, edit, then import with overwrite...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

a10

^^^ Agree of course, direct edits in the db is the correct action ...when & if one knows how, why & where :O)
Was just showing an alternative which works fine, for those who are not feeling confident doing 'things' within the db.
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Advertisement: