forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: johnfelipe on March 06, 2013, 05:36:06 am

Title: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 06, 2013, 05:36:06 am
Hi, please if have a solution, my need is duplicate all albums in a category to other

Tnks
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Αndré on March 06, 2013, 09:58:47 am
Instead of creating dupes I suggest to use the album keyword feature:
http://documentation.coppermine-gallery.net/en/albums.htm#album_prop_controls_album_keyword
http://documentation.coppermine-gallery.net/en/keywords.htm#keywords_album
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 06, 2013, 11:28:22 pm
Hi, is true but i need duplicate my albums y other cat but uploading different images.

Tnks
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Αndré on March 07, 2013, 09:21:55 am
So you just want to create albums with different content but the same name as in another category? If you don't want to use the album manager, you have to create a corresponding MySQL query or tell me the source and target category IDs if you ask me to create it for you.
Title: Re: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 08, 2013, 12:50:05 am
So you just want to create albums with different content but the same name as in another category? If you don't want to use the album manager, you have to create a corresponding MySQL query or tell me the source and target category IDs if you ask me to create it for you.

Source and target category IDs?, how do that, phpmyadmin or?

Tnks
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Αndré on March 08, 2013, 09:30:14 am
Open each category and search for the parameter cid in your browser's address bar, e.g.
Quote
index.php?cat=4
.
Title: Re: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 08, 2013, 09:11:01 pm
Open each category and search for the parameter cid in your browser's address bar, e.g. .

and send you all of them?
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Αndré on March 09, 2013, 08:09:41 pm
Yes, if you want me to create the code for you.
Title: Re: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 11, 2013, 04:42:34 pm
Yes, if you want me to create the code for you.

Hi again, http://200.116.127.78/nuevasplantillas2013/index.php?cat=4, is four (4) the CID, and have subcategories, i need all albmus, no categorized in http://200.116.127.78/nuevasplantillas2013/index.php?cat=136.

Tnks
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Αndré on March 11, 2013, 04:56:07 pm
No Coppermine footer, no support! http://documentation.coppermine-gallery.net/en/theme_copyright.htm#theme_copyright
Title: Re: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 11, 2013, 11:04:00 pm
No Coppermine footer, no support! http://documentation.coppermine-gallery.net/en/theme_copyright.htm#theme_copyright

YES you're right, and I told the technicians to be changed, please refresh the page
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Αndré on March 12, 2013, 10:02:14 am
Sorry, but I won't click through your gallery to collect the category IDs. Please create a list of all source category IDs.
Title: Re: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 13, 2013, 01:03:26 am
Sorry, but I won't click through your gallery to collect the category IDs. Please create a list of all source category IDs.

7
8
9
10
11
12
13
14
15
16
17
18
19
20
28
29
45
46
47
48
49
50
51
66
67
119

Tnks
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Αndré on March 13, 2013, 10:48:51 am
Here's the prepared SQL statement:
Quote
INSERT INTO cpg15x_albums (title, description, visibility, uploads, comments, votes, pos, category, owner, thumb, keyword, alb_password, alb_password_hint, moderator_group, alb_hits, copyright_info) (SELECT title, description, visibility, uploads, comments, votes, pos, 136, owner, thumb, keyword, alb_password, alb_password_hint, moderator_group, alb_hits, copyright_info FROM cpg15x_albums WHERE category IN (7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 28, 29, 45, 46, 47, 48, 49, 50, 51, 66, 67, 119))

If your table prefix isn't cpg15x_, you have to adjust it twice.
Title: Re: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 13, 2013, 10:46:59 pm
Here's the prepared SQL statement:
If your table prefix isn't cpg15x_, you have to adjust it twice.

I have prefix, but with cms content?
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Αndré on March 14, 2013, 10:17:46 am
Please just try to execute the SQL statement.
Title: Re: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 14, 2013, 08:39:30 pm
Please just try to execute the SQL statement.

One error:

"#1054 - Unknown column 'copyright_info' in 'field list'"
Title: Re: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 14, 2013, 09:04:15 pm
One error:

"#1054 - Unknown column 'copyright_info' in 'field list'"

I delete two parts with this table, and it works, but CMS field and photo portal is not appear

TNKS
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Αndré on March 14, 2013, 09:11:52 pm
copyright_info is probably a column I added for somebody's mod in my database, sorry. However, I still don't know how your CMS and "photo portal" is related to your request. If you have modded anything, you have to adjust the query accordingly, as nobody knows your current setup.
Title: Re: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 14, 2013, 09:26:08 pm
copyright_info is probably a column I added for somebody's mod in my database, sorry. However, I still don't know how your CMS and "photo portal" is related to your request. If you have modded anything, you have to adjust the query accordingly, as nobody knows your current setup.

Yes your right, but help me to join to your code cpg15x_cms

Tnks
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Trianon on March 15, 2013, 08:24:38 am
I am sorry if I misunderstood the topic, but I also really need to place the album in several categories. How to do it.
Title: Re: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Αndré on March 19, 2013, 11:22:02 am
help me to join to your code cpg15x_cms
I don't know what you're asking for.


I also really need to place the album in several categories
An album always belong to exactly one category. You could use the album keyword feature if you want to display the same pictures in different albums without uploading them more than once to your gallery. I suggest to start a thread of your own if you don't find a solution in our boards or the docs.
Title: Re: Re: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 20, 2013, 06:15:10 am
I don't know what you're asking for.



How integrate cpg15x_cms table, title and content fields in your code

Tnks
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Αndré on March 20, 2013, 09:15:45 am
Instead of asking the same question again and again you should explain what exactly you want to accomplish. I guess you want to display some data from the MiniCMS plugin for your cloned albums?
Title: Re: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: johnfelipe on March 20, 2013, 05:16:14 pm
Instead of asking the same question again and again you should explain what exactly you want to accomplish. I guess you want to display some data from the MiniCMS plugin for your cloned albums?

exactly tnks for compression
Title: Re: DUPLICATE ALBUMS IN OTHER CAT
Post by: Αndré on March 20, 2013, 07:28:38 pm
You'll need to find out the connected IDs of the old and new albums, which is probably an annoying task. If you again provide a list, please do it the following way:
Quote
OLD_ID1,NEW_ID1
OLD_ID2,NEW_ID2
OLD_ID3,NEW_ID3