• Resolved Catia Kitahara

    (@catiakitahara)


    Hi @gdragon!

    First, thanks for this plugin, it’s super useful! I have finished translating it into Brazilian Portuguese as a token of my gratitude.

    I need your help though: I would like to extend it in order to add visibility action for topics as well as forums.

    I’m a theme developer not a real programmer, but if you could give me an example of how to register a new action, I’m sure I can work it out and add the code to my theme’s functions file.

    I’d really appreciate it if you could help me with this one!

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    Hi,

    What is ‘visibility’ for topics, I am not aware of that (or I would implement it). Topics have status in bbPress (publish, closed, pending, spam), and Forum Manager already has an option for that.

    Anyway, the code for adding new actions is not that simple (not too complex), it requires 3 hooks and functions, plus the registration call. I can prepare the example plugin for this when I get some free time to do it.

    Milan

    Thread Starter Catia Kitahara

    (@catiakitahara)

    Hi @gdragon,

    Thanks for your answer.

    What is ‘visibility’ for topics, I am not aware of that (or I would implement it).

    I meant post visibility like private, password protected and public. I have a few educational forums installations where changing a topic status to private is a common task. Users (students) can create new topics, but they need to be reviewed by moderators (teachers) before going public. I have a code to make them pending by default, but we still need to set them private if the moderator asks for a few changes in the topic before going public. In those cases, moderators have to set those topics as private via wp-admin so only post author and moderators can view them. Moderators prefer to do all tasks from the frontend, your plugin is really helpful for them except in those cases.

    Anyway, the code for adding new actions is not that simple (not too complex), it requires 3 hooks and functions, plus the registration call. I can prepare the example plugin for this when I get some free time to do it.

    That would be amazing! I think I can handle it! Thanks a lot!

    Plugin Author Milan Petrovic

    (@gdragon)

    OK, so that visibility is implemented by your custom code, because visibility in bbPress is related to forums only, and topics only have post statuses that don’t include private or password protected.

    Milan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add visibility action for topics’ is closed to new replies.