JomSocial Activities Stream Plugin

  • grapple
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago - 12 years 8 months ago #10843 by grapple
JomSocial Activities Stream Plugin was created by grapple
Hi, Tuan!

I am sure that this is not a bug but we have a concern with using the Event Booking plugin that adds event registrations into the JomSocial Activities stream.

The event bookings that we sell are open to both users of JomSocial and to the wider public and they can all sign up for events, make their event attendance purchases, etc. - all good. We also wanted to be able to show the signups in the JomSocial Activities stream to help promote the events to the community and the plug_jsactivities plugin seems to do the job nicely, except...

When a user who is logged into JomSocial registers for an event, their username shows up in the JomSocial Activities stream - great!

BUT! When a person who is NOT a user in JomSocial signs up for an event, their FULL NAME (essentially, a lot of people will enter their name the way it is shown on their credit card!) shows up in the Activities stream. This is an absolute no-no in terms of privacy in our community and on the Internet in general. Usernames showing up are fine, even encouraged, but we cannot publish real names in any way. This was such a great concern that we had to uninstall the plugin immediately.

So, here's the question... is there a way to configure the plugin so that it:
- for registered and logged-in JomSocial users, it behaves as it normally does, showing the username of the member who has signed up for an event
- for users who are not logged-in, the registrations would either not be included in the JomSocial activity stream or show up as "anonymous" or even a nickname the event attendee can select at registration time instead of displaying their full name?

Is there a way to accomplish that?

Thank you for a great component!
Last edit: 12 years 8 months ago by grapple.

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

More
12 years 8 months ago #10884 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: JomSocial Activities Stream Plugin
Hi

The simplest solution is modify the code in the plugin. The steps are :

1. Open the file plugins/eventbooking/js_activities.php

2. Looks at the code at line 14 :
Code:
$user = & JFactory::getUser();

Change it to :
Code:
$user = & JFactory::getUser(); if ($user->get('guest')) return true ;

After that, only logged in user registration will be added to activity stream !

Regards,

Tuan

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

  • grapple
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #11335 by grapple
Replied by grapple on topic Re: JomSocial Activities Stream Plugin
Hi, Tuan!

Thank you for that hack! It did the job nicely for the time being.

Can I suggest, however, that this be implemented as an option for the plugin so that users can turn on or off the display of non-member registrant names without having to hack the code?

Thanks again for all your help!

Cheers!

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

More
12 years 7 months ago #11381 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: JomSocial Activities Stream Plugin
Thanks for your feedback . Will think about it for future releases. For now, there are more important features which I need to work on first !

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc