• Resolved Chuckie

    (@ajtruckle)


    I am using the BBP Style Pack template for my forums. On the main page that lists the categories / forums it is not possible to have a “Create New Topic” button too?

    https://www.publictalksoftware.co.uk/support-forums/

    I notice that here on the bbPress site it does have a button on the front page and on the create topic page you can choose the forum to add your post you.

    I think this would be nice. So clicking the button brings up a new topic form with all the controls etc and a dropdown to choose a forum.

    At the moment the user must click on a forum before they can see the button. TYhat is fine, but the extra method would be nice and might make it clearer to the user how to create a topic.

    Thanks.

Viewing 10 replies - 16 through 25 (of 25 total)
  • Try adding this – needs first certain plugin installed and a menu.

    echo '<script>
    jQuery(document).ready(function($) {
    $(".open-forum-list").click(function() {
    var x0 = document.getElementsByClassName("forum-list2a")[0];
    x0.style.display = (x0.style.display === 'none') ? "block" : "none";})	
    })
    </script>';
    echo '<div class="forum-list2a forum-list-container forum-list extra-windows" style="display:none;">';
    echo do_shortcode('[do_widget id=nav_menu-X]');
    echo '</div>

    ;

    Thread Starter Chuckie

    (@ajtruckle)

    @tapiohuuhaa

    needs first certain plugin installed

    ?

    I mentioned that before: Widgets for shortcodes. It creates this kinds of shorcodes:

    “[do_widget id=nav_menu-X]”

    Those can be put in any pages, inside text widgets or they can be used in action or filter hooks by using do_shortcode function.

    Thread Starter Chuckie

    (@ajtruckle)

    Understood.

    Thread Starter Chuckie

    (@ajtruckle)

    @tapiohuuhaa Thanks for your patience.

    1/ I created a test menu and added a couple of forum items to the list with the #new_post.

    2/ I dragged the menu into a Navigation Menu widget and put it in my footer to test.

    3/ I installed the AMR plugin and dragged the width into that area. I could see the prompt telling me what the shortcode would be for using it.

    Now, you mentioned:

    Then you put into your own code to a suitable place
    echo do_shortcode(‘[do_widget id=nav_menu-X]’);

    I am not sure where the suitable place is. Once I get the mechanics right I can do a fuller test menu.

    Sorry for not grasping it all in one hit!

    the echo which relates with the menu is inside the container DIV as you can see it in my example code in https://www.ads-software.com/support/topic/creating-new-topics/#post-12180597

    The code is not exactly correct, because after the last <div> there should be

    ‘;

    but bbPress interpreted “‘” as termination of CODE tags. Using CODE tag is very unreliable with bbPress because bbPress converts CODE tags as “`”. Those can go into unwanted places. Frustrating trying to creat valid CODE block.

    Thread Starter Chuckie

    (@ajtruckle)

    Didn’t need any of this! There is createtopic short code that includes the drop down list of forums in the standard form!

    Easy as chips.

    Hi! I am so ashamed to admit I don’t know how to even create a Topic to ask for help! Can someone please assist me? I am new to the web design world – I can be reached at [email protected]. Basically my problem is, I changed themes and some of the content from the old theme came through to my new theme an is overwriting text on my page. When I click to edit it I cannot see it, to delete it. THANK YOU for helping this newbie ??

    Hi! I am so ashamed to admit I don’t know how to even create a Topic to ask for help! Can someone please assist me? I am new to the web design world – I can be reached at [email protected]. Basically my problem is, I changed themes and some of the content from the old theme came through to my new theme an is overwriting text on my page. When I click to edit it I cannot see it, to delete it. THANK YOU for helping this newbie thanks!

    Plugin Author Robin W

    (@robin-w)

    @tme5551212 how is this bbpress related ?

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Creating New Topics’ is closed to new replies.