*
*
Home
Help
Login
Register
Welcome, Guest. Please login or register.
May 23, 2022, 04:34:59 PM

Login with username, password and session length
Forum changes: Editing of posts has been turned off until further notice.
Search:     Advanced search
275647 Posts in 27717 Topics by 4285 Members Latest Member: - Jason DAngelo Most online today: 89 - most online ever: 565 (October 17, 2020, 02:08:06 PM)
Pages: [1]
Print
Author Topic: Technical question about this board  (Read 1980 times)
Opsimath
Member

Posts: 13


« on: November 24, 2003, 10:59:53 AM »

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.
Logged
Clinton R. Nixon
Member

Posts: 2624


WWW
« Reply #1 on: November 24, 2003, 01:13:38 PM »

No problem. Here's what I do:

From line 51 of index.php:

Code:

$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."
Logged

Clinton R. Nixon
CRN Games
Opsimath
Member

Posts: 13


« Reply #2 on: November 24, 2003, 05:15:18 PM »

Much obliged, sir!
Logged
Pages: [1]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Oxygen design by Bloc
Valid XHTML 1.0! Valid CSS!