DUPLICATE ALBUMS IN OTHER CAT DUPLICATE ALBUMS IN OTHER CAT
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

DUPLICATE ALBUMS IN OTHER CAT

Started by johnfelipe, March 06, 2013, 05:36:06 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

johnfelipe

Hi, please if have a solution, my need is duplicate all albums in a category to other

Tnks


johnfelipe

Hi, is true but i need duplicate my albums y other cat but uploading different images.

Tnks

Αndré

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.

johnfelipe

Quote from: Α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.

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

Tnks

Αndré

Open each category and search for the parameter cid in your browser's address bar, e.g.
Quoteindex.php?cat=4
.

johnfelipe

Quote from: Α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. .

and send you all of them?

Αndré

Yes, if you want me to create the code for you.

johnfelipe


Αndré


johnfelipe


Αndré

Sorry, but I won't click through your gallery to collect the category IDs. Please create a list of all source category IDs.

johnfelipe

Quote from: Α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.

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

Αndré

Here's the prepared SQL statement:
QuoteINSERT 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.

johnfelipe

Quote from: Αndré on March 13, 2013, 10:48:51 AM
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?

Αndré

Please just try to execute the SQL statement.

johnfelipe

Quote from: Αndré on March 14, 2013, 10:17:46 AM
Please just try to execute the SQL statement.

One error:

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

johnfelipe

Quote from: johnfelipe on March 14, 2013, 08:39:30 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

Αndré

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.

johnfelipe

Quote from: Α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.

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

Tnks