MyBB Community Forums

Full Version: Help in php.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello, i make new mod that doing only when is 3 cats, it start new line(and not every one cat).

so i enter to index.php and

search that:
eval("\$forumlisting .= \"".$templates->get("forumbit_depth$depth$forumcat")."\";");
and replace with:
		$csforums = 11;
		if ($csforums > 3)
				{
					eval("\$forumlisting .= \"".$templates->get("forumbit_depth$depth$forumcat")."\";"); \\\ This template make only the cat without new line
				}
		else
				{
					eval("\$forumlisting2 .= \"".$templates->get("1forumbit_depth$depth$forumcat")."\";"); \\\ This is the Template that make after 3 cats a new line
					$csforums = $csforums - 3 /// this is that will not stay for ever the same numbers of cats, and he will do a new line for ever.;
				}
but it not work, if i am doing if ($csforums > 3) it is not make new line
and if i am doing if ($csforums < 3) this is make all the time new line
what the problam?
hope you understand me, and sorry about the english
If I understood what you want you need to change
if ($csforums > 3)
to
if ($csforums == 3)