Skip to:
Content
Pages
Categories
Search
Top
Bottom

Loading Activities Template in Group Forums Page – ajax issues

  • Profile photo of rcavezza
    rcavezza
    Member

    @rcavezza

    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: http://ebook451.com/groups/mystery/forum/topic/the-diner-featured-story-1/?stories=1

    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>
    </div>
    
    <ul id="activity-stream" class="activity-list item-list">
    
    <li class="load-more">
    <a href="#more"></a>
    </li>
    
    </ul>
    
    <div id="message" class="info">
    
    </div>
    
    <?php endif;
    }
    

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

    
    <div class="post-content">
    
    </div>
    
Viewing 1 replies (of 1 total)
  • Profile photo of rcavezza
    rcavezza
    Member

    @rcavezza

    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