• Resolved dimal

    (@dimalifragis)


    Hello.

    I saw you have added support for Asgaros (correct?). Could you see if you can also support wpForo?

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • Add the following to your theme’s functions.php to have auto-affiliate linked wpforo posts:

    // add wpforo auto affiliate links to posts 
    if (function_exists('wpaal_add_affiliate_links')) {
        add_filter('wpforo_content_after', 'wpaal_add_affiliate_links', 2);
    }
    Thread Starter dimal

    (@dimalifragis)

    @nando4 Thanks but this method doesn’t work right with wpForo. It considers each reply of a page topic as a separate entity and so limits are not respected.

    Thread Starter dimal

    (@dimalifragis)

    I have found also a function posted in wpForo forums, that works but suffers from the same issue as your suggestion. Limits not respected, so it is a mess. It can link the same keyword several times in a wpForo topic page.

    function apply_the_content_on_wpforo_content( $content, $post ){
        return apply_filters( 'the_content', $content );
    }
    add_filter( 'wpforo_content', 'apply_the_content_on_wpforo_content', 10, 2); 
    Plugin Author Lucian Apostol

    (@thedark)

    Hello.

    I have added WpForo support. Regarding the limit, the filter function is called for each reply. The filter is applied when the content is displayed, and this happens each time a reply is rendered.

    I can make it to apply the same limits for the whole page, even if the filter function is called multiple times.

    Thread Starter dimal

    (@dimalifragis)

    Works fine without the need to additional code in functions. Thank you.

    I can make it to apply the same limits for the whole page, even if the filter function is called multiple times.

    That would be even better.

    Thread Starter dimal

    (@dimalifragis)

    @thedark

    When you apply limits for the whole page, that will also solve partly links to itself (link the topic to … itself). Partly because there are probably more than one pages to the topic.

    • This reply was modified 4 years, 4 months ago by dimal.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Suport for wpForo’ is closed to new replies.