The Forge Archives

General Forge Forums => Site Discussion => Topic started by: Opsimath on November 24, 2003, 06:59:53 PM

Title: Technical question about this board
Post by: Opsimath on November 24, 2003, 06:59:53 PM
Hi, sorry to pester you with a question that has nothing to do with RPGs, so I'll try to keep it brief.

I like the default behavior that causes all categories except General Forge Forums to be collapsed when one enters The Forge.  I'd like to duplicate this behavior on my own PHPBB board, but my search for an answer at the PHPBB community boards has been fruitless.

I understand that adding the search string "?c=1" to the URL produces this effect manually, but I can't puzzle out how to achieve that automatically.

Thanks for your time.
Title: Technical question about this board
Post by: Clinton R. Nixon on November 24, 2003, 09:13:38 PM
No problem. Here's what I do:

From line 51 of index.php:


$viewcat = ( !empty($HTTP_GET_VARS[POST_CAT_URL]) ) ? $HTTP_GET_VARS[POST_CAT_URL] : 1;


That ?c=# places its value in $HTTP_GET_VARS[POST_CAT_URL]. I'm basically saying, "If that's not empty, use it. Otherwise, set the category to 1."
Title: Technical question about this board
Post by: Opsimath on November 25, 2003, 01:15:18 AM
Much obliged, sir!