[SOLVED] - Pictures names

13 years 4 months ago #146752 by schyzo
[SOLVED] - Pictures names was created by schyzo
Hi,

First of all, I'm french, so excuse my bad english...

I'm using CB to register members on my website.
I force them to upload a picture because I need an ID picture fo all members (to create a "member card").

So the avatar is uploaded in Media/comprofiler/.
But all images names are like "0_4ce7d629a74d7.jpg"...

So, it's hard for me to find witch image matches with what member.

==> Is there a way to name the images automatically with the name or login of each member ?
How can I do ?

Thanks for your help !

Post edited by: schyzo, at: 2010/11/23 14:11

Please Log in to join the conversation.

13 years 4 months ago #146755 by nant
Replied by nant on topic Re:Pictures names
nope - currently this is the naming convention used.
You can easily map the image name with the username by looking at the comprofiler table.

Please Log in to join the conversation.

13 years 4 months ago #146765 by schyzo
Replied by schyzo on topic Re:Pictures names
Thanks for your quick answer.
The thing is that I need all my members to upload a picture because I will use it to print them a member card.
For example, today, I had 5 new inscriptions...and in the directory Media/comprofiler/ I have the 5 pictures (with their miniatures) and I don't know who uploaded each picts...

As this website is not for me, but for a customer who really doesn't know how to connect to his DB to view the comprofiler table, I'd like to link easily each picture to their owner.

Is there a php fil I can modify to rename automatically pictures when they are uploaded ?

Please Log in to join the conversation.

13 years 4 months ago #146780 by nant
Replied by nant on topic Re:Pictures names
Make a userlist for your customer. Put avatar and other information he would need to create the membership id card on the list. This way you customer has all the information needed and he can upgrade in the future without losing your hack.

Please Log in to join the conversation.

13 years 4 months ago #146859 by schyzo
Replied by schyzo on topic Re:Pictures names
Thanks !! that's exactly what I needed !
I didn't used the list functions yet, but it's exactly what I needed for my customer !

Thanks again for your help !

Please Log in to join the conversation.

13 years 4 months ago #146875 by nant
Replied by nant on topic Re:Pictures names
schyzo wrote:

Thanks !! that's exactly what I needed !
I didn't used the list functions yet, but it's exactly what I needed for my customer !

Thanks again for your help !


Glad I could help.
You should consider the CB Documentation subscription.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.203 seconds

Facebook Twitter LinkedIn