Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I insert message tab content from one of profile page to other page


  • ega3wy4aha
    Participant

    @ega3wy4aha

    Hello.
    I thought I could represent the message tab on any page by inserting the code from messages.php as a PHP snippet on other pages. However, nothing is being displayed on the page, and it seems to be returning 0. I want to display the content of the message tab content on pages other than the logined user’s profile page. Are there any limitations, such as it only appearing on pages with ‘slug=members’? I would appreciate some advice on how to display the content of the message content to other page.

    messages.php
    >>>
    <nav class=”<?php bp_nouveau_single_item_subnav_classes(); ?>” id=”subnav” role=”navigation” aria-label=”<?php esc_attr_e( ‘Messages menu’, ‘buddypress’ ); ?>”>
    <ul class=”subnav”>
    <?php bp_get_template_part( ‘members/single/parts/item-subnav’ ); ?>

    </nav><!– .bp-navs –>
    <?php
    if ( ! in_array( bp_current_action(), array( ‘inbox’, ‘sentbox’, ‘starred’, ‘view’, ‘compose’, ‘notices’ ), true ) ) :
    bp_get_template_part( ‘members/single/plugins’ );
    else :
    bp_nouveau_messages_member_interface();
    endif;
    ?>

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

  • jamesholafer1002
    Participant

    @jamesholafer1002

    It seems like the issue might be related to the context in which you’re trying to display the messages.php content. Check if the required BuddyPress functions are available on the pages where you’re trying to include the snippet. Additionally, ensure that the necessary scripts and styles are enqueued for those pages. Double-checking these aspects might help resolve the display issue


    jamesholafer1002
    Participant

    @jamesholafer1002

    *If you find video editing to be part of your troubleshooting process, you should download capcut mod apk , a user-friendly editing tool, to enhance your instructional content or provide visual explanations


    philljones22
    Participant

    @philljones22

    “Dude Theft Wars” mod APK, an anarchic playground where mayhem meets creativity, offering unlimited money for those seeking to unlock boundless opportunities in their pixelated quest for chaos and hilarity.

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