Advanced search  

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]

Pages: [1]   Go Down

Author Topic: user-album folder based on username not id?  (Read 2127 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.017 seconds with 19 queries.