MyBB Community Forums

Full Version: How do I hide the new thread button?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Then do this:

Open showthread.php
Find
		eval("\$newthread = \"".$templates->get("showthread_newthread")."\";");

		// Show the appropriate reply button if this thread is open or closed
		if($thread['closed'] == "yes")
		{
			eval("\$newreply = \"".$templates->get("showthread_newreply_closed")."\";");
		}
		else
		{
			eval("\$newreply = \"".$templates->get("showthread_newreply")."\";");
		}

Replace by
		// Show the appropriate reply button if this thread is open or closed
		if($thread['closed'] == "yes")
		{
			eval("\$newreply = \"".$templates->get("showthread_newreply_closed")."\";");
		}
		else
		{
			eval("\$newreply = \"".$templates->get("showthread_newreply")."\";");
		}
		if($forumpermissions['canpostthreads'] != "no")
		{
			eval("\$newthread = \"".$templates->get("showthread_newthread")."\";");
		}
		else
		{
			$newthread = "";
		}
Yes! It works. Thanks.
Pages: 1 2