PDA

View Full Version : collapse forums in the "forums and moderators" "modify" page


Inzagi
10-04-2001, 06:25 AM
collapse forums in the "forums and moderators" "modify" page
Ok,
I have now entered the license number. Hoping you are satisied now with this

My problem ist the following:
I have about 500-1000 forums, don't know exactly how much.
Many of them aren't in use yet.

But our problem ist, it takes about to 6 minutes with dsl loading the "forums and moderators" "modify" page.

What can I do about this?
Is there a way to personate the forums like it is manged with the templates, meaning they are king of collapse and you can expand certain areas ??

Otherwise I will not be able to go to this area of the control panel anymore very soon.

Admin
10-04-2001, 06:32 AM
If you want, a "depth level" can be set, but it will only be gloablic.
So it will basicaly work like the depth in the forums themselves, that you can set in the control panel.

But you won't be able to just expand this group, and leave the others collapsed.

If you'd like that, I might be able to work something out.

Inzagi
10-04-2001, 09:03 AM
So it will basicaly work like the depth in the forums themselves, that you can set in the control panel


So you needn't to show all forums and subforums at once on one screen anymore?

If so: This would be brillant because I could handle the huge amount of required fourms in the future!


If you'd like that, I might be able to work something out.

Would be really great !!!!!!!!!

Admin
10-04-2001, 09:29 AM
Ok, I'll see what I can do.

Inzagi
10-05-2001, 07:00 AM
any progress yet ?

I really must have this hack because otherwise I can't control my "usercp forums and moderators" anymore ...

Admin
10-05-2001, 09:09 AM
Not yet, you're gonna have to wait a while, sorry.

Admin
10-06-2001, 01:47 PM
This was actually surprisingly easy, now I got a whole afternoon with nothing to do. :)

In forum.php, replace this:
displayforums(-1);
echo "</ul>\n</td></tr>\n";

doformfooter("Update order");
with this:
if (isset($depthtoshow)==0)
$depthtoshow="1000";
displayforums(-1,$depthtoshow);
echo "</ul>\n</td></tr>\n";

doformfooter("Update order");
(almost end of file)

Now replace this:
// ###################### Start function displayforums #######################
function displayforums($parentid=-1) {
global $DB_site,$session;
with this:
// ###################### Start function displayforums #######################
function displayforums($parentid=-1,$depth=1000) {
global $DB_site,$session;

$curdepth=$depth-1;

Now replace this:
echo "<ul>\n";
displayforums($forum[forumid]);
echo "</ul>\n";
with this:
echo "<ul>\n";
if ($curdepth!=0)
displayforums($forum[forumid],$curdepth);
echo "</ul>\n";
And that's it!

Now you can go to:
http://www.forums.com/admin/forum.php?action=modify&depthtoshow=3
http://www.forums.com/admin/forum.php?action=modify&depthtoshow=1
http://www.forums.com/admin/forum.php?action=modify&depthtoshow=5
http://www.forums.com/admin/forum.php?action=modify&depthtoshow=9

Got it? :)

Inzagi
10-08-2001, 08:19 AM
Thank you very very much mate !!!
You are d'a MAN !!!!!!
I hope that I can now handle the high amout of boards in forums and moderators !

justsomedude
10-09-2001, 01:30 AM
I'm a bit confused by these posts, but i think this is a feature i'd really like.

what i'm trying to accomplish is a collapsed category within my forums. I have multiple categories with multiple sub forums & i'd like the ability to collapse a single category while leaving the others expanded.

I checked out Inzagi's site & it looks as though that's what was accomplished. was that a result of this hack?

Inzagi
10-09-2001, 10:26 AM
I think you are not aware of the fact that these "collapse forums" is just for the admin panel !!
It has nothing to do with the look of the board or the categories there.

It's just made to handle the forums in the admin cp better.

[quote]
what i'm trying to accomplish is a collapsed category within my forums. I have multiple categories with multiple sub forums & i'd like the ability to collapse a single category while leaving the others expanded.
[/qoute]

This hack doen't exist I think.
I was searching for something like this too but I found nothing.
So I am really amazed that you have seen something like this on my forums ? :confused:

justsomedude
10-09-2001, 09:31 PM
https://vborg.vbsupport.ru/external/2001/10/1.gif


My fault, at a quick glance last night it looked like you were able to collapse these forums, but after looking again i see that it is just a "man category" set NOT to act as a forum with 2 sub forums & multiple sub-sub forums :(

I assume that you were able to collapse forums in the "forums and moderators" "modify" page with FireFly's code hack?

sorry for the mixup.