Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Asgaros

    (@asgaros)

    Hello @tomatito

    Basically what you could try is to just open the WordPress page where you have added the [forum]-shortcode in the administration area. Before the [forum]-shortcode you can add whatever you want.

    Thread Starter tomatito

    (@tomatito)

    Hi, thanks. I have done so. It looks like this:
    http://www.awesomescreenshot.com/image/1904859/3659b725861c1289893ac7f7bb9af4c1

    As forum index/start page I´m okay whit that. But the text is also visible on all the other pages: http://www.awesomescreenshot.com/image/1904886/51f45982c85d016e0f25919e327dc236

    Is it possible to add the text only at the index/startpage?

    Plugin Author Asgaros

    (@asgaros)

    I have to add some hooks for the different forum-views so you can put individual content there. I will try to implement it in the next few days so it will be ready for the upcoming release. I will post an update here when it is done. 🙂

    Thread Starter tomatito

    (@tomatito)

    Awesome! Thanks 🙂

    Plugin Author Asgaros

    (@asgaros)

    Hello again, @tomatito

    With the last commit to the developer-version I added hooks for the different views:
    https://github.com/Asgaros/asgaros-forum/commit/8a1ba3814393d43bd9cb359137d99154224d11d4

    With this hooks you can add specific content to the different views of the forum:

    • overview
    • thread
    • forum
    • movetopic
    • addthread
    • addpost
    • editpost

    With this code you can add custom content to the top-area of your forums overview-view:

    function my_custom_content_top() {
    	echo '<p>My custom content!</p>';
    }
    add_action('asgarosforum_overview_custom_content_top', 'my_custom_content_top');

    Just add it to your themes functions.php file!

    The changes will be included in the upcoming release next week.

    Regards,
    Thomas

    • This reply was modified 8 years, 2 months ago by Asgaros.
    Thread Starter tomatito

    (@tomatito)

    Hi Thomas, I have updated your plugin and I´m able to add custom content to the top-area.

    Thank you very much 🙂

    • This reply was modified 8 years, 2 months ago by tomatito.
    Thread Starter tomatito

    (@tomatito)

    Hi Thomas, I don´t understand what this means:

    With this hooks you can add specific content to the different views of the forum:
    overview
    thread
    forum
    movetopic
    addthread
    addpost
    editpost

    Can I add specific content (for example text) to addpost? Or to movetopic? That sounds rather strange. Can you explain? Thanks in advance!

    Plugin Author Asgaros

    (@asgaros)

    Hello @tomatito

    Yes, exactly. For example you may want to notify users that they should ensure to check existing topics for an answer before creating new topics. So you could use the asgarosforum_addthread_custom_content_top-hook to show this information only at the top of the editor when you are creating a new topic.

    Thread Starter tomatito

    (@tomatito)

    Hi, thanks for your explanation I will check that.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Ad plain text to forum’ is closed to new replies.