Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Custom JPEG cover image

9 years 8 months ago
  • Miran's Avatar
    Topic Author
  • Miran
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Licenses:
JomSocial Active

Hi i looked around for this information but didn't figure out how to get it work

If we want to replace the default cover image for the events, we can do it by:
- putting custom cover with name:
cover-event.png

at [joomla site root]/templates/[your frontend template]/html/com_community/images/

Ok but i would like to have a jpg file. Which php file do i have to modify in order to get this? I already copied the single.php file to [joomla site root]/templates/[your frontend template]/html/com_community/layouts/events
But i don't know if this is the right thing to do.

Thank you!
Regards
Miran

9 years 8 months ago
Licenses:

Hi,

you no need to override single.php.
by default we using PNG as cover image. because PNG support transparent "color", not with JPG.

if you want to changing it to JPG. you must edit the core file:
/components/com_community/tables/event.php:
line 1189:

return CUrlHelper::coverURI($this->cover, 'cover-event.png');
changing it to
return CUrlHelper::coverURI($this->cover, 'cover-event.jpg');

Regards

9 years 8 months ago
  • Miran's Avatar
    Topic Author
  • Miran
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Licenses:
JomSocial Active

Hi Albertus and thank you for your explanations!

Is there a way to override it?
For example by putting this file in this folder :
[joomla site root]/templates/[your frontend template]/html/com_community/tables/ ?

9 years 8 months ago
Licenses:

Hi Miran,

it cant. the override only for templates folder, not for jomsocial core file.
I suggest you to using PNG instead of JPG

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW