Hey,
thanks a bunch for all the help already given :D But things keep coming ;)
I got a couple of problems my client wou:ld like to change
Hi. Philipp.
1. That is right, you can't use those variables as module doesn't loads helper with them.
Private groups are not displayed in modules or stream by default (in JomSocial 3.2.1.5).
Private Events are not private in meaning that their content is restricted to attendee only, rather that they belong to private person (not site) ant users need to be accepted to attend.
So if you to prevent displaying those events in module use this:
<?php if(($event->permission != COMMUNITY_PRIVATE_EVENT) { ?>
Hi,
2. Please you try change jomsocial redirect plugin setting "Override com_user registration" to No
Thank you
I did, but it doesnt change anything.
Right now i fixed the problem by deactivating the redirect plugin as you said. But if you could have an in depth look that would be highly appreciated :)
The other code was wonderful: <?php if(($event->permission != COMMUNITY_PRIVATE_EVENT) { ?> in order to hide private events in the module.
Now the next problem is that private groups are still shown in the groups list. They should be hidden for non-members too. I thought i could figure it out myself by using a similar code to this: <?php if(($event->permission != COMMUNITY_PRIVATE_EVENT) || (($event->permission == COMMUNITY_PRIVATE_EVENT) && ($isEventGuest || $isMine || $isAdmin || $isCommunityAdmin))) { ?>
But no luck :)
Thank once more!
Phil
And i just saw that the Events Module now hides all private events, even if i am a member of it.
I think it would be cool if i could load the helper.php for the module too. That way i could modify it the way i want. The parameters are already available, so that should be easy i guess?
I would like to make this code work FOR GROUPS and INSIDE A MODULE: <?php if(($event->permission != COMMUNITY_PRIVATE_EVENT) || (($event->permission == COMMUNITY_PRIVATE_EVENT) && ($isEventGuest || $isMine || $isAdmin || $isCommunityAdmin))) { ?>
That would be awesome!
Thanks you so much, Phil