Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 6,376 through 6,400 (of 32,562 total)
  • Author
    Search Results
  • #249465
    Henry Wright
    Moderator

    In 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.

    #249456
    Henry Wright
    Moderator

    This is most likely to be a theme issue. Is there any way you can try with Twenty Fifteen?

    #249453
    RasmusGeil
    Participant

    As 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.

    #249433
    shanebp
    Moderator

    To 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.

    #249424
    Henry Wright
    Moderator

    You should try disabling all custom code you’ve introduced (theme, plugins, functions) to see which bit is causing the problem.

    #249406

    In reply to: PUBLIC MESSAGE

    Slava Abakumov
    Moderator

    That’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.js might be the reason.

    #249399

    In reply to: BP 2.4 Group Home Page

    valuser
    Participant

    Forgot 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.

    #249385
    Slava Abakumov
    Moderator

    Post 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' );
    #249383
    Slava Abakumov
    Moderator

    Just 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).

    #249372

    In reply to: Filter Profile Fields

    Mark
    Participant

    Hi @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!

    #249366
    john.horning
    Participant

    You’re right – the problem was my custom theme.
    Thanks!

    #249364
    shanebp
    Moderator

    My guess is that another plugin or some custom code or your theme is trying to apply a filter to
    bp_get_the_profile_field_id but the $field is 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.

    #249337
    colabsadmin
    Participant

    There’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.

    #249317
    shanebp
    Moderator

    Ask Kleo how to add BP templates in a Kleo child theme.

    #249315
    shanebp
    Moderator

    Create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\register.php

    And add your text.

    #249307
    acengiz
    Participant

    By 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/messages

    i 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>

    #249287
    Herman Aus
    Participant

    Ay, 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?

    #249284

    In reply to: page meta

    Henry Wright
    Moderator

    This 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/

    #249269
    Paul Wong-Gibbs
    Keymaster

    It 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.

    jorrit91
    Participant

    Hey 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 );
    #249235
    Kookidooki
    Participant

    Hi 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.

    #249213
    shanebp
    Moderator

    Create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\messages\compose.php

    And adjust the subject input field so that it looks for your $_GET variable.

    #249204
    kmw1130
    Participant

    It 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.

    #249201
    shanebp
    Moderator

    If 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.

    #249173
    kmw1130
    Participant

    I 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

Viewing 25 results - 6,376 through 6,400 (of 32,562 total)
Skip to toolbar