Support

  1. Michael729
  2. Support
  3. Wednesday, June 05 2019, 01:52 AM
On the social network, currently under People there are 3 options:
browse
everyone
my friends

Is it possible to add another group?

If so, how would I go about doing that?
Attachments (1)
Accepted Answer
Michael729 Accepted Answer
yes, that worked. thank you
  1. more than a month ago
  2. Support
  3. # Permalink
admin Accepted Answer
Admin
Hi,
this is not possible with a simple way, anyway you can add in the left bar fields to search, you can set which search field to show from Plugin options from Joomla Administration->Extensions->Plugins->Search by "Easy Profile - Social Network" (http://docs.easy-profile.com/index.php/article/social-network-configuration)
  1. more than a month ago
  2. Support
  3. # 1
Michael729 Accepted Answer
no, that does not achieve what I'm looking for.

I have two major groups connected to this network. Group one includes everyone. Group two includes those who have undergone in-depth training. I would like for people to be able to look at the group with everyone or at the group that has the training.

I asked about adding to the list of Browse, Everyone, and My Friends.
But I'm wondering if there can instead be a second tab that is just like the People tab, but would be limited to those with training (Etna Alumni is what I would name it). Is that an option?

Reason: This network is to bring MORE people into the in-depth training by providing them exposure to conversations with those who have had training and more experience.
  1. more than a month ago
  2. Support
  3. # 2
Michael729 Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 3
admin Accepted Answer
Admin
Hi,
sorry for late reply, we are finding a solution for you.

Please follow these steps:
1) Add link to people page
- Access to Admin Panel (http://docs.easy-profile.com/index.php/article/social-network-configuration)
- Go to Theme Manager
- Choose "SocialNetwork Theme"
- Choose the file to override from left menu (Users->index.ctp)
- Click on button "Copy"*** and copy it in "Blue Theme"
- Come back to Theme Manager and choose "Blue Theme"
- You will see your override to customize.
- In this new file you can add something like this after line 48 to create the new link
<li><a data-url="<?php echo $this->request->base?>/users/ajax_browse/etnaalumni" href="#"><?php echo __('Etna Alumni')?></a></li>


2) Add the code to filter users by Joomla usergroup
- Open file at /plugins/jsn/socialnetwork/app/Controller/UsersController.php
- At line 111 add this code:
if($type=='etnaalumni') $appParams->set('where','group_id = 8');
Replace "8" with your Joomla group ID
- at line 80 add this code:
case 'etnaalumni':


NOTE: When you upgrade the plugin then you need to re-apply step 2) because file UsersController.php will be overwritten every update
  1. more than a month ago
  2. Support
  3. # 4
Michael729 Accepted Answer
this is great! thank you
the one thing that does NOT happen though is this:
when i click on Etna Alumni it show an initial page, but there is not a LOAD MORE button at the bottom to show the remainder of the people in that user group. i assume that it would be a simple line of code to do that... but i don't know the code or where it would be placed. please advise.
  1. more than a month ago
  2. Support
  3. # 5
admin Accepted Answer
Admin
Hi,
I have just tested my code in our internal testing site and "Load More" button seems to works.

In your site the problem seems that results seems limited to 22 users (Load more button appear when you have more than 24 users)

try to use code like
if($type=='etnaalumni') $appParams->set('where','group_id IN (8)');
Replace "8" with your Joomla group ID
  1. more than a month ago
  2. Support
  3. # 6
Michael729 Accepted Answer
No, that is not correct. I have 56 users in this group (Group ID is 12).
I did replace the "8" with "12" but it only shows 22 of them with no LOAD MORE.

{scratching head}
  1. more than a month ago
  2. Support
  3. # 7
admin Accepted Answer
Admin
Hi,
now seems to works, I have re-stored your settings in Joomla Administration->Extensions->Plugins->Easy Profile - Social Network and cleaned the plugin cache. Please try now.
  1. more than a month ago
  2. Support
  3. # 8
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.