By William Matson on Friday, 16 May 2014
Posted in General Issues
Replies 32
Likes 0
Views 585
Votes 0
The Group Members page displays the user's avatar, real name and when they joined. My site is a school alumni website. For each member of a group, I would like to be able to display the following:
Avatar
Full name
School attended
Year of graduation

Perhaps a couple of more fields.

In addition, when the name of the group member is clicked, I want it to display that user's Full Profile, not their activity screen (which is totally useless IMHO).

Your guidance is appreciated.
Hi William,

I am sorry for the delay of this reply.

FYI, the ftp still don't work for us. Most likely your server has blocked the IP address from certain country

Anyway, regarding your issue, I've corrected the issue. There is a missing colon in the code. The correct one is as below:


<a href="<?php echo FRoute:: profile( array('id' => $user->getAlias(), 'layout' => 'about') ); ?>"><?php echo $user->getName();?></a>


Now the group member listing no longer give error

Please verify again.
Hope this help and have a nice day!
Sam
·
Thursday, 22 May 2014 14:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

In that case you'll want to modify the theme file /media/com_easysocial/apps/group/members/themes/default/groups/default.list.php
·
Friday, 16 May 2014 13:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark --

Can you offer me more detailed assistance? Is there any 3rd party app that would enable me to more easily accomplish these modifications for a customized user list and detailed profile? I simply want to have 2 or 3 fields read from the user profile database and placed on the page. Perhaps some integration with SobiPro?

Thanks.
·
Friday, 16 May 2014 14:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello
+ 1 for the ability of customizing the user list field display
i'll also insert some code that you can provide us please for personalization

I also would suggest :

- inserting the advance search in user list because now advance search is only about users...

- having the ability (in backend for admin) to create and save multi user list regarding to criteria - almost what is done by advance search filter (see what CB offer for that case : http://www.joomlapolis.com/support/tutorials/111-picture-books/18267-community-builder-user-lists-quick-start including the ability to create a User List Menu)


For community websites that sound useful no ?
Loïc
·
Friday, 16 May 2014 15:38
·
0 Likes
·
0 Votes
·
0 Comments
·
I agree with your suggestion regarding the Community Builder advanced search customization. I built a parallel site using CB and was impressed with the user interface customization features that ES currently lacks. ES does have many excellent features out of the box and support is outstanding, the best I have ever experienced. This will be a GREAT product as it matures and includes additional features and 3rd party support. However, CB 2 is about to be released and it is more advanced.
·
Friday, 16 May 2014 16:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this guys. William, you can actually add your user's custom fields within the members listing and it's really simple actually. All you need to do is to identify the custom field unique key (Can be found when you click on the field properties).

Then, in the code, you could just add this,


<?php echo $user->getFieldValue('FIELD_KEY');?>


Replace the FIELD_KEY with your custom field's unique key.
·
Friday, 16 May 2014 16:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark --

My programming skills are limited. I reviewed the file, and it is unclear to me in what location to insert the database call lines. Please see the attached annotated image. It shows
(1) where I want to insert the information
(2) I want to remove the "Joined ..." line
(3) I want to link Member's name to that person's full profile

Your help is greatly appreciated.

Also, do you offer custom design services or recommend developers who can offer those services?
·
Saturday, 17 May 2014 02:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

To remove the "joined" message, you need to edit that file and remove the codes below,


<?php if( $group->isInvited( $user->id ) ){ ?>
<?php echo JText::sprintf( 'APP_GROUP_MEMBERS_INVITED_BY' , $this->html( 'html.user' , $group->getInvitor( $user->id )->id , true ) , $group->getJoinedDate( $user->id )->toLapsed() ); ?>
<?php } ?>

<?php if( $group->isMember( $user->id ) && !$group->isInvited( $user->id ) ){ ?>
<?php echo JText::sprintf( 'APP_GROUP_MEMBERS_JOINED' , $group->getJoinedDate( $user->id )->toLapsed() ); ?>
<?php } ?>

<?php if( $group->isPendingMember( $user->id ) ){ ?>
<?php echo JText::sprintf( 'APP_GROUP_MEMBERS_REQUESTED' , $group->getJoinedDate( $user->id )->toLapsed() ); ?>
<?php } ?>


As for those custom fields values, how are they currently setup? If they are setup as plain text field, you could just set the custom field key when editing the field at the back end and output the value using the codes below,


<?php echo $user->getFieldValue('TEXTBOX-3');?>


To define or to find out what your custom field key is for the particular field, see my screen shot here, http://screencast.com/t/HagXi2ah1xy
·
Saturday, 17 May 2014 17:06
·
0 Likes
·
0 Votes
·
0 Comments
·
I am still confused as to where in the file I need to insert the getFieldValue codes. Can you please provide me with the line number at which I should begin to insert the code.

Also, how do I directly link Member's name to that person's full profile (currently links to the activity page). Can you provide the code and line number in which the code should be placed.

Thanks.

PS -- it's 2:30 AM here in San Francisco. Will deal with this later today. ;-)
·
Saturday, 17 May 2014 17:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

I have already provide you the file that you should be placing the codes in my first reply. This is the file that you should be editing

/media/com_easysocial/apps/group/members/themes/default/groups/default.list.php

If you want to change the user's link, you need to remove the codes below and replace it with,


<?php echo $this->html( 'html.user' , $user->id , true ); ?>


Replace it with,


<a href="<?php echo FRoute::profile(array('id' => $user->getAlias(), 'layout' => 'about'));?>"><?php echo $user->getName();?></a>
·
Saturday, 17 May 2014 17:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark --

We are not communicating well. Unfortunately, it is due to my including a number of questions within a single discussion thread.

Let me restate my question that has not been completely answered.

I want to display the fields for the following information that I included in the user's registration:
1. Undergraduate college attended
2. Undergraduate degree
3. Graduation year
4. The City in which they live
5. The state in which they live
6. The country in which they live

I understand that the example field call is
<?php echo $user->getFieldValue('TEXTBOX-3');?>
where TEXTBOX-3 is replaced by the actual fieldname for each of the 6 fields that I list above.

I also understand that the file I need to modify is
/media/com_easysocial/apps/group/members/themes/default/groups/default.list.php

And now my confusion ...

I am confused as to where in the existing "default.list.php" file that I should insert the six "getFieldValue" strings so that they appear in the location that I have shown on my sample image. What is the line number in the existing file where I should begin to insert the six additional strings?

Thanks.
·
Sunday, 18 May 2014 03:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

You would probably want to place these codes after the <h5></h5> tag in that file . You should have some html background before doing this because placing the codes incorrectly might cause the layout to mess up.

For instance, if you want each of the items to appear on a row of it's own, you would want to wrap your items with a block element like <div></div>
·
Sunday, 18 May 2014 15:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you. I was able to display the desired information as you proscribed. I do have another issue regarding the display that I describe in a new thread. Please see http://stackideas.com/forums/address-unique-key-displays-longitude-and-latitude
·
Monday, 19 May 2014 14:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Another issue:

Per instructions above, I replaced
<?php echo $this->html( 'html.user' , $user->id , true ); ?>

with
<a href="/<?php echo FRoute:rofile(array('id' => $user->getAlias(), 'layout' => 'about'));?>"><?php echo $user->getName();?></a>

However, I receive the following error message when I click on the member's name:
Parse error: syntax error, unexpected ':', expecting ',' or ';' in /home/hiacom/public_html/brainfutures/media/com_easysocial/apps/group/members/themes/default/groups/default.list.php on line 67

Please advise.
Thanks.
·
Monday, 19 May 2014 14:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

It does seem like the code that you are using there has some syntax errors. Can you please upload your file here?
·
Monday, 19 May 2014 23:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark --

I'm confused. I simply copy/pasted the code you provided to me

after removing -- <?php echo $this->html( 'html.user' , $user->id , true ); ?>

Replaced with
<a href="/<?php echo FRoute:rofile(array('id' => $user->getAlias(), 'layout' => 'about'));?>"><?php echo $user->getName();?></a>

There is no newly modified file to send to you since I had to revert to the previous file that was modified with the added database call fields. But just in case, I am sending you that file (renamed for this communication). The lines I added appear after the </h5> tag. Please see attached.
·
Tuesday, 20 May 2014 13:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

Hm, the code does seem to be correct and I am not really sure why it's throwing errors for you. I need to test this directly on your site
·
Tuesday, 20 May 2014 23:48
·
0 Likes
·
0 Votes
·
0 Comments
·
OK. Please let me know when you intend to do this. I will remain off the site when you do this. Site details are provided.
·
Wednesday, 21 May 2014 01:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

May I have the FTP access as well?
·
Wednesday, 21 May 2014 03:17
·
0 Likes
·
0 Votes
·
0 Comments
·
OK. Sorry about not including it. See Site details.
·
Wednesday, 21 May 2014 03:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

I don't seem to hit any errors when I click on the person's name in the members listings. Am I missing anything here?
·
Wednesday, 21 May 2014 12:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark --

I just tried it again

I removed the line:
<?php echo $this->html( 'html.user' , $user->id , true ); ?> */

I added the line:
<a href="/<?php echo FRoute:rofile(array('id' => $user->getAlias(), 'layout' => 'about'));?>"><?php echo $user->getName();?></a>

Returning to the home page, I clicked:
Join Our Community (ES) >> Members >> BrainTrustees

I receive the following error:
Parse error: syntax error, unexpected ':', expecting ',' or ';' in /home/hiacom/public_html/brainfutures/media/com_easysocial/apps/group/members/themes/default/groups/default.list.php on line 68

I'm using the Chrome browser, if that makes any difference.
·
Wednesday, 21 May 2014 14:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Can you please re-apply the hacks? I don't see any errors now
·
Thursday, 22 May 2014 00:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark --

I just tried it again. The exact same problem. What did you do to make it work? Can you send me a copy of the file that you used?

Thanks
·
Thursday, 22 May 2014 00:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

I haven't been able to reproduce the errors on your site and I don't really have any idea how to reproduce this. I thought you have removed your hacks so I did not hit those errors. Can you please advise?
·
Thursday, 22 May 2014 03:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark ---

To reproduce the error:

1. Open file:
/media/com_easysocial/apps/group/members/themes/default/groups/default.list.php

2. On line 68, per your instructions, delete (or comment out)
<?php echo $this->html( 'html.user' , $user->id , true ); ?>

3. On line 68 (or 69), add the line you provided to me:
<a href="/<?php echo FRoute:rofile(array('id' => $user->getAlias(), 'layout' => 'about'));?>"><?php echo $user->getName();?></a>

4. After saving the file, login to the frontend with credentials I provided to you

5. Returning to (or refreshing) the home page, click:
Join Our Community (ES) >> Members >> BrainTrustees

You will then receive the following error:
Parse error: syntax error, unexpected ':', expecting ',' or ';' in /home/hiacom/public_html/brainfutures/media/com_easysocial/apps/group/members/themes/default/groups/default.list.php on line 68
·
Thursday, 22 May 2014 03:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

The FTP doesn't seem to work any longer http://screencast.com/t/13QK2k5uncCd
·
Thursday, 22 May 2014 14:07
·
0 Likes
·
0 Votes
·
0 Comments
·
I just tested it with FileZilla. It's working fine. See Site Details for the login info. Please try again.

FYI, I also installed the extPlorer component in the website administrator. You can also use that to ftp files.
·
Thursday, 22 May 2014 14:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Excellent! Works great. Thank you.
·
Thursday, 22 May 2014 15:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Not certain how It happened, but I may have accidentally deleted your posting which provided the corrected code. For the record of this thread, the corrected code is:

<a href="<?php echo FRoute::profile( array('id' => $user->getAlias(), 'layout' => 'about') ); ?>"><?php echo $user->getName();?></a>

Works fine.
·
Thursday, 22 May 2014 15:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Weird. The happy face replaced the colon ':' and the 'p' that appears after 'FRoute:' and before 'rofile'
·
Thursday, 22 May 2014 15:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi William,

Ah, the colon and P got replaced by bbcode smiley
Sam
·
Thursday, 22 May 2014 16:46
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post