MyBB Community Forums

Full Version: Sub Forums line limit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering about limiting the number of Sub Forums to a set number and then have it start a new line under it again.

Lets say 8 subs.. but set to 5 sub's with the limit.. then the others under it with a new line.

like this,
Sub Forums: Test Forum, Test Forum, Test Forum, Test Forum, Test Forum,
Test Forum, Test Forum, Test Forum,

How can i do this?

Thanks in advance Smile
I deleted it; but this will probably work 'better', i had a problem with the previous thing =P

Open ./inc/functions_forumlist.php

Find
		foreach($parent as $forum)
		{

Add Above
		$count = 0;

Find
					eval("\$forum_list .= \"".$templates->get("forumbit_depth3", 1, 0)."\";");
					$comma = ", ";

Add Below
					++$count;
					if($count == 2)
					{
						$comma .= "<br />";
						$count = 0;
					}
That indeed worked lex, Thank you.
However, there are still 2 sub sections it did not take affect on.
Link to your forum ?
i will have to give you access, its a semi private forum.
You will not be able to see the forum section.

Send me your login info you want and i will make you an account.

Then you can log in and see Smile
looks like its just a firefox issue. Using IE all sections are proper.

Thanks again for your time Lex Smile
This code change is not working now for MyBB 1.4.4.

I need help Sad Please Blush