Overwriting the Default Image in CB

12 years 5 months 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 to join the conversation.

12 years 5 months 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 to join the conversation.

12 years 5 months 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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.177 seconds

Facebook Twitter LinkedIn