By Andreas on Friday, 13 October 2017
Posted in General Issues
Likes 0
Views 575
Votes 0
Hello,

need a little assistance... for our site I like to change the display layout for Users to the same way Pages will be displayed in ES.
I like to have a view for Users like I get if I add the menu item "Pages". This view should also be addable as menu item and should be associated to single user profile(s).
So i should have a to modify the view of the existing menu item "User" to have Users displayed like in menu item "Pages".
Could you give me a hint which files are necessary to be modified?

Thanks
Andreas
Hi there,

If you wanted to change your layout, to be like pages, it would take a lot customization and a lot of files to be edited.

By the way, have you tried and check for Easysocial 2.1 views? We have done some customization, and all views looks alike from profile views to page, groups and events views are using same interface.

Maybe you can give it a try first or maybe visit our demo site -> http://easysocial.org/ and see how it goes.

Please advice.
·
Friday, 13 October 2017 16:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Have installed 2.1 RC2 - and did not find any point to display users by profile type and not only a list of Avatar pics and Username

Where and what have i to do to have this mentioned view(s)? I use "Dark" Template - do i need another one to have these views?

Had have a look on Demo Site and understand what you mean. The look alike is same on Users Profile, Page, Groups, etc. but the "All User" Overview is absolutely not similar to the Pages, Event,etc. "overview" sites... still with 2.1 - only Avatar Pick, Name and a little bit like Followers, etc. - all in line and simple list - not what we need.

If you could be so kind an give me some idea where to start i would try to have these files customized for our needs...
·
Friday, 13 October 2017 16:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, I don't really understand you here. This is the way users listing are rendered in EasySocial, http://easysocial.org/people

This is how it is displaying for page followers, http://easysocial.org/pages/22-james-test-page/51-followers

What are you trying to achieve? If you want to customize the layout of the user's listing, you can edit the file /components/com_easysocial/themes/wireframe/users/default/default.php
·
Friday, 13 October 2017 17:05
·
0 Likes
·
0 Votes
·
0 Comments
·
I just like to have the Users displayed with more information and style - not just a single line - more like the Pages are displayed in category overview.
The User profile should show the Coverimage and Avatar, a part of the Details and eventually some more informations - to get a little more information on the first view.

Background:
Our current site will be used to show Bars, Restaurants, etc. The normal user had to have these profiles with important information displayed on overview. The user profile of ES does not have these information's (Only Name/Pic - user must open the user profile to see what he does - not satisfying our needs) so we decided to make Pages mandatory for Bars, etc... to have these Information present in an nice view. But now we have to learn that it is a little bit to uncomfortable and much work for our users, respectively they don't understand how to issue a page nor the relaton between user profile and/or user page... so we must change to easier way and make the user Profile more visible/informative for the visiting users, now.
I know that ES is not exactly build for this ways of use but it is the most feasible tool we could find to match our needs
·
Friday, 13 October 2017 17:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

In order for you to added more data on your users views, you can apply some modifications on this files .../components/com_easysocial/themes/wireframe/helpers/listing/user.php

You can add necessary options(Fields) using codes below.

*Gender is used for example only, you can get those unique key by getting those on your profiles' custom fields as shown http://take.ms/BKFPA
[gist type="php"]
<?php echo $user->getFieldValue('GENDER');?>
[/gist]

Please give it a try and see how it goes.
·
Friday, 13 October 2017 22:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,
Thank you Abdul - this helps me to get the user view a bit better for my needs.
May you have a suggestion how to implement the User- Cover Image (may be a similar way like it is been displayed in Pages overview...) to this view, too? Checked the Page view but did not find the correct handler.

Thanks in advance
Andreas

PS: This .../helper/listing.. feature had been newly added with the RC2? Nice idea!
·
Monday, 16 October 2017 13:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You can apply codes below on path stated on above reply.
[gist type="php"]
//resize them accordingly
<img src="<?php echo $user->getCover();?>" width="150%">

[/gist]

Please give it a try and see how it goes.
·
Monday, 16 October 2017 16:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello and really great thanks for the help provided before!!! This satisfies my needs nearly 95%
One of last two wishes would be to give me an example how to implement an correct "if-else" clause into the user listing to check before adding the needed information for only two or three profile-types and not all user profile types as it is currently.

second question is where the view/layout of the page overview site will be defined (see attached screenshot)?


If you could do me this last favour I would be 100% satisfied

Best regards and thanks for your always really great work
Andreas
·
Tuesday, 17 October 2017 13:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You can apply codes below. You need to differentiate those id's as you can see here http://take.ms/Ue2M6

[gist type="php"]
<?php if ($user->profile_id == '1'|| $user->profile_id == '2' ) { ?>
<img src="<?php echo $user->getCover();?>" width="150%">
<?php } ?>
[/gist]

Please give it a try and see how it goes.
·
Tuesday, 17 October 2017 13:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks - work fine for me!

Last thing for me is to have the field JOOMLA_FULLNAME displayed instead of JOOMLA_USERNAME (which is the default for all other Profiles.

The line which i had to modify at .../components/com_easysocial/themes/wireframe/helpers/listing/user.php should be "<?php echo $this->html('html.user', $user); ?>" if i would do it by the above mentioned way " <?php echo $user->getFieldValue('GENDER');?> " i didn't get a backlink to the profile...

Any idea?
·
Wednesday, 18 October 2017 16:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Please understand that our support does not cover customization support. We cannot continue to assist you with these customization requests as we need to assist customers who has issues.

Anyway, I will help you out just this once.

[gist]
<?php if ($user->profile_id == '1'|| $user->profile_id == '2' ) { ?>
<?php echo $this->html('html.user', $user); ?>
<?php } else { ?>
<a href="<?php echo $user->getPermalink();?>"><?php echo $user->getFieldValue('GENDER');?></a>
<?php } ?>
[/gist]
·
Wednesday, 18 October 2017 17:03
·
0 Likes
·
0 Votes
·
0 Comments
·
THANK YOU very much !!!

I understand your point - therefore much more thanks to you - all things satisfied

Regards
Andreas
·
Wednesday, 18 October 2017 20:19
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Will lock this thread now.
·
Wednesday, 18 October 2017 20:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post