News:

Forum changes: Editing of posts has been turned off until further notice.

Main Menu

Technical question about this board

Started by Opsimath, November 24, 2003, 06:59:53 PM

Previous topic - Next topic

Opsimath

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.

Clinton R. Nixon

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."
Clinton R. Nixon
CRN Games

Opsimath