• Hello! How do I configure the plugin for bbPress forums to work.
    If insert videos into forum posts via httpv or shortcodes, they don’t work – the videos don’t show up.

    • This topic was modified 1 year, 5 months ago by niseadel.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    I don’t really know BBPress, but the basic thing is one has to hook LYTE into BBPress using bbpress’s filters. I don’t know bbpress’ API, but the following code snippet _might_ do that;

    add_filter('bbp_get_topic_content', 'lyte_parse');
    add_filter('bbp_get_reply_content', 'lyte_parse');
    Thread Starter niseadel

    (@niseadel)

    <span class=”HwtZe” lang=”en”><span class=”jCAhz ChMk0b”><span class=”ryNqvb”>Thanks, it worked.</span></span> <span class=”jCAhz ChMk0b”><span class=”ryNqvb”>True, only in the “httpv” format of the link.</span></span> <span class=”jCAhz ChMk0b”><span class=”ryNqvb”>Shortcodes don’t work.</span></span></span>

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, shortcodes might work if you would add;

    add_filter('bbp_get_topic_content', 'lyte_prepare', 9, 1);
    add_filter('bbp_get_reply_content', 'lyte_prepare', 9, 1);

    I had the same issue with bbp custom post type, and the first code provided by @optimizingmatters resolved the issue. With that code snippet installed in functions.php file, the embedded videos from YouTube in forums are now lazyloaded. Thank you so much.

    • This reply was modified 1 year, 3 months ago by LELB Society.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not work with bbPress’ is closed to new replies.