This topic has 9 replies, 2 voices, and was last updated 9 years by catholicauthor.
-
Author
Tagged: name, alphabetical
-
June 12, 2015 at 00:59 #62242catholicauthorParticipant
Hi, I’m trying to sort my members by first name; research in the bp forums turned up a modification to the childtheme/bp/membersloop.php , where this replaces line 16
<?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) . ‘&type=alphabetical’ ) ) : ?>
Groups are still not alphabetical, and when I visit the All Members page, they are strangely arranged in a single centered column.
Any recommendations?
June 12, 2015 at 00:59 #62243catholicauthorParticipantI’m sorry, I didn’t include a link;
single column:
http://www.saintnook.com/saintsnormal masonry, but non-alphabetical:
http://www.saintnook.com/groups/male/June 12, 2015 at 01:13 #62245sharmstrModeratorWhat the heck file path is that? LOL
Copy /kleo/buddypress/members/member-loop.php to /kleo-child/buddypress/members/member-loop.php, then make your edits. Try this instead though
COPY CODE<?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&per_page='.sq_option('bp_members_perpage', 24) . '&type=alphabetical' ) ) : ?>
Now, that only handles the loop with in the /members/ context. Groups aren’t in the /members context, they are in… wait for it….. the /groups context. 🙂 That’s why you dont see it working there. Do the same above, but with the /kleo/buddypress/groups/single/members.php file.
COPY CODE<?php if ( bp_group_has_members( 'exclude_admins_mods=0&per_page='.sq_option('bp_members_perpage', 12) . '&type=alphabetical' ) ) : ?>
btw – this is off the top of my head. I havent tested any of it 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
June 12, 2015 at 01:17 #62247catholicauthorParticipantlol 😀 I was contracting the path – you wrote the right one.
I tried both; the first for all members didn’t seem to change anything; the alphabetizing is still happening, but the theme is breaking.
In the groups, it breaks the page when activated and displays none of the members.
June 12, 2015 at 01:26 #62249sharmstrModeratorI just tested on my site and it works great. Are you copying the files from the kleo theme directory or from the buddypress plugin directory?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
June 12, 2015 at 01:29 #62251catholicauthorParticipantYou’re right; the groups now work perfectly.
Is the All Members working for you? Here’s where I’m still seeing the single column:
http://www.saintnook.com/saints/June 12, 2015 at 01:31 #62252sharmstrModeratorYeah, it working perfectly. Do you have caching enabled on your server?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
June 12, 2015 at 01:35 #62256catholicauthorParticipantLooks like it all works perfectly! Thanks Sharmstr!
June 12, 2015 at 01:41 #62259sharmstrModeratorNo problem. Yours is still one of my favorite designed sites using Kleo. Keep up the great work.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.