-
Author
-
June 8, 2015 at 15:17 #61508
Shakinaz
ParticipantHow can I display ” Organisation filed ” on the group member card like the ” quote ” in the demo example
June 8, 2015 at 17:28 #61533Laura
ModeratorHello, could you specify a bit more? Thanks 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 8, 2015 at 17:29 #61534sharmstr
Moderator– letting laura handle this one.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 8, 2015 at 18:35 #61541Shakinaz
ParticipantThank you for your prompt replay
Could you please check my attached screenshots
June 8, 2015 at 19:08 #61549Laura
ModeratorHello, could you share admin credentials and ftp? Thanks 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 8, 2015 at 19:18 #61556Laura
ModeratorBetter here as private 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 8, 2015 at 19:26 #61560Shakinaz
Participanthttp://connect.hu.edu.eg/wp-admin/
UN : ktnhu
Pass: admin019283#FTP
UN : uplo@connect.hu.edu.eg
Pass: NgZ-Uh3-e7u-tUnJune 8, 2015 at 19:37 #61563Shakinaz
ParticipantI would Appreciate If you take a look for this
After I make a login with any account the press on KTN in menu or any submenu for example “Agriculture KTNs” it log-out and when I am in any group and make login to go home page
Please advice if you can help
June 8, 2015 at 20:29 #61574Laura
ModeratorHello, do you have a cache plugin?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 8, 2015 at 20:48 #61577Shakinaz
ParticipantI just see now, you did it. thank you so much for your help but please can hide only ” organization ”
I just want to display the text that inserted in Organization.
Please if possable
June 8, 2015 at 20:51 #61580Laura
ModeratorHello, yes, your browser cache with CTLR+F5 and your website cache.
For the group, its done, here is what i did:
Created the function to show the field in functions.php of child theme:
COPY CODEadd_action( 'bp_directory_members_item', 'display_user_info' ); function display_user_info() { echo "Organization: "; bp_member_profile_data('field=Organization'); echo "</br>"; }Edited wp-content/themes/kleo/buddypress/groups/single/members.php
Found:
COPY CODE<div class="member-list-content"> <h5><?php bp_group_member_link(); ?></h5> <span class="activity"><?php bp_group_member_joined_since(); ?></span>Added
COPY CODE<?php do_action( 'bp_directory_members_item' ); ?>So it looks like
COPY CODE<div class="member-list-content"> <h5><?php bp_group_member_link(); ?></h5> <span class="activity"><?php bp_group_member_joined_since(); ?></span> <?php do_action( 'bp_directory_members_item' ); ?>Then copied the file to your child theme.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 8, 2015 at 20:52 #61581Laura
ModeratorOk, edited and deleted
echo “Organization: “;in the function.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 8, 2015 at 21:06 #61583Shakinaz
Participantmilion of thanks for your help which I really appreciate your support
Laura is the best
June 8, 2015 at 21:08 #61586Laura
ModeratorHello, thanks you so much 🙂 If you are happy please leave a nice comment and/or a 5 star rating on themeforest 🙂
Thanks!Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 8, 2015 at 21:51 #61593Shakinaz
ParticipantSure I already did.
Please the last question is How can I make then member counter and post counter in home page ” count real automatic”
when member registered and new topic created.
June 8, 2015 at 22:05 #61596Laura
ModeratorHello, the member counter will only update when an user logs in for the first time, if you want me to change it so it counts when they register, let me know.
This shortcode in homepage will add the topics counter
[kleo_bbpress_stats type="topics"]Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 8, 2015 at 22:12 #61597Shakinaz
ParticipantYes Please I want it to count the total of registered memebers if it will count after first logs is okay but I want to make sure it will give me the total registered member
June 8, 2015 at 22:49 #61606Laura
ModeratorHello, yes it will work when they login for the first time 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 9, 2015 at 01:03 #61628Shakinaz
ParticipantHello Laura, unfortunately It doesn’t work, I create a new user and I make a login but the counter is still “71” didn’t count this user.
Please advice
June 9, 2015 at 01:18 #61630Abracadabra
ParticipantHello Laura, I’m actually interested in doing this as well.
I already have custom code in my functions.php that adds extra information to my all members page profiles and I would like to have that visible on group members page as well.
I have this code:
COPY CODEadd_action('bp_directory_members_item', 'bphelp_dpioml'); function bphelp_dpioml(){ $bphelp_my_profile_field_1='Location'; $bphelp_my_profile_field_2='Company'; $bphelp_my_profile_field_3='Position'; if( is_user_logged_in() && bp_is_members_component() ) { ?> <div class="bph_xprofile_fields" style=" margin-left:0 !important; text-align:center !important;"> <br /> <?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_1 ); ?><br /> <?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_2 ); ?><br /> <?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_3 ); ?><br><br /> </div><?php }}What I noticed is that the information you had given was for bp directory members item as well, so would that work for group members page?
Im guessing there is a way just to copy the same code but replace the
COPY CODEadd_action('bp_directory_members_item', 'bphelp_dpioml'); function bphelp_dpioml(){with something else for it to work with group members?
June 9, 2015 at 14:44 #61673Laura
ModeratorHello Shakinaz, please add this to your functions.php
COPY CODEadd_action('bp_core_activated_user', 'kleo_add_member_activity'); function kleo_add_member_activity($user_id) { add_user_meta( $user_id, 'last_activity', date("Y-m-d H:i:s")); }This will count users once they register, now after you save it, go to Tools > Buddypress and check all options. This will recount your users and their activity etc…
Hello Abracadabra, yes the way i added it will show it also in members page, with your code, there is no need to change nothing, just place
COPY CODE<?php do_action( 'bp_directory_members_item' ); ?>In members.php of group files and will show your code, because you use the same action. Just add it like this
COPY CODE<?php do_action('bp_directory_members_item', 'bphelp_dpioml'); ?>Let me know if it works 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 9, 2015 at 16:12 #61676Abracadabra
ParticipantHi Laura, thanks but i am not sure what to put and where
I assume I only use the second code you provided the one with “bphelp_dpioml” in it?
When I go to /wp-content/plugins/buddypress/bp-groups there are 14 different php files, which one do I use?
If I entered that code in functions.php would that work?
June 9, 2015 at 17:03 #61682Laura
ModeratorHello, you need to follow the instructions i added for Shakinaz,
that should be added in members.php in kleo/buddypress/groups/single
Then copied to child theme.Find
COPY CODE<div class="member-list-content"> <h5><?php bp_group_member_link(); ?></h5> <span class="activity"><?php bp_group_member_joined_since(); ?></span>And add it just after that, like this
COPY CODE<div class="member-list-content"> <h5><?php bp_group_member_link(); ?></h5> <span class="activity"><?php bp_group_member_joined_since(); ?></span> <?php do_action('bp_directory_members_item', 'bphelp_dpioml'); ?>Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 9, 2015 at 18:09 #61691Abracadabra
Participanti added that line in kleo and in kleo-child in the specified folder, nothing has changed unfortunately.
June 9, 2015 at 18:44 #61697Laura
ModeratorHello, then please follow these steps https://archived.seventhqueen.com/forums/topic/display-extra-fields-group-member-card/#post-61580
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 9, 2015 at 18:50 #61701Abracadabra
ParticipantIts the same thread 🙂
Its all right I will leave it as is although it would be nice to have that extra information on group members.
When are you guys going to release 3.0, any chance you could tell me that?
Im planning to release my site this friday, but I cant start without 3.0 and log in redirect fix for facebook that I hope is in it. Do you think it will be out this week?Thanks
June 9, 2015 at 18:57 #61702Laura
ModeratorHello, i think the update will be these days, maybe today or tomorrow
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 7, 2015 at 01:48 #67031ianll
ParticipantIs it possible to extend this function to also include pulling a larger image for the member card.
July 7, 2015 at 21:11 #67233Laura
ModeratorHello, do you mean bigger user avatars only in group?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 7, 2015 at 22:10 #67247ianll
ParticipantYes, I’ve update the profile page to use the 150×150 profile avatar and made it square. On the directory page that lists my members I would like to use a 150×200 dimension of the avatar. Can you help?
Thanks!
July 8, 2015 at 13:38 #67304Laura
ModeratorSure, please check out this https://archived.seventhqueen.com/forums/topic/member-customization it should give you a great layout, and you can customize the size. Let me know if you need more help on this 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.