PDA

View Full Version : SUGGESTION: remember expanded forums in Admin CP



goha
Tue 8th Jul '08, 1:29am
I am admin of big forum. Following change made my life much easier. Would you please be so kind and include it into standard code?

in admincp/forums.php

// ###################### Start modify #######################
if ($_REQUEST['do'] == 'modify')
{
$vbulletin->input->clean_array_gpc('r', array(
'forumid' => TYPE_UINT,
'expandid' => TYPE_INT,
));
if (!$vbulletin->GPC['expandid'])
{
if ($_REQUEST['f'])
$vbulletin->GPC['expandid'] = $_REQUEST['f'];
else
$vbulletin->GPC['expandid'] = -1;
....

Kinneas
Tue 8th Jul '08, 4:03am
Can't you already remember them by clicking "Save Prefs"?

goha
Tue 8th Jul '08, 4:21am
Can't you already remember them by clicking "Save Prefs"?

Sorry, most likely you are speaking about something different.


If in adminCP/Options/AdminControlPanelOptions/Forum Manager Display
is set to Collapsible (which is the only options when number of subforums is above several hundreds), then it takes several clicks to get to target subforums. But, after you edited it, it doesn't remember where you was, and collapse all subforums.

Code change shown above makes adminCP to remember which subforum was expanded after you edit / create subforum.

It save lot of time and efforts

Kinneas
Tue 8th Jul '08, 4:33am
Ah right, I misunderstood. Sorry.