Search Results for 'theme'
-
AuthorSearch Results
-
February 4, 2016 at 1:44 pm #249465
In reply to: double information on profile
Henry Wright
ModeratorIn that case, try looking through your theme’s templates. Make sure you’re not outputting the data twice. Also check the filter and action hooks you have set up to be sure nothing is outputting twice.
February 4, 2016 at 11:59 am #249456In reply to: double information on profile
Henry Wright
ModeratorThis is most likely to be a theme issue. Is there any way you can try with Twenty Fifteen?
February 4, 2016 at 8:37 am #249453In reply to: double information on profile
RasmusGeil
ParticipantAs for the plugins, there should be nothing the interacts with this problem.
The theme tough is something that i can’t change, but talking to the suport behind the theme, they could insure that it had nothing to do with their theme and that i should contact your suport.February 3, 2016 at 4:58 pm #249433In reply to: double information on profile
shanebp
ModeratorTo confirm that is it or is not an issue with your theme, try switching momentarily to a WP theme like 2013.
If you have any plugins that affect profile data, try deactivating them.
February 3, 2016 at 11:39 am #249424In reply to: pages are being redirected to groups directory
Henry Wright
ModeratorYou should try disabling all custom code you’ve introduced (theme, plugins, functions) to see which bit is causing the problem.
February 2, 2016 at 3:25 pm #249406In reply to: PUBLIC MESSAGE
Slava Abakumov
ModeratorThat’s the problem with the theme template files (if it redefines BuddyPress templates) or css/js. To make sure that this is with you theme – try to activate via customizer any other theme (like 2015 or 2016), Post button should be on its place.
You can also investigate the source code of your page to make sure that it has a button
#aw-whats-new-submit.I think you have problems with js, check console of your browser. Something in
buddypress.jsmight be the reason.February 2, 2016 at 3:04 pm #249399In reply to: BP 2.4 Group Home Page
valuser
ParticipantForgot to mention that I created front.php files and placed them in /wp-content/themes/my-theme/buddypress/groups/single/ folder (copies at http://pastebin.com/DD3GrQp8)
These are reproduced faithfully on the Home tab of each group and the Activity tab appears to the right.
All good – just was wondering (if i haven’t already messed up) whether front end editing is a current option or is even contemplated.
February 2, 2016 at 11:20 am #249385In reply to: how to increase group list in group page?
Slava Abakumov
ModeratorPost this to bp-custom.php or functions.php of your theme.
function redblacked_more_groups_per_page($args) { $args['per_page'] = 40; return $args; } add_filter( 'bp_after_has_groups_parse_args', 'redblacked_more_groups_per_page' );February 2, 2016 at 11:08 am #249383In reply to: Private message link displays twice
Slava Abakumov
ModeratorJust go to StudioPress forum and ask there, as it’s clear from your post that it’s not a BuddyPress issue (as everything is ok in 2016 theme).
February 2, 2016 at 8:06 am #249372In reply to: Filter Profile Fields
Mark
ParticipantHi @klame,
I am a newbie at all this too. I discovered that the function you pulled off Buddypress.org doesn’t have to be modified to work. You have to simply copy and paste it in your functions.php file as/is without changing a thing. What matters and needs to be modified is the php to render the members loop on your page (e.g.,
<?php if ( bp_has_members( my_custom_ids( 'location', 'san francisco' ) ) ) : ?>). Adding href tags around it I don’t believe is the right idea. That code goes in your members loop where you want the members to be displayed matching that criteria. In my example I am showing only users in San Francisco. I’m pretty sure you can display the members loop anywhere you want but I haven’t tried that yet. I decided to create a page template and I simply copied the code out of my theme’s buddypress members-loop.php file and pasted it into the template file. You could probably even use the default WordPress members-loop.php file as your base, though if you have a theme you’re better off getting it out of there. I hope this helps. Good luck!February 1, 2016 at 11:28 pm #249366In reply to: Trying to get property of non-object
john.horning
ParticipantYou’re right – the problem was my custom theme.
Thanks!February 1, 2016 at 10:29 pm #249364In reply to: Trying to get property of non-object
shanebp
ModeratorMy guess is that another plugin or some custom code or your theme is trying to apply a filter to
bp_get_the_profile_field_idbut the$fieldis not available.Try deactivating any plugins that deal with profile fields.
To confirm that the issue is in your theme, try switching momentarily to a WP theme like 2013.
January 31, 2016 at 11:21 pm #249337In reply to: subject in private message
colabsadmin
ParticipantThere’s no special way to do this in Kleo. You override it like you would with any other theme. The issue is that you have a space between compose and .php in the file name.
January 30, 2016 at 10:15 pm #249317In reply to: subject in private message
shanebp
ModeratorAsk Kleo how to add BP templates in a Kleo child theme.
January 30, 2016 at 10:13 pm #249315In reply to: Adding Text to account details on registration site
shanebp
ModeratorCreate a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\members\register.phpAnd add your text.
January 30, 2016 at 3:58 pm #249307In reply to: subject in private message
acengiz
ParticipantBy the way, i create subfolders as below in my child theme directory and put compose.php in it:
/wp-content/themes/kleo-child/buddypress/members/single/messagesi tried to change label name “friend” to “friiiiend” and result was no change :/
i think i am missing something, what you think?<label for="send-to-input"><?php _e("Send To (Username or Friiiend's Name)", 'buddypress' ); ?></label>January 29, 2016 at 3:31 pm #249287In reply to: Re-ordering a custom groups loop
Herman Aus
ParticipantAy, thanks for that link. It certainly asnwers some of my questions!
Earlier I tried taking the selected value and storing it using jQuery.post but I couldn’t figure out how to get a working URL and even if I did, how would the groups list get refreshed?
I figured that BuddyPress has something that already does this. I looked into bp-themes/bp-default/_inc/ajax.php and saw how the bp_ajax_querystring filter is updated there with information from the browser cookies. And I assume that the directory template is reloaded using this function in the same file : bp_dtheme_object_template_loader()
It’s possible that the value from the select form is already stored but the reason why the template isn’t updating is because this line in ajax.php :
// Locate the object template locate_template( array( "$object/$object-loop.php" ), true );can’t locate my custom groups template?
Henry Wright
ModeratorThis will be added by your theme. Check out the Template Hierarchy article for info on how to customise what info is displayed.
Ref https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/
January 29, 2016 at 10:07 am #249269In reply to: Users receive lost password mail after registration
Paul Wong-Gibbs
KeymasterIt shouldn’t be doing this. I’d carry on by seeing if it’s related to any custom code in your theme or any other plugin or customisation you’ve made.
I’m 99% sure BuddyPress does not itself send the Lost Password email (or trigger any code that does that), so my suspicion is in another plugin. Do you have anything customising wp-login.php (the log-in screen)? That’s where the Lost Password email is usually sent from.
January 29, 2016 at 9:43 am #249264jorrit91
ParticipantHey Shanebp, superduperthanks for the code. Do I just put the code in my themes functions.php? And just this part?
function jorrit_filter_forum_topic_message_email( $message, $topic_id, $forum_id, $user_id ) { $message = wp_trim_words( $message, 15 ); // change 15 to however many words you want return $message; } add_filter( 'bbp_forum_subscription_mail_message', 'jorrit_filter_forum_topic_message_email', 10, 4 );January 28, 2016 at 10:53 am #249235Kookidooki
ParticipantHi Slava,
Thank you!
I have a different theme and layout than yours. No sidebars.
Need a small simple script that shows only admin bar when you’re logged in.
I’m not a coder but I need something like this:
if user is logged in => show admin bar.
January 27, 2016 at 11:54 pm #249213In reply to: subject in private message
shanebp
ModeratorCreate a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\members\single\messages\compose.phpAnd adjust the
subjectinput field so that it looks for your$_GETvariable.January 27, 2016 at 6:45 pm #249204In 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
Kim -
AuthorSearch Results