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.

Group album notification in activity stream

11 years 8 months ago
  • Jared's Avatar
    Topic Author
  • Jared
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 2
Licenses:
JomSocial Expired Socialize Expired

Currently the notifications in the activity stream for group photo album posts is a bit lacking. How can I change the syntax of the notification to:

%Username% shared # photos in %Groupname%'s photo album: %PhotoAlbumname%.

Example: Jared Hungerford shared 2 photos in Urban Gardening's photo album: The Hansen Garden Year 2


The photo album name would need to be linked as well. Can this be done with a simple language override or is this a change that I need to make within the code somewhere?

Attachments:
11 years 8 months ago
Licenses:

Hi Jared,

here the steps:
1. create language override for

COM_COMMUNITY_ACTIVITY_GROUP_PHOTO_UPLOAD_TITLE=" shared a photo in <a href=_QQQ_%1s_QQQ_>%2s's</a> photo album: <a href=_QQQ_%3s_QQQ_>%4s</a>"
and
COM_COMMUNITY_ACTIVITY_GROUP_PHOTOS_UPLOAD_TITLE=" shared %1s photos in <a href=_QQQ_%2s_QQQ_>%3s's</a> photo album: <a href=_QQQ_%4s_QQQ_>%5s</a>"
2. template override for /components/com_community/templates/default/activities.photos.php, at line 72
echo JText::sprintf('COM_COMMUNITY_ACTIVITY_GROUP_PHOTOS_UPLOAD_TITLE', $count, CUrlHelper::groupLink($group->id), CStringHelper::escape($group->name));
echo JText::sprintf('COM_COMMUNITY_ACTIVITY_GROUP_PHOTOS_UPLOAD_TITLE', $count, CUrlHelper::groupLink($group->id), CStringHelper::escape($group->name), $album->getURI(), CStringHelper::escape($album->name));

and at line 82, from
echo JText::sprintf('COM_COMMUNITY_ACTIVITY_GROUP_PHOTO_UPLOAD_TITLE', CUrlHelper::groupLink($group->id), CStringHelper::escape($group->name));
to
echo JText::sprintf('COM_COMMUNITY_ACTIVITY_GROUP_PHOTO_UPLOAD_TITLE', CUrlHelper::groupLink($group->id), CStringHelper::escape($group->name), $album->getURI(), CStringHelper::escape($album->name));

Regards

The following user(s) said Thank You: Jared
11 years 8 months ago
  • Jared's Avatar
    Topic Author
  • Jared
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 2
Licenses:
JomSocial Expired Socialize Expired

Hi Albertus,

I created the language and template overrides but the links aren't redirecting the user to the group or album respectively. They just redirect to the homepage.

11 years 8 months ago
Licenses:

Hi Jared,

please check it again. I made the changes at language overrides:
I remove _QQQ_ at text value. this _QQQ_ only need if not using overrides method.

sorry my mistake.

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