Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 51 through 75 (of 282 total)
  • @chrisclayton

    Participant

    @raoulbeltra either within a plugin file or your themes functions.php
    You can read more at https://codex.wordpress.org/Writing_a_Plugin

    From what i understand you are trying to do, then yes, just replace `echo do_shortcode(‘SexyButton’);` to whatever you want to show.

    @chrisclayton

    Participant

    ” they apparently have access to my dash board. Does anybody have an idea how to set things straight on this issue?”
    They sure do. They don’t see anything though – https://buddypress.org/wp-admin/index.php

    if it’s an issue, you could code it really easily…
    `function get_out_dude {
    if(is_admin & !current_user_can(‘editor’)){ //if we are inside wp-admin and user is not an editor
    wp_die(‘get out of my bedroom.’); //lets kill everything and tell the user to get out.
    }`
    * written quickly. don’t trust the code.

    @chrisclayton

    Participant

    It will do_(any)_action you tell it to do ;)

    `function cc_awesome_activity_meta_shortcodes() {
    echo do_shortcode(‘SexyButton’);
    }

    add_action(‘bp_activity_entry_meta’, ‘cc_awesome_activity_meta_shortcodes’);
    `

    Or, activity/entry.php

    @chrisclayton

    Participant

    @chrisclayton

    Participant

    Their is no core supported way to customise it at this stage but their are tickets discussing the best method for it.
    SEE: https://buddypress.trac.wordpress.org/ticket/2125

    Their are plugins though that help create a new login page
    eg. https://wordpress.org/extend/plugins/theme-my-login/

    @chrisclayton

    Participant

    “Do you still know of a way to change that redirect for wp-admin?”
    Yep, Let me forward you to a helpful codex page (they explain it better than i can) https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect

    @chrisclayton

    Participant

    Threaded comments (activity comments) is built into BuddyPress Default theme.

    Threaded comments (blog comments) is built into WordPress.
    quick google search: http://idratherbewriting.com/2009/05/31/wordpresss-threaded-comments/

    @chrisclayton

    Participant

    @ashokgolusu
    1) Is the activity component enabled on your site?
    Go to your wp-admin buddypress settings and click on components. is the ‘activity’ component checked? None of the activity-related functions will load unless it is turned on within the wp-admin.

    2) Has BuddyPress loaded by the time you call those function?
    https://codex.buddypress.org/plugin-development/checking-buddypress-is-active/

    @chrisclayton

    Participant

    “probably need to pass to it bp_displayed_user_id()”

    @hnla is correct, you will need to use bp_displayed_user_id()

    as in:
    `$user_id = bp_displayed_user_id();`

    @chrisclayton

    Participant

    You might be better off using wp_login_form()
    (https://codex.wordpress.org/Function_Reference/wp_login_form) which has a redirect parameter (see codex link above)

    Or, would you prefer to use wp-login.php?

    @chrisclayton

    Participant

    @chrisclayton

    Participant

    @eric-johnson – Their is no photo uploading functionality (except for an avatar) packaged within the BuddyPress plugin, but – while it doesn’t intergrate with the comments (i think we’ve established that BP Doesn’t provide a disqus-like product, but instead provides an extensible and unique social experience for your site, right?) I personally use and recommend the BP Albums plugin. https://wordpress.org/extend/plugins/bp-album/

    An alternative is @sbrajesh‘s BP-Gallery plugin – http://buddydev.com/plugins/bp-gallery/

    @chrisclayton

    Participant

    I believe his referring to their source code.
    https://svn.bettercodes.org/bettercodes/trunk/bettercodes/

    As seen here: http://bettercodes.org/labs

    The version currently advertised (1.0), is for a (very) old version of BuddyPress and while i haven’t used it lately, it doesn’t look like it’s been updated.

    @chrisclayton

    Participant

    @eric-johnson – BuddyPress isn’t a commenting system (Like Disqus) so to answer your first question, no. It creates something similar (but different) to Facebook.com (as in the site, not including their external products)

    However BuddyPress can/does hook into WordPress’s commenting system to bring somewhat of a social component to WordPress comments for registered members. Out of the box it…
    1. Allows registered users to upload an avatar that will replace the gravatar. (if an avatar is what you mean by photo in question 2, then the answer is yes – but only registered members can)
    2. links the name of the registered user to their profile page (so that other readers can learn more about them).
    3. adds comments (of registed users) to the activity stream (show off comments to friends and gets others to engage in conversation).

    Non-registered users will use the WordPress commenting system the same way it did without BP.

    But, having said that – If you know how to code, or your able to hire someone who can – BuddyPress was made to make nearly anything possible. (except make you breakfast)

    @chrisclayton

    Participant

    This might help,
    http://buddydev.com/buddypress/exclude-users-from-members-directory-on-a-buddypress-based-social-network/

    just change line 7 to ` if($object!=’blogs’) //hide for blogs directory only`

    @chrisclayton

    Participant

    `function cc_admin_bar_links() {
    global $wp_admin_bar;
    //BE GONE DEMON!
    $wp_admin_bar->remove_menu(‘bp-register’);

    //AbraCaDabra! Once i wave my wand, you will become an Elephant!
    $wp_admin_bar->add_menu( array(
    ‘id’ => ‘bp-login’,
    ‘title’ => __( ‘Log in and register’, ‘buddypress’ ),
    ‘href’ => wp_login_url()
    ) );
    }
    //Wave Wand.
    add_action( ‘wp_before_admin_bar_render’, ‘cc_admin_bar_links’ );`

    SORRY! Don’t mind my lame humor within comments. Just remove them :)

    If this doesn’t work, you will need to contact wpmudev as they are probably doing something really weird :/

    @chrisclayton

    Participant

    “there is a plugin out there that tells you what template is being parsed”
    I’m assuming your talking about ‘Reveal templates’ or is their another one?

    “but it does not seem to work on buddypress.”
    Yeah, BuddyPress does templating really weirdly. BuddyPress never talks to WordPress’ template loading functions which is why most of thoes types of plugins don’t work. The plugin should work after ‘theme compatibility’ comes, https://buddypress.org/2012/04/the-default-theme/ :)

    @chrisclayton

    Participant

    “do I understand correctly that there is no way to add simple filter which would return loop with specific IDs”

    @janismo is the ‘include’ parameter what your after?

    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    `include optional
    Pass an activity_id or string of comma separated ids to show only these entries.

    Default value: false`

    According to the codex, include=1,2,3 should only show activities with the Activity ID’s of 1, 2 and 3.

    @chrisclayton

    Participant

    “I am using buddypress but are there any plugins for bp or wordpress that will do what I want?”
    Nope. Not that i know of.

    “I would also like it if when users clicked on their name it brought them to a full profile page with a list of posts underneath..”
    Not sure what your asking here, it sounds like WordPress does this by default with their Author Archives?

    “Im looking for a plugin that will provide a list of my authors with a short profile..”
    If you require it in a plugin, you might need to hire someone to do it. https://buddypress.org/community/groups/bp-jobs-board/

    WordPress has a function called wp_list_authors()
    (see: https://codex.wordpress.org/Template_Tags/wp_list_authors)

    By default, it will link to the WordPress Author archive, i just used the ‘author_link’ filter to make the author id go through `bp_core_get_userlink();` which will make it link to the User’s BuddyPress profile.

    read: https://core.trac.wordpress.org/browser/tags/3.3.2/wp-includes/author-template.php#L273
    and: https://core.trac.wordpress.org/browser/tags/3.3.2/wp-includes/author-template.php#L224

    @chrisclayton

    Participant

    @bigjosh – their are some privacy plugins that will allow a user to choose who can see their details
    such as: https://wordpress.org/extend/plugins/buddypress-profile-privacy/

    If it’s possible to wait afew weeks, this feature has also been written for Core, to be included in the next major release (bp 1.6) Here is the developers announcement of the feature – http://bpdevel.wordpress.com/2012/03/16/profile-field-visibility-in-bp-1-6/

    @chrisclayton

    Participant

    i believe your referring to: members/single/activity/permalink.php

    ” or at least an easier way to figure out what template controls what in buddypress?”
    When i’m trying to figure out where templates are located, if i’ve forgotten – i look at the url path first, if it’s at members/*something* i’ll look inside the /members/single directory and the component (in this case /members/single/activity), if it doesn’t seem to exist there, i turn to the secondary component directory (in this case /activity/) But… that’s just me.

    @chrisclayton

    Participant

    @yadigit – The official way to remove it is via adding the tag ‘buddypress’ to your theme style.css comment header (the section where you tell wordpress your theme’s name).

    eg.
    `
    /**
    * Theme Name: My Themes
    * Tags: buddypress, awesome
    **/
    `

    Theirs also an internal config line that you can add to wp-config.php or plugins/bp-custom.php
    `define( ‘BP_SILENCE_THEME_NOTICE’, true );`

    @chrisclayton

    Participant

    @helpme2012 Are you referring to the blog comments or the Activity stream Comments?

    For Blog comments, just recreate the bp_dtheme_comment_form() function (located inside bp-defaults functions.php) inside your child theme and it should override the default.

    If your talking about the Stream Comments, then – i have no idea. Never had a problem with the comments post form appearing to logged out members :)

    @chrisclayton

    Participant

    “If they match BP 1.5.6 with WP 3.4, that means we’ll have to wait at least 3 months for it. And 6-9 months for 1.6”

    Not necessarily. 3.4 is in beta which means it’s just clean up time and could be released at any moment (whenever their confident all the bugs are squashed). Both BuddyPress 1.6 and BBpress 2.1 is still in active development – think, first come (first in beta), first serve (first to come out) :)

    Their’s afew changes and depreciated code in 3.4 so they can’t wait too long for a 3.4 compatibility release.

    Plus, it’s not like they HAVE to wait months after a release for another one… i’d rather have deprecated notices squashed and then have a major release two days later than have to put up with annoying “you have old code on your site” notices everywhere for two days :) lol

    @chrisclayton

    Participant

    The secondary avatars are registered within the functions.php
    https://buddypress.trac.wordpress.org/browser/trunk/bp-themes/bp-default/functions.php#L554

    To remove it for groups, add this to your child theme’s functions and it will override the parent themes version.

    function bp_dtheme_activity_secondary_avatars( $action, $activity ) {
    switch ( $activity->component ) {
    case 'friends' :
    // Only insert avatar if one exists
    if ( $secondary_avatar = bp_get_activity_secondary_avatar() ) {
    $reverse_content = strrev( $action );
    $position        = strpos( $reverse_content, 'a<' );
    $action          = substr_replace( $action, $secondary_avatar, -$position - 2, 0 );
    }
    break;
    }
    
    return $action;
    }
    add_filter( 'bp_get_activity_action_pre_meta', 'bp_dtheme_activity_secondary_avatars', 10, 2 );
Viewing 25 replies - 51 through 75 (of 282 total)
Skip to toolbar