Skip to:
Content
Pages
Categories
Search
Top
Bottom

Widget doesn’t show up on Home Profile


  • jbboro3
    Participant

    @jbboro3

    Hello bp community,

    As I’m relatively new to buddypress, I couldn’t figure out why my widgets are not showing up even after assigning the widget on a relevant page (Home profile page/ members page).

    Interestingly, it shows up whenever I assign the widgets to “404 NOT FOUND” page.. The settings are fine. There is already proper allocation of members pages and Activity streams (NOT in the “404 NOT FOUND” page). Even creating custom template page and assigning them didn’t work either.. Seems like members pages are acting like NONE existent on the actual page they are assigned with

    Am I doing something wrong with the configuration? Please share if someone is facing the same problem..

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Do widgets work on non-BuddyPress specific pages? Such as, a site footer or sidebar. I am trying to understand if they are broken everywhere or only broken on BuddyPress screens.

    If widgets generally do work, have you confirmed that a widget that does work, does NOT show up on the BuddyPress page? If so, what widget is that? (Just need one example).

    Please also let us know the names of all active plugins on your site, thanks.


    jbboro3
    Participant

    @jbboro3

    Hi, @djpaul thanks for the response.

    The condition is that: Yes, widgets shows up everywhere (including BP profiles and group pages) but they are perfectly working as an error or 404 not found page.. If I edit ‘404 page not found’ or error page (such as background color and as such), they all get reflected in the buddypress pages, and vice-versa.

    I even tried with dynamic widgets and display widgets plugin to see if that can identify the exact problem, but they are not helping either.. I tried with custom db query to identify the basic problem but they are not helping either..

    function custom_error_pages()
    {
    global $wp_query;

    if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 403)
    {
    $wp_query->is_404 = FALSE;
    $wp_query->is_page = TRUE;
    $wp_query->is_singular = TRUE;
    $wp_query->is_single = FALSE;
    $wp_query->is_home = FALSE;
    $wp_query->is_archive = FALSE;
    $wp_query->is_category = FALSE;
    add_filter(‘wp_title’,’custom_error_title’,65000,2);
    add_filter(‘body_class’,’custom_error_class’);
    status_header(403);
    get_template_part(‘403’);
    exit;
    }

    if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 401)
    {
    $wp_query->is_404 = FALSE;
    $wp_query->is_page = TRUE;
    $wp_query->is_singular = TRUE;
    $wp_query->is_single = FALSE;
    $wp_query->is_home = FALSE;
    $wp_query->is_archive = FALSE;
    $wp_query->is_category = FALSE;
    add_filter(‘wp_title’,’custom_error_title’,65000,2);
    add_filter(‘body_class’,’custom_error_class’);
    status_header(401);
    get_template_part(‘401’);
    exit;
    }
    }

    function custom_error_title($title=”,$sep=”)
    {
    if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 403)
    return “Forbidden “.$sep.” “.get_bloginfo(‘name’);

    if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 401)
    return “Unauthorized “.$sep.” “.get_bloginfo(‘name’);
    }

    function custom_error_class($classes)
    {
    if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 403)
    {
    $classes[]=”error403″;
    return $classes;
    }

    if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 401)
    {
    $classes[]=”error401”;
    return $classes;
    }
    }

    add_action(‘wp’,’custom_error_pages’);

    I can’t really trace back the exact problem.. I’m not so well versed with the buddypress thing, maybe those are making me harder to identify the problem..

    Seems Like I may have to seek for new installation but that’s very discouraging..

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar