Jump to content


How to exclude forums from Latests Posts


  • You cannot reply to this topic
4 replies to this topic

#1 Steve

    Advanced Member

  • Administrators[Admin]
  • PipPipPip
  • 130 posts
  • Gender:Male

Posted 31 December 2009 - 12:59 AM

Omit forums from showing in the Latest Threads (big)

Open admin/applications_addon/other/uportal/modules_public/uportal/uportal.php

Find: (around line 249 or 497 depending on the file)
'where' 	=> $where,


Replace With:
'where' 	=> $where." AND f.id NOT IN ( 2,4,6,8,9,10 ) ",


Just change the numbers to your forum ID numbers. You can add more or remove some.

Save

#2 yhbae

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 12 May 2010 - 10:36 AM

What is the difference between doing it this way, vs using the ACP GUI provided in the Unreal Portal?

#3 Steve

    Advanced Member

  • Administrators[Admin]
  • PipPipPip
  • 130 posts
  • Gender:Male

Posted 12 May 2010 - 01:33 PM

View Postyhbae, on 12 May 2010 - 10:36 AM, said:

What is the difference between doing it this way, vs using the ACP GUI provided in the Unreal Portal?


Because there is no way to omit forums from being shown in the GUI.

#4 sjoerd

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 21 May 2010 - 03:32 PM

You can also add this

<if test="$fetch['forum_id']!=9">


at the top and this

</if>


at the bottom of the latest_posts_big_row uportal template in ACP

#5 Lock Down

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 29 September 2011 - 10:58 AM

Thanks helped a lot.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users