MyBB Community Forums

Full Version: Search Posts Character Amount
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I search to see all users posts (to check to see if any are spam, instead of opening each 1 by 1, I like to check all at once, thus why I use the search button), it shows the first 200 characters of the post then a "..." . How about if we could change that in the settings? It could be something that we make only apply to admins or certain user groups or maybe applies to everyone. It would make forum staffs life so much easier to moderate suspicious members.

Thoughts?
Wait you want it to show like the full post in the search page? Seems like that would just be ridiculously long and take up a ton of room, I don't see the problem with the 200 character limit. Or am I misunderstanding you?
Open search.php and find;
			if(my_strlen($post['message']) > 200)
			{
				$prev = my_substr($post['message'], 0, 200)."...";
			}
			else
			{
				$prev = $post['message'];
			}

and Replace it to;
			if($post['message'])
			{
				$prev = $post['message'];
			}

Now your search-ed message will be as long as that of your post's message Wink
Thanks Yaldaram. So to change it to like 500, I just replace those 2 "200"s with 2 "500"s?