Results 1 to 18 of 18

Thread: To display threads from more than one forum in the news section

  1. #1
    Join Date
    Feb 2005
    Posts
    17

    Default To display threads from more than one forum in the news section

    I would like to call in the news section the first thread of 3 different forums.

    Therefore I included in the News Forum ID the forums ids separated by comma and I increased the News Posts Maximum to 3.
    I get the first 3 threads of the first forum... what am I doing wrong?

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: To display threads from more than one forum in the news section

    It's going to pull the threads according to the time they were posted.

  3. #3
    Join Date
    Feb 2005
    Posts
    17

    Default Re: To display threads from more than one forum in the news section

    Thank you Brian, your code is the best solution I could find to include my mixture of flash, HTML and... music. I'm very grateful to you for that.

    It would be very useful to my site if I could change :

    News Forum ID
    To display threads from more than one forum, enter a list of forumids seperated by commas. Example setting: 1,4,9

    To display threads from all the forum with the exclusion of...
    Enter a list of forumids seperated by commas that you want to exclude.

    Is this possible?

  4. #4
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: To display threads from more than one forum in the news section

    Look in your news.php file for:
    PHP Code:
    forumid IN 
    Replace with:
    PHP Code:
    forumid NOT IN 

  5. #5
    Join Date
    Feb 2005
    Posts
    17

    Default Re: To display threads from more than one forum in the news section

    To easy

    Thank you

    Luca

  6. #6
    Join Date
    Feb 2005
    Posts
    17

    Default Re: To display threads from more than one forum in the news section

    Strange enough the page react with or with out the modification in the original manner.

  7. #7
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: To display threads from more than one forum in the news section

    There's no way it would...

  8. #8
    Join Date
    Feb 2005
    Posts
    17

    Default Re: To display threads from more than one forum in the news section

    I asked for the news instead I ment the Latest Threads Forums sorry about that...
    Can I do the same for this?

  9. #9
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: To display threads from more than one forum in the news section

    That would explain it then.

    If you look in your latesttopics.php file for this code:
    PHP Code:
    $iforumperms $inforums 
    And replace it with this:
    PHP Code:
    AND thread.forumid NOT IN($vba_options['portal_threads_forumids']) 
    Then that should do the trick.

  10. #10
    Join Date
    Feb 2005
    Posts
    17

    Default Re: To display threads from more than one forum in the news section

    You are so kind, thank you.
    I'll buy tomorrow your link hack, look really good, any advise?

  11. #11
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: To display threads from more than one forum in the news section

    No problem.

    Advice as far as?..

  12. #12
    Join Date
    Feb 2005
    Posts
    17

    Default Re: To display threads from more than one forum in the news section

    No, now it is the right file, but no changes from the original behaviour : ((

  13. #13
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: To display threads from more than one forum in the news section

    There's no way it would... If you changed that code then it will pull threads from every forum except the one specified there.

    Acutally, there is the 'Excluded Forums' option too... Any reason you can't just use that?

  14. #14
    Join Date
    Feb 2005
    Posts
    17

    Default Re: To display threads from more than one forum in the news section

    The only reason is that I missed it... sorry! All works fine

  15. #15

    Default Re: To display threads from more than one forum in the news section

    so how can we figure what id goes with which forum?

  16. #16
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: To display threads from more than one forum in the news section

    Edit the forum in your admin cp and you will see the forumid at the top of that page.

  17. #17

    Default Re: To display threads from more than one forum in the news section

    is there somewhere in themanual that discusses this? I am trying toget four particular forums to show up inthe center column but it's not working right. Iend up with four from the same forum, which happens to be the second forum listed.

  18. #18
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: To display threads from more than one forum in the news section

    Are those 4 posts the newest ones? It's going to pull them in order of the date they were submitted, so if those 4 posts are the most recent then that's why.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •