PDA

View Full Version : TGPx, again


jollyhumper
2018-05-13, 02:03 PM
Howdy

When TGPx makes the pages it pulls thumbs with

<img src="http://thumb"></a>

Problem is, i want it to pull https://

In 'general settings' I've set thumb-url to be https:// but TGPx ignores this when pulling and writing the page.

Anyone knows how to change this?

Jolly

Toby
2018-05-13, 06:31 PM
Been there... {heavy sigh}
Changing that setting only effects new galleries added after the change. It will not change galleries already in the database.

jollyhumper
2018-05-13, 06:56 PM
Been there... {heavy sigh}
Changing that setting only effects new galleries added after the change. It will not change galleries already in the database.
Fuck!

Thanks for answering

J:(lly

Greenguy
2018-05-14, 04:49 AM
It'd be a huge pain, but can't you export everything, search & replace the thumb/preview URL, and re-import everything?

jollyhumper
2018-05-14, 06:56 AM
It'd be a huge pain, but can't you export everything, search & replace the thumb/preview URL, and re-import everything?

First of all, I don't have a clue on how to do that. Mysql stuff is what I know the least about.

But if I was able to export it, wouldn't it be possible to do a "search and replace"?

First do a https -> http and then http->https?
(First one obviously to avoid a search and replace ending in httpss)

Jolly

Greenguy
2018-05-14, 07:41 AM
Exporting & Importing is VERY easy. How many galleries do you have in there?

The Search & Replace thing - I just looked an in theory this should work:
1 - Back up the database :D
2 - Go to Search Galleries & on the top right click the Quick Tasks icon (looks like a wrench/tools)
3 - On the top Search and Replace, select Thumbnail URL. Then search for "http://" and replace it with "https://" (include the :// so that you don't change existing "https" to "httpss"
4 - |pray| to |buddy| and do a Build

If it worked, then |thumb

If it didn't, Restore From Backup & go from there :)

jollyhumper
2018-05-14, 08:07 AM
Exporting & Importing is VERY easy. How many galleries do you have in there?

The Search & Replace thing - I just looked an in theory this should work:
1 - Back up the database :D
2 - Go to Search Galleries & on the top right click the Quick Tasks icon (looks like a wrench/tools)
3 - On the top Search and Replace, select Thumbnail URL. Then search for "http://" and replace it with "https://" (include the :// so that you don't change existing "https" to "httpss"
4 - |pray| to |buddy| and do a Build

If it worked, then |thumb

If it didn't, Restore From Backup & go from there :)

|bow||bow||shake||bow||bow|

I think it's close to 3000 now

Thanks, I'll give it a try

Jolly

jollyhumper
2018-05-14, 09:19 AM
May I swear on this board?

Holy fuck, it worked like a charm! Thanks Greenie.

|banana||boobies||bow|

I'm also a tiny bit embarrassed that I didn't know this function, I thought I knew TGPx by now.

again, thx.

J:)lly

Greenguy
2018-05-15, 05:51 AM
|shake|