Search Results for 'theme'
-
AuthorSearch Results
-
January 27, 2016 at 6:45 pm #249204
In reply to: Sort Members Alphabetically by Default
kmw1130
ParticipantIt seems like any changes I make to the members-loop.php file doesn’t make a difference, so it makes me wonder if I am updating the correct file. (wp-content\child-theme\buddypress\members\members-loop.php) is the members-loop file I’ve updated. As well as my child-theme function and child-theme\buddypress\members\index.php.
January 27, 2016 at 3:53 pm #249201In reply to: Best Practice For Cusomization
shanebp
ModeratorIf your customizations are theme-specific, then theme/functions.php and theme/buddypress are the places for your code.
You can put code in bp-custom.php, but it will run regardless of which theme is active.
January 26, 2016 at 10:04 pm #249173In reply to: Sort Members Alphabetically by Default
kmw1130
ParticipantI added this to members-loop:
<?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() */ ?> <?php do_action( 'bp_before_members_loop' ) ?> <?php if ( bp_ajax_querystring( 'members' ) ==""){ $queryString = "type=alphabetical&action=alphabetical&page=1";} else {$queryString = bp_ajax_querystring( 'members' );} ?> <?php if ( bp_has_members( $queryString) ) : ?> <strong>Index.php</strong> <select id="members-order-by"> <?php if ( bp_is_active( 'xprofile' ) ) : ?> <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> <?php endif; ?> <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> <option value="newest"><?php _e( 'Newest Registered', 'buddypress' Functions.php (child theme) /** Sort alphabetical name listings by lastname */ function alphabetize_by_last_name( $bp_user_query ) { if ( 'alphabetical' == $bp_user_query->query_vars['type'] ) $bp_user_query->uid_clauses['orderby'] = "ORDER BY substring_index(u.display_name, ' ', -1)"; } add_action ( 'bp_pre_user_query', 'alphabetize_by_last_name' );Is that correct?
Thanks
KimJanuary 26, 2016 at 9:19 pm #249172Slava Abakumov
ModeratorPlace this code in bp-custom.php or
functions.phpof your theme.if ( ! is_super_admin() ) { add_filter( 'show_admin_bar', '__return_false' ); }January 26, 2016 at 1:00 pm #249145peter-hamilton
ParticipantI had same problem during my first go on BuddPree/Wordpress, found problem to be my theme which left no space in members header to show default links for this.
Did what @danbp mentioned and got it fixed with css.
Good luck
January 26, 2016 at 8:59 am #249137danbp
ParticipantHi,
this will be a custom work on your site admin and concerns principaly wordPress.
Read here how to do add a custom column on user’s list.Here the function reference you’ll need to use.
Something like this you have to add to bp-custom.php or your child-theme functions.php
function andrea_columns( $output, $column_name, $user_id ) { /* do something*/ } add_action( 'manage_users_custom_column', 'andrea_columns', 10, 3 );January 26, 2016 at 8:45 am #249134danbp
ParticipantHi,
have you activated Private message option in BuddyPress settings ?
have you the same issue when you use one of the Twenty something theme ?January 26, 2016 at 8:37 am #249132danbp
ParticipantHi,
to modify the group directory sort order, you need a child-theme and a template overload of
groups/index.phpCopy this file from
bp-templates/bp-legacy/buddypress/groups/index.phpto child, to get the following path:
wp-content/themes/your-child-theme/buddypress/groups/index.phpIn this copy, modify the html of the selector you’ll find at line 82~86 so the alpha. sort is in first position instead of latest.
January 26, 2016 at 8:30 am #249130In reply to: Need some help with registration page
Slava Abakumov
ModeratorI don’t see my fix in the source code of the
/registerpage.
Does your theme have/members/or/buddypress/directory? If yes, please give me content of the file/members/register.phpor/buddypress/members/register.php.
If there is no such file, – give me the content of a file (and its name) where you put the code I gave you. You can use http://pastebin.com/ to post there code from file (and post here in a forum only links to those files from pastebin).January 26, 2016 at 8:16 am #249128In reply to: where is edit this?
danbp
ParticipantJanuary 26, 2016 at 6:34 am #249124In reply to: Buddypress and Restricting Page Access
Dennis Alund
Participant+1 for this thread
See this FAQ on WooThemes Memberships regarding the issues that you can run into if you purchase a membership plugin and try to restrict access to e.g. Groups or Members directory.
January 25, 2016 at 9:13 pm #249106In reply to: Need some help with registration page
Slava Abakumov
ModeratorThe problem is with your theme.
The quickest fix is this:function the7_bp_register_fix(){ echo '<div style="clear:both"></div>'; } add_action('bp_custom_signup_steps', 'the7_bp_register_fix', 999999);Place this code into either bp-custom.php or functions.php of your (child) theme.
Ideally – contact your theme author and ask him/her/them to test the theme with BP.
January 24, 2016 at 4:16 pm #249066In reply to: Profile Photo not showing in activity ?
shanebp
ModeratorIf you want somebody to examine your site, you need to provide a user / pw.
Your issue may be related to your theme.
To confirm, try switching momentarily to a WP theme like 2013 and see if the problem persists.January 23, 2016 at 4:55 pm #249045In reply to: BP pages trigger 404
mervinpearce
ParticipantCreated two WordPress sites with buddy press. I am using a Bossbuddy theme and it is just annoying that a register will trigger a 404. This problem is scattered all over the postings. Is there a single source for solving this??
It goes to http://webaddress/register
January 23, 2016 at 2:07 pm #249037In reply to: Hide or delete tab Profile ( Base)
Slava Abakumov
ModeratorWhat’s the content of your theme
/members/single/profile.phpfile?January 23, 2016 at 1:57 pm #249033In reply to: Hide or delete tab Profile ( Base)
Slava Abakumov
ModeratorWhat’s the content of your theme
/members/single/profile/profile-loop.phpfile?January 23, 2016 at 1:03 pm #249032In reply to: Hide or delete tab Profile ( Base)
Hellbounds
Participantand i try to add line to the child theme but nothing happened
January 23, 2016 at 1:01 pm #249031In reply to: Hide or delete tab Profile ( Base)
Hellbounds
Participantnot working ..
/* Theme Name: Sweetdate (shared on themelot.net) Description: More than a WordPress dating theme Author: SeventhQueen Author URI: http://themeforest.net/user/SeventhQueen Version: 2.9.2 Tags: dating, clean, responsive, creative, minimal, modern, landing page, social Text Domain: kleo_framework License: GNU General Public License License URI: license.txt */ @import url("assets/styles/app.css"); /* * DO NOT EDIT THIS FILE * * If you want to edit/add styles you need to enable the child theme and add your custom styles there. */ #buddypress .profile h4{display:none !important}January 23, 2016 at 12:59 pm #249030In reply to: Hide or delete tab Profile ( Base)
Slava Abakumov
Moderatorinto
style.cssof your theme. Also try this:
#buddypress .profile h4{display:none !important}January 23, 2016 at 12:34 pm #249028In reply to: Hide or delete tab Profile ( Base)
Hellbounds
Participant/wp-content/themes/[your-theme]/members/index.phpthis work to deleteid="members-all"but here/wp-content/themes/[your-theme]/members/single/profile/profile-loop.phpi delete h4 text and nothing happenedJanuary 23, 2016 at 12:07 pm #249027In reply to: Hide or delete tab Profile ( Base)
Slava Abakumov
ModeratorYou have
/membersdirectory.
/wp-content/themes/[your-theme]/members/single/profile/profile-loop.php
and
/wp-content/themes/[your-theme]/members/index.phpHave you tried CSS solution?
January 23, 2016 at 12:02 pm #249025In reply to: Hide or delete tab Profile ( Base)
Hellbounds
Participanti dont have budyppress in my theme only have in plugin.
January 22, 2016 at 10:46 pm #249018In reply to: Cannot create groups
Slava Abakumov
ModeratorThere can be some plugins that make this happen. Try deactivating all of them (except BuddyPress) one by one to see which might cause it.
You could have written some code inbp-custom.phpfile or in your theme’sfunctions.php– check those files as well.Also, groups can’t be added to forums – they are different components. Although groups can have own forums.
January 22, 2016 at 10:40 pm #249017In reply to: Hide or delete tab Profile ( Base)
Slava Abakumov
ModeratorOR
You can add these styles to your theme css file:
#members-all{display:none} #buddypress .profile h4{display:none}January 22, 2016 at 10:38 pm #249016In reply to: Hide or delete tab Profile ( Base)
Slava Abakumov
Moderator“Tab Base”
To delete
Baseand all other fields groups names in user profile:
1. find in your theme file/buddypress/members/single/profile/profile-loop.php
2. Delete in that file: this line:<h4><?php bp_the_profile_group_name(); ?></h4>If you don’t have such file in your theme, than copy this file:
/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php
into your theme here:
/wp-content/themes/[your-theme]/buddypress/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php
and remove the line that I wrote above (withh4).Members Directory – All Members
1. find in your theme file
/buddypress/members/index.php
2. Delete in that file the line with this text:id="members-all"If you don’t have such file in your theme – do the same thing as written above but for
index.phpfile.You should understand, that this will break ability to filter results on members directory page.
-
AuthorSearch Results