Skip to:

Loading Activities Template in Group Forums Page – ajax issues

  • Seems like the javascript isn’t being recognized – perhaps it’s the div containers the activities container is in?

    TLDR; I put a function that calls activities in group forum topics.php page. The activity stream displays but ajax for commenting doesn’t hide comments and doesn’t post comments to database.

    I can see why the comment post doesn’t connect to database – the wrong form post method is generated – <form id=”forum-topic-form” class=”standard-form” method=”post” action=”/groups/mystery/forum/topic/the-diner-featured-story-1/?stories=1″>

    Here’s the page results:

    Function I am calling. I am calling this function on groups->single->forum->topic.php
    Function is defined in functions.php in theme file.

    function bpchild_activity()
    echo "<h2>Recent Activity on php bp_site_name() </h2>"; ?>
    <div class="pagination">
    <div class="pag-count"></div>
    <div class="pagination-links"></div>
    <ul id="activity-stream" class="activity-list item-list">
    <li class="load-more">
    <a href="#more"></a>
    <div id="message" class="info">
    <?php endif;

    Sample code from groups->single->forum->topic.php

    <div class="post-content">
Viewing 1 replies (of 1 total)
  • Update – changed function to include this simple activity stream on the page.

    Ajax still isn’t recognized.

Viewing 1 replies (of 1 total)
  • The topic ‘Loading Activities Template in Group Forums Page – ajax issues’ is closed to new replies.
Skip to toolbar