ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Listing top 20 forum topics?

November 21, 2011 2:00am

Subscribe [3]
  • #1 / Nov 21, 2011 2:00am

    Riverboy

    2993 posts

    Hi, is there a way to list 20 newest forum topics with dropdown-menu from to choose the forum area to show those 20?

  • #2 / Nov 21, 2011 6:57am

    Mark Bowen

    12637 posts

    Hi Pete,

    I’m fairly certain you should be able to use the Displaying Recent Forum Topics code shown here in the documentation along with some code to make a select menu which goes to the correct place once chosen. Something like the Category Dropdown Menu.

    Untested but pretty sure something like this should work for you :

    <form name="topicsmenu" action="">
     <select name="selcat">
      <option value="">--Select Forum Topic--</option>
      {exp:forum:topic_titles orderby="post_date" sort="desc" limit="10"}
      <option value="{thread_path='forums/viewthread'}">{title}</option>
      {/exp:forum:topic_titles}
     </select>
    </form>

    Best wishes,

    Mark

     

  • #3 / Nov 21, 2011 7:07am

    Riverboy

    2993 posts

    Thanks Mark, i need to test and try. I already have the “top 10” (with recent_posts) but it shows the top from all board and therefore it would be more than good to let user choose what he/she wants to look at.

    Trying to put this to my Friends index-page so that users that are using that lovely Solspace add-on could enjoy even more of using it 😊

  • #4 / Nov 22, 2011 4:53am

    John Henry Donovan

    12339 posts

    Hi Pete,

    I am going to move this to the Community Help forum for you as you might get some more input and it will keep the thread open for you while you test Mark’s suggestion

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases