Skip to Content Skip to Menu

Overwriting the Default Image in CB

  • Josh Lewis
  • Josh Lewis
  • OFFLINE
  • Posts: 112
  • Thanks: 7
  • Karma: 0
  • Add-ons
13 years 3 weeks ago #183175 by Josh Lewis
Overwriting the Default Image in CB was created by Josh Lewis
I'm trying to use a template overwrite to display the default image for when there is no profile pic uploaded. Currently it looks like this:
www.hikrs.com/components/com_comprofiler/plugin/templates/osx/images/avatar/nophoto_n.png

While I want it to look like this:
hikrs.com/templates/adventure/html/com_profiler/plugin/templates/osx/images/avatar/nophoto_n.png

I figure a template overwrite is my best option because every time I upgrade cb, I loose the default image. Currently in the following link it still displays the original:
www.hikrs.com/profile/userprofile/test
Did I place the image in the wrong directory for an overwrite?
templates/adventure/html/com_profiler/plugin/templates/osx/images/avatar

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

13 years 3 weeks ago #183269 by cyberholic
Replied by cyberholic on topic Re: Overwriting the Default Image in CB
Hi Josh,
the links are totally different as far as i can see it.
all you need to do is to overwrite the one picture with the other - that would
be all.

Greetz,
Carlos

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

  • Josh Lewis
  • Josh Lewis
  • OFFLINE
  • Posts: 112
  • Thanks: 7
  • Karma: 0
  • Add-ons
13 years 3 weeks ago #183305 by Josh Lewis
Replied by Josh Lewis on topic Re: Overwriting the Default Image in CB
Technically what you said "works" until you upgrade community builder. Then your back to the original. Using a template over write would make it so you would never have to worry about the image being over written when you upgrade. The only difference in the urls above are the start of it which it is in the html section of the template directory. If someone knows the exact directory name for over writes, it would be appreciated.

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

Moderators: beatnantkrileon
Powered by Kunena Forum