Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

CB Login avatar

  • ver
  • ver
  • OFFLINE
  • Posts: 142
  • Thanks: 4
  • Karma: 2
11 years 6 months ago #225377 by ver
CB Login avatar was created by ver
Hi,

I upload some image to the gallery (avatar) images/comprofiler/gallery

But CB Login dont resize at all

And display the same size.

How can i display thumbnail or some small avatar into CB Login??

Thanks in advance.

Ger.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225399 by krileon
Replied by krileon on topic CB Login avatar
Gallery images aren't re-sized. You'll need to use CSS to re-size them at specific locations. This should be doable using the below CSS for example.
Code:
#mod_login_avatar, .cbThumbPict { max-width: 50px; }

The above will limit the width to a maximum of 50 pixels for thumbnail images. It's often best to use max-width and/or max-height to avoid forced height/width as something smaller than 50px would be stretched in such a case, but will not be using max- usages. I suggest adding to the bottom of your Joomla template CSS file so it can apply to all locations of your site that the avatar may render through API.


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.

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

Moderators: beatnantkrileon
Powered by Kunena Forum