Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 6,101 through 6,125 (of 31,072 total)
  • Author
    Search Results
  • #238238
    bp-help
    Participant

    @caniwigirl
    I personally would choose to add it to bp-custom.php this is the best approach in case you decide to change themes down the road because if you place it in your themes functions.php or in a child theme of that themes functions.php then you will loose that functionality if you do change themes. The bp-custom.php acts more or less as a plugin independent from the theme you may use. Good luck!

    #238237
    caniwigirl
    Participant

    Thanks. So, to summarize for others wanting to do the same… The code to add to the functions.php file in the theme (or child theme) would be:

    function bp_guest_redirect( $name ) {
    
        if( ! is_user_logged_in() ) {
    
            if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_blogs_component() || bp_is_directory() || bp_is_user() || bp_is_members_component() ) 
                wp_redirect( get_option('siteurl') . '/wp-login.php/' );
    
        }
    
    }
    add_action( 'get_header', 'bp_guest_redirect', 1, 1 );
    #238230
    evilnut
    Participant

    @henrywright
    Thanks. I understand that.
    Right now I am just looking for a way to be able to search members by username.
    Then I will try to solve it by modifying bp-custom.php or function.php in theme-child.

    #238216
    danbp
    Participant

    Have you already tested with one of WP default theme, as some details around pages have been changed recently in WP and BP.

    After an update, and some BP pages won’t show up, you can also try be re-saving pretty permalinks. Or disable a BP component, save and reactivate and save again.

    Sorry no other idea to share at the moment. 😉

    #238211
    shanebp
    Moderator

    I ended up duplicating the site

    Good, now you have a dev site.
    Try turning off all plugins except BP and continue using the 2015 theme.
    If the problem persists, then it might be a BP issue.
    If not, turn the other plugins back on one at a time and hopefully find the plugin that is causing the issue.

    #238209
    maruyamah
    Participant

    @shanebp Thanks! I was trying to avoid doing that because part of the site is live and uses our theme. I ended up duplicating the site, changing the theme, and trying it again and it still didn’t work. The problem is exactly the same. The theme I used this time was 2015.

    #238195
    UrbanFix
    Participant

    @danbp
    I have attempted to use the ‘little plugin’ you mentioned but when I add the following two lines i get an error! COuld you please add them for me?

    $temp_post = get_post($post_id);
    $user_id = $temp_post->post_author;

    I have sucessfully changed the user id as you mentioned without any trouble.

    public function generate_activity_stream( $atts, $content = null, ) {
            //allow to use all those args awesome!
           $atts=shortcode_atts(array(
                'title'            => 'Latest Activity',//title of the section
                'pagination'       => 'true',//show or not
                'display_comments' => 'threaded',
                'include'          => false,     // pass an activity_id or string of IDs comma-separated
                'exclude'          => false,     // pass an activity_id or string of IDs comma-separated
                'in'               => false,     // comma-separated list or array of activity IDs among which to search
                'sort'             => 'DESC',    // sort DESC or ASC
                'page'             => 1,         // which page to load
                'per_page'         => 5,         //how many per page
                'max'              => false,     // max number to return
    
                // Scope - pre-built activity filters for a user (friends/groups/favorites/mentions)
                'scope'            => false,
    
                // Filtering
                'user_id'          => $user_id,    // user_id to filter on
                'object'           => false,    // object to filter on e.g. groups, profile, status, friends
                'action'           => false,    // action to filter on e.g. activity_update, new_forum_post, profile_updated
                'primary_id'       => false,    // object ID to filter on e.g. a group_id or forum_id or blog_id etc.
                'secondary_id'     => false,    // secondary object ID to filter on e.g. a post_id
    
                // Searching
                'search_terms'     => false,         // specify terms to search on
                'use_compat'       => bp_use_theme_compat_with_current_theme() 
            ), $atts );
           
            extract( $atts );
    	
          
            
            ob_start(); ?>

    Thanks,
    Urban-fix

    #238169
    shanebp
    Moderator

    I am using a custom theme, so it’s possible that is the problem,

    Switch to a WP theme like 2013.
    If the problem goes away, then it’s something in your theme.

    #238157
    leanneoleary
    Participant

    I am using Cinematix (http://themeforest.net/item/cinematix-buddypress-theme/4959387) and haven’t customised it in any way.

    I have found the default HINT for wordpress is the following:

    <?php _e(‘Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! ” ? $ % ^ & ).’); ?>

    I assume this is what is being used? If so I can just add this password hint but what file do I need to edit?

    Many thanks for your help.

    #238156
    Henry Wright
    Moderator

    Hi @leanneoleary

    Which theme are you using and have you customised the registration page in any way?

    #238138

    In reply to: Add Friend Button

    novanotion
    Participant

    I upgraded to BuddyPress 2.2.3. I changed to Twenty Fourteen theme and it still does the same thing. Even when I change the view from All Members to My Members all the buttons still say Add Friend

    #238137
    danbp
    Participant

    Don’t hack core files !

    It will be overwriten at next BP update.

    Use preferably a filter function. Give this a try (add it to bp-custom.php) :

    function members_dir_oldest_first( $bp_user_query ) {
        if ( 'newest' == $bp_user_query->query_vars['type'] )       
    		$bp_user_query->uid_clauses['order'] = "ASC";
    }
    add_action ( 'bp_pre_user_query', 'members_dir_oldest_first' );
    #238127

    In reply to: Add Friend Button

    @mercime
    Participant

    @novanotion First of all, please upgrade to the latest BP 2.2.3 version, a security release, if you haven’t yet.

    To your topic, change to the Twenty Fourteen or Fifteen theme, does the same issue show up or does it only show up when you’re using your current theme?

    #238100
    shanebp
    Moderator

    Members won’t appear in the members loop until they have a last_activity entry.
    Logging in will create that entry.
    Or you can give them one as soon as a member is registered via front or back end:

    function webmister_add_last_activity( $user_id ) {
    
        bp_update_user_last_activity( $user_id, bp_core_current_time() );
    
    }
    add_action ('user_register', 'webmister_add_last_activity', 20, 1);

    Put the function in your theme/functions.php or in bp-custom.php.

    #238098
    danbp
    Participant

    Thnak you.
    Have you a test site or a local install where you can make some test ?

    https://buddypress.org/support/topic/when-asking-for-support-2/

    I tried to change role and other fields in new members, but nothing happened.

    On a single regular install, all BuddyPress members have the default role you assigned to new users in WP settings > general. There is nothing to change at this level when they don’t show up on member’s directory.

    If you need some fake BuddyPress users and content, i suggest you to use BuddyPress Default Data, which is great to control if anything is working correctly.

    Deactivate your theme and all other plugins except BP and use Twenty Fifteen while testing.
    Activate also wp_debug in wp-config, and see if you get somme php errors.

    #238085
    danbp
    Participant

    First off, all active BP components should have a assigned page. (mandatory)
    This page must be blank, without any template model or parent page.

    As you use Twenty Eleven via a child theme, read here:
    https://codex.buddypress.org/themes/bp-theme-compatibility-and-the-wordpress-default-themes/twenty-eleven-theme/ How to get the sidebar is explained there.

    Where is WP installed ?
    Site url is vatpt1.thevillageblog.com/
    Blog seems to be in /villageatthepark/

    #238055
    danbp
    Participant

    Activate wp_debug in wp-config and do a test with Twenty Twelve, Thirteen or Fifteen theme.
    Deactivate all plugins except BP and bbPress.

    Then report given errors here (without server path details if possible – just begin of error message and file name ).

    Other issues with same theme: https://buddypress.org/support/search/onecommunity+theme/

    OMG, lost in the forest… wouh hou !

    danbp
    Participant

    @azedinos

    why do you use the trunk version ? Use the stable version, when you start with BuddyPress.

    Album doesn’t exist in BuddyPress.
    For the button issue, maybe you have a problem with your theme ?

    Please give more details after reading here.

    #238050
    danbp
    Participant

    – keep in mind that I’m not doing a full on translation, just this BuddyPress translation to change Friends to Connections.

    you put only those strings into your custom po. If the concerned string is on a template file, you can also hardcode it there, and use a template overload to get in from your child-theme in that case. So you haven’t to struggle with poEdit. In this case also, you have to take care of the details given by @shanebp.

    – does the language define statement in wp-config.php need to be set for this to work?

    This is no more used since WP 4.0. You can remove it.

    – buddypress-en_US.po and buddpress-en_US.mo files need to be in which folder?

    /wp-content/languages/plugins/ (the po file is not used by gettext, it’s only a human readable work file – you can store it elsewhere if you want. You just have to remind where in that case 😉 ).

    if you put it in /language/ (of course you can), you will see buddypress-en_US as a language setting. Which is of course not the site language.

    But in any case, keep a copy of your work in a safe place outside of WP.

    #238041
    danbp
    Participant

    @prometheus-fire,

    this is obvious, but unfortunately despite your details, difficult to help out, because you don’t tell which code is concerned… or what you used to do your change. 😉

    Generally, when it doesn’t translate, it’s because a typo error. A custom function, a theme using outdated strings and a lot of little details like missing dots, comas or percent sign.

    Here some tricky examples which can produce a missing translation.
    Original code looks like this:

    %d friends
    
    Activity feed for %s's friends.
    
    Friends <span class=\"%s\">%s</span>

    If %d is typed %s, or if the end point after friends is missing or you forgot to anti-slash or a double cote in the html, gettext mismatch the source and the translation and doesn’t execute it.

    First thing to do in your situation, is to compare what is in your po file to what is in the BP code. Assuming BP code is the master, and always right. Po can be wrong: old version, manually modified, corrupted. Po must in any case be saved as text format in utf8 without BOM. This is invisible, but a real source of issues, specially when anything seems the same and desperatly stays untranslated/unmodified.

    To do this, open the po in a text editor. Search for the string, check the file position given above the string, and read carefully and triple check, that the original BP code and the string in the po are strictly identic.

    If nothing found, ensure there is no custom function somwhere, or a theme playing around the buddybar or subnav.

    #238029

    In reply to: Bp register page

    shanebp
    Moderator

    The @ symbol is added in this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\member-header.php

    Create a template overload of that file and remove the symbol.

    #238013

    In reply to: Where are loops put?

    danbp
    Participant

    If you want to customize a loop, you simply copy the original file from legacy to your child-theme.

    If you need a custom function to work on it, you add it to bp-custom.php or to your child-theme functions.php

    Guess there is nothing special to call around index.php. Generally it’s entry.php or activity-loop.php which are concerned to customize activities.

    That’s exactly the question why i told you to read carefully the codex first. 😉

    #238012

    In reply to: Where are loops put?

    @mcuk
    Participant

    * bp-legacy>buddypress>activity>index.php (in child theme folder)

    #238007

    In reply to: Where are loops put?

    danbp
    Participant

    Loops are in templates.

    See bp-templates/bp-legacy/buddypress/

    And read carefully template hierarchy to understand how all this is working together.

    #237988

    In reply to: activity

    @mcuk
    Participant

    @arturamirov,

    You need to create a new php file called bp-custom.php . Then post the code @danbp posted above into it.

    See here:

    bp-custom.php

Viewing 25 results - 6,101 through 6,125 (of 31,072 total)
Skip to toolbar