4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: webmaster73 on March 02, 2008, 04:37:18 PM

Title: merge 2 categories in 1.7.6 in the admin interface, without direct access to DB
Post by: webmaster73 on March 02, 2008, 04:37:18 PM
hi.
I know how to merge 2 categories with SQL (direct access to the DB)

But I would like to give such power to fellow administrators who only have access to 4images 1.7.6 admin interface

I searched and could not find such a mod.

Does this exist?

The MOD should simply do 2 things:

$source_cat_id=
$target_cat_id=

1) update table images WHERE cat_id = $source_cat_id SET cat_id= $target_cat_id

2) mv /home/user/public_html/gallery_folder/data/media/$source_cat_id ../$target_cat_id

Title: Re: merge 2 categories in 1.7.6 in the admin interface, without direct access to DB
Post by: Alessio on March 02, 2008, 07:08:55 PM
You could use admin/image.php (Edit Image in ACP) and select all images of a category and move into another one.
Title: Re: merge 2 categories in 1.7.6 in the admin interface, without direct access to DB
Post by: webmaster73 on March 03, 2008, 12:26:33 AM
You could use admin/image.php (Edit Image in ACP) and select all images of a category and move into another one.

Thank you Alessio. but are you using a modded version of images.php?
the regular non-modded file does not on my end provide a "move" button. I only got "delete" and "next page"

right ?

edit: I believe you are using a mod such as this one
http://www.4homepages.de/forum/index.php?topic=6759.0

Title: Re: merge 2 categories in 1.7.6 in the admin interface, without direct access to DB
Post by: Alessio on March 03, 2008, 12:48:27 AM
Thank you Alessio. but are you using a modded version of images.php?
the regular non-modded file does not on my end provide a "move" button. I only got "delete" and "next page"

right ?

edit: I believe you are using a mod such as this one
http://www.4homepages.de/forum/index.php?topic=6759.0


Exactly.