Viewing 3 replies - 1 through 3 (of 3 total)
  • Shibaa,

    There is nothing wrong with TOC, it’s just in bbPress topics and replies all (i.e. not just those of TOC) shortcodes are disabled by default. This is a security feature, since permitting all shortcodes on bbPress forums is a major security risk. While by googling you can easily find code to enable turn off this feature, I strongly recommend against it. What I have done, is to utilise two plugins:
    Shortcoder by Aakash Chakravarthy
    DV Shortcode Whitelist by Egemenerd

    Use the first to create your own shortcode for a TOC shortcode, possibly with some parameters. Then use the second to allow this custom shortcode on bbPress forums. This way you can have a table-of-contents without compromising security.

    Disclaimer:
    While not otherwise involved in either plugin, I gave the idea of DV Shortcode Whitelist to Egemenerd. Neither developer has given me any money nor compensated me in any way. Au contraire I’ve donated to both projects.

    Thread Starter shibaa987

    (@shibaa987)

    Thanks Juha Mets?kallas for your response.

    Lets say I have created a custom shortcode for TOC.
    Do I need to use this shortcode in every bbpress topic so that the content list will show up in individual topics??

    I would say, that this boils down to your needs. I came quickly up with some scenarios. There are probably others.

    Allow TOC always for some users

    Put the shortcode into the appropriate location in your template. Consult your template’s documentation (it could be something like single.php). Use DV Shortcode Whitelist to enable your shortcode for one of the built-in user roles or create a new one and add your users to it.

    Allow TOC always for all users

    Same as above but select in the DV plugin all.

    Allow TOC sometimes for some users

    Instruct your special users, how to add your shortcode into a topic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘TOC+ does not work on bbPress topics’ is closed to new replies.