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-album folder based on username not id?  (Read 2576 times)

0 Members and 1 Guest are viewing this topic.

zzz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
user-album folder based on username not id?
« on: August 18, 2006, 10:59:44 am »

hello im wondering whether the user-album folder could be based on the user's username and not id?
 
i currently run my 1.4.8 bridged with phpbb and disallow symbols and i would like to have a folder for every user on my site - using the coppermine folder layout would be simpler if this hack could be made.

any ideas?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: user-album folder based on username not id?
« Reply #1 on: August 19, 2006, 06:06:56 am »

Not a bright idea, as user names may contain characters that are forbidden in folder names. After all, those are just folders that the human doesn't have to memorize, as the database keeps track of the location of files.
Logged

zzz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: user-album folder based on username not id?
« Reply #2 on: August 21, 2006, 12:12:53 pm »

could someone show me how to do it though?

as i said before i use phpbb as my registration area and i disallow such symbols in the names - and its for my system not coppermines.

thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: user-album folder based on username not id?
« Reply #3 on: August 21, 2006, 04:47:48 pm »

Not a trivial hack, requires modification of the core code in several places. You need it -> you code it. A wee bit too much effort for something that doesn't really matter - as I suggested, the folder name doesn't really matter.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 19 queries.