Skip to Content Skip to Menu

Avatar pic not loading

7 years 4 months ago #289395 by pranaydhruv
Avatar pic not loading was created by pranaydhruv
Dear Team,

Please check and let me know why the image seems to be picking up the wrong path. I can't seem to figure out why it is pointing to localhost, even though this is my website that is online on a server

Attachment not found

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
7 years 4 months ago #289402 by krileon
Replied by krileon on topic Avatar pic not loading
You probably have live_site set within configuration.php. It should be empty (set to ''). That's the only determining factor for domain when building the avatar paths.


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.

7 years 4 months ago #289422 by pranaydhruv
Replied by pranaydhruv on topic Avatar pic not loading
Dear Kyle,

This is what is shows in Configuration.php:-

public $live_site = '';

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
7 years 4 months ago #289423 by krileon
Replied by krileon on topic Avatar pic not loading
Are you overriding the displaying using the layout parameters? I don't know what more to suggest as the path is dynamically built from live_site which if is blank just uses whatever domain Joomla returns for the base path.


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.

7 years 4 months ago #289437 by pranaydhruv
Replied by pranaydhruv on topic Avatar pic not loading
Dear Kyle,

You were right, the layout parameter was not correct in the avatar field,i corrected it and now the display of the Avatar is fixed, however, the display of avatar thumbnail on the CBlogin module is still picking up from the localhost. This is what i have in layout of the avatar field :-
[cb:if avatar!~"/(nophoto_n|tnnophoto_n)\.png$/"][value][/cb:if]
[cb:if avatar=~"/(nophoto_n|tnnophoto_n)\.png$/" and cb_gender="Female"]<img src="http://.com/components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_f.png" alt="Female" class="cbImgPict cbFullPict img-thumbnail" />[/cb:if]
[cb:if avatar=~"/(nophoto_n|tnnophoto_n)\.png$/" and cb_gender="Male"]<img src="http://.com/components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_m.png" alt="Male" class="cbImgPict cbFullPict img-thumbnail" />[/cb:if]
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
7 years 4 months ago #289443 by krileon
Replied by krileon on topic Avatar pic not loading
Use [cb:config param="live_site" /] instead of hardcoding the domain to avoid future issues like this. Your login module maybe cached or you've modified the layout for it. Try clearing Joomla cache and see if the module displays fine. If not see if you're using a layout override for the module.


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

Facebook Twitter LinkedIn