Thanks!It's just a case of changing the category_id field in the xf_mg_media_item table. Afterwards you'll also need to run the rebuild tool for categories so the correct counts are displayed.
The aim is really to ditch the album category type and change it to media item. Then move personal albums to a media item category.If you want to move the contents of albums to media item categories, then you'll need to use inline moderation, ideally. Otherwise it would be a case of setting the album_id of the media item to 0 and setting the category_id to the desired category.
Just the images and whatever related data so it'll work like a media item category type. Album titles that are associated with the album category type etc aren't needed. We want to move personal albums and media from the album category type.Just to be clear, you’re talking about moving the contents of albums into categories, right?
Because you can’t have albums inside a media item category.
I managed to move personal albums to an album category but when I click on the album from the media gallery page, it says:Same but the xf_mg_album table, though you'll need to ensure the category is an album type, rather than media item.
Is this correct after personal albums are in the album category?Then something went wrong with the queries you ran. I'd need to know what they are to be able to comment further.
UPDATE xf_mg_media_item SET album_id = '0';
How would I go about getting rid of the albums but keeping all the media?If the media item is in an album which is inside an album category, then no, of course not. The media item still needs to know which album it is in.
xf_mg_media_item table, album and category IDs are 0.These media items, do they have a category_id value (the category_id of the album category) or do they have a category_id of 0?
And can you confirm that all of them now have an album_id of 0?
UPDATE xf_mg_media_item
SET category_id = 9999
WHERE category_id = 0
AND album_id = 0
We use essential cookies to make this site work, and optional cookies to enhance your experience.