Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 456 total)
  • Avatar of henrywright
    henrywright
    Participant

    @henrywright

    @grafcom I’m not sure why your code isn’t working. Firebug is telling you the selector is time-since and you’re doing this in your CSS file:

    span.time-since {
        display: none !important;
    }

    There must be something else going on. Do you have any more style sheets loading which may take precedence over your theme’s style.css? Are any inline styles being added?

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Regarding point 2, take a look at this answer on Stack Overflow: http://stackoverflow.com/a/24763715/1709033

    It tries to explain how the BuddyPress template hierarchy works… :)

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Hi @pietro_sferrino

    A couple of things to try:

    • Check your spam email folder
    • Check with your hosting company that their mail server is set up and working
    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Hi again @pietro_sferrino,

    1 – HOW TO ADD A FRONT-END LOGIN FORM. I do NOT want people see the wp-default form for login. I want to show it in a front-end page. Actually, is not a matter of what I want … that is ho it HAS to work

    Theme My Login is the plugin to handle that for you. Give it a try here: https://wordpress.org/plugins/theme-my-login/

    Point 2 is a little more complicated, yes it can certainly be done but it will require you to create a template. For information on the BuddyPress template hierarchy, see here: http://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Are you sure span.time-since is the right selector?

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    BuddyPress should automatically create registration and activation pages for you. You can check by going to your website. For example example.com/registration or example.com/activate.

    To create a WordPress navigation menu and add the activation and registration pages to it, see the WordPress Menu User Guide.

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Hi @pietro_sferrino,

    What’s a MenuVoice?

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Hi @peter-hamilton

    I quite like this design. It manages to fit lots of information on the page without looking cluttered. The colour scheme you’ve used is quite subtle making for easy reading. I’ve noticed you’ve opted for a fluid layout. One slight issue with that is when you’re viewing on devices such as mobiles. Perhaps a responsive layout would work better?

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Hi @titoesco

    You’ll need to provide some code examples because the from the info you’ve given it’ll be hard to recommend a solution.

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    @colin101 hehe! Glad you got it working in the end.

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Hi @digitalchild

    I just read your blog post. It’s interesting you couldn’t get define( 'BP_SEARCH_SLUG', 'searchresults' ); to work outside of wp-config.php. Have you tried creating a bp-custom.php file and popping the constant definition in there?

    Ref: http://codex.buddypress.org/plugindev/bp-custom-php/

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Try this instead:

    <?php echo bp_core_get_username( bp_get_activity_comment_user_id() ); ?>

    That should work. The problem was my use of bp_displayed_user_id().

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Try <?php echo bp_core_get_username( bp_displayed_user_id() ); ?>

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Akismet is great and is free if you’re using your website for non-commercial purposes.

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    @kookidooki glad you found a tutorial!

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Hi @dmike88

    Try logging in as super-admin and go to example.com/members/username/messages and see if you can read username‘s messages.

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Hi @kookidooki

    Do you mean merge databases or just merge files?

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Hi @kypto

    Are you using a contact form plugin? You’ll need one because contact form functionality doesn’t come in WordPress or BuddyPress core.

    To add a member’s name and email to the form data is easy (ish) but you’ll need a contact form in place first.

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    @ubernaut perhaps there’s a privacy concern if their site is a closed community? I’ve also heard how some people choose to disable RSS feeds because it is an easy way for sites to scrape their content.

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    BTW I’m not using a theme with Buddypress support

    That’s not a problem because since BP 1.7 you can create your own very easily. Check out this article on the BP Template Hierarchy for info on how templates work. If you have any questions or come across any problems then I suggest you open a separate topic for each different issue.

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Last time we checked, Canvas was not compatible with BuddyPress

    @mercime that explains these redirection problems :)

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Hi @jaybee08

    Building the link isn’t straightforward because there are a number of cases to consider. To take all of the conditions into account it is necessary to use a switch statement like this:

    $is_friend = bp_is_friend( $potential_friend_id );
    
    if ( empty( $is_friend ) )
        return false;
    
    switch ( $is_friend ) {
        case 'pending' :
            $link = wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/cancel/' . $potential_friend_id . '/', 'friends_withdraw_friendship' );
        break;
    
        case 'awaiting_response' :
            $link = bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/';
        break;
    
        case 'is_friend' :
            $link = wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/remove-friend/' . $potential_friend_id . '/', 'friends_remove_friend' );
        break;
    
        default:
            $link = wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/add-friend/' . $potential_friend_id . '/', 'friends_add_friend' );
        break;
    }
    
    echo $link;

    Note: You will need to provide the value of $potential_friend_id yourself. For example, if you know the ID of the potential friend is 8 then do this at the very top of that code:

    $potential_friend_id = 8;

    Alternatively, bp_displayed_user_id() will get the ID of the currently displayed member.

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Hi @bumbummen99

    I’m not aware of a plugin that will do this for you. To add a new subnav item manually, check out bp_core_new_subnav_item()

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    That’s a premium theme so unfortunately I don’t have access to the code. Try searching the theme’s code for wp_redirect or bp_core_redirect – the aim is to find out where the redirect to wp-admin.php is happening and then remove it. To my knowledge, this isn’t something that BuddyPress core does, so the issue is likely to be either plugin or theme related (most likely your theme).

    Avatar of henrywright
    henrywright
    Participant

    @henrywright

    Hi @packjazz

    I don’t think a filter is appropriate in this case. Editing the templates is the best approach in my opinion.

    bp_displayed_user_username() will display the displayed member’s username and bp_displayed_user_fullname() will output the displayed member’s display name.

Viewing 25 replies - 1 through 25 (of 456 total)