tkomuro2k (@tkomuro2k)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I found out that it’s only problem with AJAX, if I directly access the Add this topic to your favorites link, it works well with both Authors and Administrator. But if I click the link on the page which triggers the AJAX, Authors cannot add or remove topics to their favorite and just get red background on that span. Does anyone know what would cause this?

    If not… would somebody please let me know how this AJAX gets triggered? I can see it has something to do this topics.js but could not really understand how does it fires AJAX request with out click.function()..

    Thank you

    Thanks for the reply… temporarily I solved it by duplicating bbp_has_replies function in my function.php and changing [‘post_parent’] argument to ‘post_parent’ => bbp_get_topic_id()

    It does the job now.. but I am not happy with this because I am unnecessarily duplicating the good function.. I think my add_filter is not working as I intended.. but don’t know what’s wrong with it.. Would you guys please help me?

    in function.php , I have function looks like

    function my_bbp_has_replies($arg = ”)

    $args = array();
    $topic_id = bbp_get_topic_id();
    $args['post_parent'] = $topic_id;
    return $arg;

    } // function

    and after I call bbp_has_replies() , I had put add_filter(‘bbp_has_replies’, ‘my_bbp_has_replies’); in loop-single-topic.php ..

    I have looked into loop-replies.php and loop-single-reply.php .. as Lynq suggested (btw, thank you) … but there was no function or filter trying to filter the bbp_has_replies..

    Thank you guys..

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