Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1,551 through 1,575 (of 3,925 total)
  • In reply to: Plugin Dependencies

    @r-a-y

    Keymaster

    Something like this definitely needs to be in WP core!

    @r-a-y

    Keymaster

    @tak5haka – If $profileTagClean returns an array, then you need to print out the variable as an array to debug further.

    What happens when you use the following instead of echo?
    `print_r($profileTagClean);`

    @r-a-y

    Keymaster

    @r-a-y

    Keymaster

    @gwu123 – code snippet has been revised; forgot to set priority so it runs earlier.

    @r-a-y

    Keymaster

    oEmbed is not a video uploading plugin. It relies heavily on 3rd-party sites like YouTube, Vimeo et al.

    SInce you’re using P2 to write a blog post, you should try enabling auto-embeds in WordPress:
    https://codex.wordpress.org/Settings_Media_SubPanel

    Make sure “Auto-embeds” is checked.

    Also read the codex page for more info:
    https://codex.wordpress.org/Embeds

    @r-a-y

    Keymaster

    WordPress will most likely build on top of 2010. They will not make a theme called 2011, unless the design is radically different.
    Much like Kubrick to 2010 was a totally different design.

    For example, P2 adds features on top of their theme all the time and I think a lot of people appreciate that.

    Maybe new features should be a theme option…

    In reply to: Disable Custom Header

    @r-a-y

    Keymaster

    Make sure your functions.php looks like this:

    `<?php
    /* Disable default themes header stuff */
    define( ‘BP_DTHEME_DISABLE_CUSTOM_HEADER’, true );
    ?>`

    @r-a-y

    Keymaster

    Looks like you’re using a plugin as there is no stock option for that in WordPress network mode.

    @r-a-y

    Keymaster

    Template Pack needs to be updated… I’m not sure who’s in charge of that plugin as of right now.

    Ping @djpaul!

    @r-a-y

    Keymaster

    The whole point of having a child theme is inheriting all the cool, new features of the parent theme; I think we shouldn’t be making comments after the fact BP 1.2.6 was released. The core team asked many times for testers to the 1.2 branch; some did test, but many did not.

    Like it’s been stated, secondary avatars can be removed by getting rid of the filter. I do agree that blog avatars shouldn’t be used since you can’t even declare a blog avatar yet. However, you can get rid of that quite easily by duplicating the secondary avatar function and removing the “blogs” case.

    The following code will work in your theme’s functions.php:

    `function ray_secondary_avatar_fix() {
    remove_filter( ‘bp_get_activity_action_pre_meta’, ‘bp_dtheme_activity_secondary_avatars’, 10, 2 );

    // add the following if you still want secondary avatars, but omitting the blog one
    function my_bp_dtheme_activity_secondary_avatars( $action, $activity ) {
    switch ( $activity->component ) {
    case ‘groups’ :
    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’, ‘my_bp_dtheme_activity_secondary_avatars’, 10, 2 );
    }
    add_action( ‘init’, ‘ray_secondary_avatar_fix’, 9 );`

    I do agree that there should be a better changelog for changes made to bp-default. Maybe in the codex?
    [ EDIT: changelog created here – https://codex.buddypress.org/extending-buddypress/bp-default-theme-changelog/ ]

    @r-a-y

    Keymaster

    It’s in BP 1.3 trunk I believe.

    @r-a-y

    Keymaster

    @intimez – Just checked Private Messages for Friends Only and the plugin still works fine on BP 1.2.6.

    BP 1.2.6 made some changes to the way buttons are rendered.

    If you modified the member header in your child theme, you’ll need to look at the changes made to /members/single/member-header.php and apply them.

    @r-a-y

    Keymaster

    Codex page has been updated to be less confusing.

    @r-a-y

    Keymaster

    It’s out now, so I expect no more replies to this thread! :)

    Okay, if you really want to say your prayers, here’s the blog post:

    BuddyPress 1.2.6

    @r-a-y

    Keymaster

    You would need to modify the profile loop template so only BP site admins can edit the profile field in question.

    Get acquainted with the profile loop:
    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-profile-data-loop-bp_has_profile/

    Which you can modify in your BuddyPress theme’s /members/single/profile/edit.php file.

    You can use `is_super_admin()` to check if the logged in user is the admin.

    In reply to: Freshness date

    @r-a-y

    Keymaster

    There’s a problem with curling quotations (`“`) not (“) because it will give that T_STRING error.

    In reply to: Freshness date

    @r-a-y

    Keymaster

    Make sure you’re not using quotations in the date() function.

    Try this:
    `date(‘D M j Y G:i:s’, strtotime(bp_get_the_topic_time()));`

    I replied to a similar thread a while ago; I’ll try to dig it up.

    In reply to: RSS with Feedburner

    @r-a-y

    Keymaster

    Instead of trying to change the URL of the activity feed, you should redirect the feed to the Feedburner URL.

    Read this excellent blog entry by Jeff Starr for hints:
    http://perishablepress.com/press/2008/03/25/redirect-wordpress-feeds-to-feedburner-via-htaccess-redux/

    In reply to: blog sturcture

    @r-a-y

    Keymaster

    Hi @tubruk,

    From what you typed, I can’t really confirm what it is you want to do.

    Sounds more like a theme issue, you might want to check modemlooper’s BP Columns theme for hints on how to structure the page into 3 columns:
    https://wordpress.org/extend/themes/bp-columns

    In reply to: Favicon

    @r-a-y

    Keymaster

    Can’t you just create and upload a new favicon in the root of your server?
    eg. example.com/favicon.ico

    @r-a-y

    Keymaster

    The main juice is the filter.

    What you’ll want to do is disable the current filter and write a conditional to activate the filter (depending on where you want it to be enabled).

    Let’s say you wanted to disable oEmbed from the home page, something like the following will work in your theme’s functions.php:

    `remove_filter( ‘bp_get_activity_content_body’, ‘ray_bp_oembed’, 9 );
    remove_filter( ‘bp_get_activity_content’, ‘ray_bp_oembed’, 9 );

    if( !is_front_page() ) {
    // re add the filters
    add_filter( ‘bp_get_activity_content_body’, ‘ray_bp_oembed’, 9 );
    add_filter( ‘bp_get_activity_content’, ‘ray_bp_oembed’, 9 );
    }`

    You might have to play around with the conditional to get it right, but hopefully this gives you an idea.

    *Word of warning: I’m restructuring the plugin, so these filters will need to change for v0.6.

    @r-a-y

    Keymaster

    This should preferably be posted in the oEmbed BP forum:
    https://buddypress.org/community/groups/oembed-for-buddypress/forum

    But anyway… yup it should be possible.

    Would have to write a custom activity fetch routine to do this. Might add this for oEmbed for BP 0.7 (that’s right, I’m talking about 0.7 before 0.6 is officially released!).

    Re: thumbnails – I’m working on support for that for v0.6. Not all providers will return thumbnails. YouTube will work though.

    @r-a-y

    Keymaster

    Okay, so I’ll probably create a plugin for this in the coming week or two. Please remind me if I don’t get to this!

    @dougjoseph – Your ideas have been discussed before.

    Read this blog post on BuddyDev.com to post on a user’s profile (mirroring the functionality of bp.org):

    Using activity as wire in Buddypress 1.2 themes

    @r-a-y

    Keymaster

    FYI, I posted a solution in the thread Roger linked to.

    @r-a-y

    Keymaster

    @rgauny + @rogercoathup:

    Like Rich said, @mentions- are basically a filter and a nav item.
    It should be possible to remove the filter and the nav item by doing the following:

    1) Removing the filter

    Add the following to your theme’s functions.php:

    `
    // removes @mention links in updates, forum posts, etc.
    remove_filter( ‘bp_activity_new_update_content’, ‘bp_activity_at_name_filter’ );
    remove_filter( ‘groups_activity_new_update_content’, ‘bp_activity_at_name_filter’ );
    remove_filter( ‘pre_comment_content’, ‘bp_activity_at_name_filter’ );
    remove_filter( ‘group_forum_topic_text_before_save’, ‘bp_activity_at_name_filter’ );
    remove_filter( ‘group_forum_post_text_before_save’, ‘bp_activity_at_name_filter’ );
    remove_filter( ‘bp_activity_comment_content’, ‘bp_activity_at_name_filter’ );

    // remove @mention email notifications
    remove_action( ‘bp_activity_posted_update’, ‘bp_activity_at_message_notification’, 10, 3 );
    remove_action( ‘bp_groups_posted_update’, ‘groups_at_message_notification’, 10, 4 );
    `

    2) Removing the subnav:

    Add the following to your theme’s functions.php:

    `function ray_remove_mention_nav() {
    global $bp;

    bp_core_remove_subnav_item( $bp->activity->slug, ‘mentions’ );
    }
    add_action( ‘init’, ‘ray_remove_mention_nav’ );`

    Then, copy over /bp-default/activity/index.php to your child theme and remove the hardcoded li#activity-mentions from /activity/index.php.

    Et voila! @mentions- are gone!

    Might turn this into a plugin if requested.

    —

    *Edit: Also need to remove the table row on the “Settings > Notifications” page. This can be done by removing and duplicating the existing bp_activity_screen_notification_settings() function (located in /buddypress/bp-activity.php) hooked to the “bp_notification_settings” action.

Viewing 25 replies - 1,551 through 1,575 (of 3,925 total)
Skip to toolbar