Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: user_id and albums  (Read 2514 times)

0 Members and 1 Guest are viewing this topic.

giorgio79

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 114
user_id and albums
« on: February 11, 2007, 06:37:26 pm »

I was under the impression that the user_id from the users table (in my case phpbb_users) equals the category in coppermine_albums table, but I just notice that they are slightly different.

Could someone explain why?

For example:
A user_id of 100055 will have category 110055

And I do not understand why. I have seen queries where they add FIRST_USER_CAT, does this have to do with it?

Cheers,
Gyuri
« Last Edit: February 11, 2007, 09:51:39 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: user_id and albums
« Reply #1 on: February 11, 2007, 06:47:58 pm »

The user gallery categories are numbered using 10000 + the user id to differentiate them from regular categories. FIRST_USER_CAT is a constant that is set to 10000 to make it easier to change if required.
Logged

giorgio79

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 114
Re: user_id and albums
« Reply #2 on: February 11, 2007, 07:33:27 pm »

Thanks Nibbler for your kind explanation.

Sticking to my example, I do not see the logic followed for user_id 100055

Should not it be 1100055, and not 110055? It feels like a 0 is chopped off...

Cheers,
Gyuri
Logged

Nibbler

  • Guest
Re: user_id and albums
« Reply #3 on: February 11, 2007, 08:25:52 pm »

100055 + 10000 = 110055
Logged

giorgio79

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 114
Re: user_id and albums
« Reply #4 on: February 11, 2007, 09:23:17 pm »

ah, cool :D

thank you very much for your time and patience
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.