Advertisement:

Author Topic: Displaying only one Category  (Read 109493 times)

Offline eyo

  • Jr. Member
  • **
  • Posts: 202
  • Gender: Male
Re: Displaying only one Category
« Reply #40 on: September 02, 2011, 09:40:53 PM »
anyone know how to do this in 2.0?

Offline live627

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,265
  • Gender: Male
  • Cat: Destroy!
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: Displaying only one Category
« Reply #41 on: September 03, 2011, 12:24:39 AM »
Code: (Find in ./Sources/Subs-BoardIndex.php) [Select]
WHERE {query_see_board}'
Code: (Replace the above with) [Select]
WHERE {query_see_board}' . ($boardIndexOptions['include_categories'] && isset($_REQUEST['catogid']) ? "
AND c.ID_CAT = {$_REQUEST['catogid']}" : '')
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein