Skip to Content Skip to Menu

Rename the avatar pictures

  • Overtone
  • Overtone
  • OFFLINE
  • Posts: 22
  • Thanks: 0
  • Karma: 0
10 years 9 months ago #242649 by Overtone
Rename the avatar pictures was created by Overtone
Is it possible to rename the avatar pictures, located in /images/comprofiler, in a way like LASTNAME_FIRSTNAME.GIF: I think this will help a lot for SEO in the Google picture search!

Please Log in or Create an account to join the conversation.

  • Overtone
  • Overtone
  • OFFLINE
  • Posts: 22
  • Thanks: 0
  • Karma: 0
10 years 9 months ago - 10 years 9 months ago #242921 by Overtone
Replied by Overtone on topic Rename the avatar pictures
I'm really interested why CB puts in a long number instead of names or something else for the picture filename!
Last edit: 10 years 9 months ago by Overtone.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48671
  • Thanks: 8312
  • Karma: 1446
10 years 9 months ago #243007 by krileon
Replied by krileon on topic Rename the avatar pictures
No it's not possible to rename them without altering the code to set them like that. A persons name is not Unique. You could have 100+ people easily with the same name. Also using name makes it very easy to data mine and extract users images. Using random strings makes that pretty much impossible. In short it's to maintain unique file names and for security purposes.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: nant

Please Log in or Create an account to join the conversation.

  • devodave
  • devodave
  • OFFLINE
  • Posts: 68
  • Thanks: 5
  • Karma: 0
10 years 1 month ago #252872 by devodave
Replied by devodave on topic Rename the avatar pictures
Hi there,

sorry to re-open this subject. Without altering completely the code,I would like to add a prefix on the uploaded avatar.
Which files are concerned?

Tx

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48671
  • Thanks: 8312
  • Karma: 1446
10 years 1 month ago #252878 by krileon
Replied by krileon on topic Rename the avatar pictures
The below file contains the core field type code.

components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php

You'll find to modify the image field behavior. I do not suggest making core modifications. I can't see a purpose for modifying the filename.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: devodave

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum