Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   General Business Knowledge (http://www.greenguysboard.com/board/forumdisplay.php?f=10)
-   -   TGPX - Merge Categories or Edit Database By Hand? (http://www.greenguysboard.com/board/showthread.php?t=69517)

Greenguy 2018-04-28 07:48 AM

TGPX - Merge Categories or Edit Database By Hand?
 
Dummy's got another TGPX conundrum |pokefun||greenguy|

We've got 1600 galleries tagged with the category zzzMilf (as well as other categories). We want to change that category to another existing category: Hardcore.

1st thing I tried was to just rename the zzzMilf category to Hardcore, but that just created a 2nd category named Hardcore (each have the exact same settings in the Edit Category area, so it's not like it created a 2nd category named Hardcore due to different settings).

So then I did a "test" on 70 or so galleries. I say "test" because those were scheduled for a future date & you can't export their scheduled date, so I did them 1st. I exported them with basically all the Fields I could, including the Thumb URL. Opened the export, did a search & replace to change zzzMilf to Hardcore, added their scheduled date and imported them back in using the "Replace old gallery data with new gallery data" for Duplicates option. Of course, that deleted all the thumbs because why wouldn't it delete them |facepalm|

So my next option is to export all 1600 galleries, change their status to Disabled (so I can use the existing thumb), do the search & replace, and then import them back in using the "Add duplicates to database" option. But it seems like there should be an easier way to do this |huh

I didn't see an option to merge categories - am I missing something?

Is there a way to edit the database by hand? (txt, csv, etc.) I assume there's a field in the database file for categories that looks like this:
Amateur,Blowjob,ThreesomeFFM,Blonde,Milf,zzzMilf
So opening the database file & doing a simple search & replace seems like the logical thing to do.

Based on replies, I may have follow-up questions :D

Thanks |shake|

Pagan 2018-04-28 08:33 AM

I have no idea how you did tried to do this. I rename categories through the Settings frequently.

http://www.hotndirtybabes.com/cats.jpg

In the top image, that first category is Anal Lesbians. I have been changing these to one word just because. I went to Settings, Categories, and found the one I want to change. Clicked on the pencil, made my change... I made it AnalLes. And if you look at the lower screenshot, you can see no more Anal Lesbian category. If it had done the copy thing, you still would have seen Anal Lesbian, then Anal MILF, right? But no.. you do see the new AnalLes category though.

Toby 2018-04-28 10:07 AM

You can easily mass edit to change category. Do a search that pulls up all the galleries to be changed, then change the category of the first and click the double disk icon to save changes to all matching galleries. Just that simple.

Double check to make sure the old category has 0 galleries, then it can be deleted.

Greenguy 2018-04-28 10:19 AM

Quote:

Originally Posted by Pagan (Post 551480)
I have no idea how you did tried to do this. I rename categories through the Settings frequently.

In the top image, that first category is Anal Lesbians. I have been changing these to one word just because. I went to Settings, Categories, and found the one I want to change. Clicked on the pencil, made my change... I made it AnalLes. And if you look at the lower screenshot, you can see no more Anal Lesbian category. If it had done the copy thing, you still would have seen Anal Lesbian, then Anal MILF, right? But no.. you do see the new AnalLes category though.

You didn't have a category already named AnalLes with galleries in it.

Quote:

Originally Posted by Toby (Post 551483)
You can easily mass edit to change category. Do a search that pulls up all the galleries to be changed, then change the category of the first and click the double disk icon to save changes to all matching galleries. Just that simple.

All the galleries are tagged with multiple different categories, so let's say the 1st one is tagged:
Amateur,Blowjob,ThreesomeFFM,Blonde,Milf,zzzMilf
If I change zzzMilf to Hardcore & then click the http://www.buttonserver.com/llist/ad...e-selected.png icon, won't that apply those 6 categories to ALL of the galleries?

Toby 2018-04-28 10:31 AM

Quote:

Originally Posted by Greenguy (Post 551484)
If I change zzzMilf to Hardcore & then click the http://www.buttonserver.com/llist/ad...e-selected.png icon, won't that apply those 6 categories to ALL of the galleries?

Yeah, if zzzMilf is one of multiple categories, then the mass edit will not work.

Greenguy 2018-04-28 10:32 AM

Any other options you can think of besides this?

Quote:

Originally Posted by Greenguy (Post 551474)
So my next option is to export all 1600 galleries, change their status to Disabled (so I can use the existing thumb), do the search & replace, and then import them back in using the "Add duplicates to database" option.


Toby 2018-04-28 11:08 AM

Quote:

Originally Posted by Greenguy (Post 551488)
Any other options you can think of besides this?

No, but I'm also not all that confident it will capture the thumbs from the disabled and connect them with the import.

Greenguy 2018-04-28 11:15 AM

Quote:

Originally Posted by Toby (Post 551489)
No, but I'm also not all that confident it will capture the thumbs from the disabled and connect them with the import.

It will. I learned that a couple months ago :)

Greenguy 2018-04-28 11:16 AM

I'm gonna wait to do that just in case anyone else has an idea for me |shake|

Pagan 2018-04-28 01:06 PM

Quote:

Originally Posted by Greenguy (Post 551484)
You didn't have a category already named AnalLes with galleries in it.

No, I didn't have an AnalLes category before, but I had Anal Lesbian. I edited the name of the category. I thought that was what you were trying to do. Anal Lesbian had 71 galleries. It is now gone. The edited AnalLes category now has 71 galleries. You do have to go back and edit any page templates that called out the old name.

If you edit the name of ANY category, then it will be applied automatically to all of the galleries with that old category.

Just imagine it this way - your categories are just like filing cabinet drawers. If you have one labeled Anal, and want to change it to Ass, all you have to do is change the name of the filing cabinet drawer and it will apply that change to all of the contents inside. The templates have their own drawer, so you have to manually update those.


So, if you did NOT have a hardcore category before and wanted to put everything that had that zzzMILF category there, all you have to do is go to Settings and change the Category name. It will apply to all of the galleries in the old zzzMILF drawer because now that drawer is called Hardcore.

If, though, you exported galleries before you made the change... then imported them afterwards, they still have the old category on them, and they WILL make a new category for them. The other way to do it is NOT designate a category when you do your import and select it -- Bad Categories go into --->

Greenguy 2018-04-28 01:14 PM

Oddly enough, dummy does know all that :D

JustRobert 2018-04-28 01:51 PM

Looks like we might be doing it 1 at a time |banghead|

I can start once I'm done with the new cats being added.

Greenguy 2018-04-28 02:23 PM

No way we're doing 1600 individual edits|lol|

The export/disable/import option does work, just seems like there might be an easier way :)

pc 2018-04-29 04:19 AM

There is a way of saving thumbs but you need to export them and import them back in a desired format. The easiest way is to create a page and pull them all as a text, line by line with pipe delimiter where you have all fields with thumbs urls. Copy and Paste into TGPX Import tool.

Greenguy 2018-04-29 08:08 AM

1 Attachment(s)
Quote:

Originally Posted by pc (Post 551503)
There is a way of saving thumbs but you need to export them and import them back in a desired format. The easiest way is to create a page and pull them all as a text, line by line with pipe delimiter where you have all fields with thumbs urls. Copy and Paste into TGPX Import tool.

Do you mean when I export them, to include the Thumb URL - like http://www.pornluv.com/llist/thumbs/420.jpg - and when I import them, to include that for the "Preview URL" field? If so, that's what I assumed would work, but when you import & select "Replace old gallery data with new gallery data" for Duplicates, it deletes all the old data for that gallery, including the thumb.

OR

Are you talking about this from admin/docs/galleries-export.html

http://www.greenguysboard.com/board/...1&d=1525003282

OR

I could load all those galleries on a page & have my Image Downloader grab all 1600 thumbs, then upload them to the /thumbs/ directory after I import everything, but that too seems like a lot of extra work.

pc 2018-04-29 09:56 AM

Quote:

Originally Posted by Greenguy (Post 551508)
Do you mean when I export them, to include the Thumb URL - like http://www.pornluv.com/llist/thumbs/420.jpg.... but when you import & select "Replace old gallery data with new gallery data" for Duplicates, it deletes all the old data ...

One silly option is to RENAME thumb folder for a moment and then select replace ;)

Greenguy 2018-04-29 10:04 AM

Quote:

Originally Posted by pc (Post 551514)
One silly option is to RENAME thumb folder for a moment and then select replace ;)

So it goes to delete the thumb, can't find it, and just moves on? That is an idea. Of course, it'd fuck up 75 sites in the process as they try to load thumbs that aren't there|lol|

pc 2018-04-29 11:56 AM

Well , that's the idea |huh

JustRobert 2018-04-30 11:32 AM

Quote:

Originally Posted by Greenguy (Post 551498)
No way we're doing 1600 individual edits|lol|

The export/disable/import option does work, just seems like there might be an easier way :)

I went ahead and changed mine one at a time while we binged Lost In Space yesterday while being hungover so there is only like 1200 now :)

Greenguy 2018-05-01 06:45 AM

One option I never thought of was to just procrastinate doing anything while your partner changes all of them by hand without you knowing, so to JustRobert, I say |bow| |smooch| |shake|


All times are GMT -4. The time now is 08:55 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc