Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

  • Maruti Mohanty
    Participant

    @marutim

    I have faced the same issue and as above didnt want to edit the core files. I looked through and did it with js.. It worked for me
    I am putting it below for all who has been looking for a solution and if you have a better solution please update that too
    `
    jQuery(‘.avatar’).each(function(){
    // Replacing the -bpthumb with -bpfull for higher resolution images.
    var source = jQuery(this).attr(‘src’);
    var startIndex = source.lastIndexOf(‘-‘);
    var endIndex = source.lastIndexOf(‘.’);
    var removeValue = source.substring(startIndex, endIndex);
    if(‘-bpthumb’ == removeValue){
    var newSource = source.replace(removeValue, ‘-bpfull’);
    jQuery(this).attr(‘src’, newSource);
    }
    });
    `

    @mercime Thanks for the reply.

    But for the matter of fact I have used the above migration (Approach 1) and it didnt work, may be because it still have bugs in it.
    Do you have any alternative for this?

    Thanks again 🙂

    Thanks @chrisclayton for stopping by and replying

    Can any one help me on this? 🙁

    @chrisclayton I have used that but still i could still see the feeds with a url like sitename/activity-page/feed

    I am using the following in the functions.php


    add_action( 'do_feed', 'fb_disable_feed', 1 );
    add_action( 'do_feed_rdf', 'fb_disable_feed', 1 );
    add_action( 'do_feed_rss', 'fb_disable_feed', 1 );
    add_action( 'do_feed_rss2', 'fb_disable_feed', 1 );
    add_action( 'do_feed_atom', 'fb_disable_feed', 1 );
    add_action( 'bp_activity_sitewide_feed', 'fb_disable_feed', 1 );
    add_action( 'bp_activity_personal_feed', 'fb_disable_feed', 1 );
    add_action( 'bp_activity_friends_feed', 'fb_disable_feed', 1 );
    add_action( 'bp_activity_my_groups_feed', 'fb_disable_feed', 1 );
    add_action( 'bp_activity_mentions_feed', 'fb_disable_feed', 1 );
    add_action( 'bp_activity_favorites_feed', 'fb_disable_feed', 1 );
    add_action( 'groups_group_feed', 'fb_disable_feed', 1 );

    function fb_disable_feed() {

    wp_die( __( 'No feed available,please visit our homepage!' ) );

    }

    The above codes doesnt seem to work … FYI i am using BP 1.6.1 and WP 3.4.2

    @aces I have used http://wordpress.stackexchange.com/questions/33072/how-to-remove-feeds-from-wordpress-totally but this works only for the WP pages and not for the BP pages.
    then i used
    function bp_remove_feeds() {
    remove_action( ‘bp_actions’, ‘bp_activity_action_sitewide_feed’, 3 );
    remove_action( ‘bp_actions’, ‘bp_activity_action_personal_feed’, 3 );
    remove_action( ‘bp_actions’, ‘bp_activity_action_friends_feed’, 3 );
    remove_action( ‘bp_actions’, ‘bp_activity_action_my_groups_feed’, 3 );
    remove_action( ‘bp_actions’, ‘bp_activity_action_mentions_feed’, 3 );
    remove_action( ‘bp_actions’, ‘bp_activity_action_favorites_feed’, 3 );
    remove_action( ‘groups_action_group_feed’, ‘groups_action_group_feed’, 3 );
    }
    add_action(‘init’, ‘bp_remove_feeds’);

    But still I can see the feeds for the activity page 🙁

    Any help will be highy appreciated?

    Anyways @aces thanks for responding 🙂

    @djpaul The above solution doesnt work for BP 1.6.1.. Do you have any other solution?

    Thanks in Advance

    I am having the same problem … I am using Bp 1.6.1. Can someone pls help?
    How can i disable the Buddpress Rss feeds..
    Solution by @aces doesnt work.

    Any help will be highly appreciated.

    Thanks in Advance.

    @giannisff I would definitely consider that solution.

    @drill your solutions works, only for the respective pages but what about the pages that are created on the fly .. for example when I tried to browse site_url/membsers/x/profile I get to see it.

    Any idea about this issue?

    Anyways thanks both of you for stopping by and replying 🙂

    Just checked ,… Whenever i log into my sub sites … i get the following errors in my log file===

    WordPress database error Table ‘wp_multisite.wp_3_bp_user_blogs’ doesn’t exist for query SELECT COUNT(DISTINCT b.blog_id) FROM wp_3_bp_user_blogs b LEFT JOIN wp_blogs wb ON b.blog_id = wb.blog_id WHERE wb.public = 1 AND wb.deleted = 0 AND wb.spam = 0 AND wb.mature = 0 AND wb.archived = ‘0’ AND user_id = 0 made by require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, bp_init, do_action(‘bp_init’), call_user_func_array, bp_setup_nav, do_action(‘bp_setup_nav’), call_user_func_array, BP_Blogs_Component->setup_nav, bp_blogs_total_blogs_for_user, BP_Blogs_Blog::total_blog_count_for_user
    ===
    Any idea what is this about?

    @mercime Thats exactly what I have done … i have only installed BP and some plugins related to BP like BP toolbar, BP template pack and such and I am working on a theme made compatible with ur help few days back. Still when i login and try post something on the sub sites i get the error whereas when i log in, in the main site as the admin n post something it works … I am not able to post anything on the subsites after activating this plugin … Any idea?

    @mercime Thank you so much for the help. It worked :)

    @mercime Thanks for the reply.
    Please do help me in restructuring the 16 BP template files.

    precontent.php: http://pastebin.com/sQyZXTAg

    I didnt understand much of your question but as per I understood it.
    There are wordpress functions to know if the user is logged in or not and to know the current page.

    https://codex.wordpress.org/Function_Reference/is_user_logged_in

    https://codex.wordpress.org/Function_Reference/is_page

    Hope it helps :)

Viewing 14 replies - 1 through 14 (of 14 total)
Skip to toolbar