forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Wladimir on August 29, 2006, 09:06:56 pm

Title: Restart category
Post by: Wladimir on August 29, 2006, 09:06:56 pm
How can I restart cat number, because when I delete cat and make another one, it countinue counting, doens't restart!

Please help!

Thanks!
Title: Re: Restart category
Post by: Nibbler on August 29, 2006, 10:54:16 pm
You can't.
Title: Re: Restart category
Post by: Wladimir on August 29, 2006, 11:29:32 pm
OMG, do I need to upload coppermin again?
Title: Re: Restart category
Post by: Sami on August 29, 2006, 11:38:31 pm
you can truncate the xxx_categories table
but after that you should run this query:
Code: [Select]
INSERT INTO XXX_categories (cid, name, description) VALUES (1, 'User galleries', 'This category contains albums that belong to Coppermine users.');
also you need to change the XXX under code to your prefix
in this way you will lose all of your categories , so first take a backup of your xxx_categories
Title: Re: Restart category
Post by: Joachim Müller on August 29, 2006, 11:40:52 pm
It's just a number, nobody of your users cares what category number a category has. They don't care for the URL. Just leave things as they are. I can see absolutely no reason for a fresh install just for the sake of keeping category numbers neat.
Title: Re: Restart category
Post by: Wladimir on August 29, 2006, 11:44:17 pm
It's just a number, nobody of your users cares what category number a category has. They don't care for the URL. Just leave things as they are. I can see absolutely no reason for a fresh install just for the sake of keeping category numbers neat.
ok, thanks anyway!