MyBB Community Forums

Full Version: Change the character limit for "Latest Threads" on Portal.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I believe I found the code in portal.php but no matter what I change it to (or even remove it) it doesn't change the character limit from 25.

		if(my_strlen($thread['subject']) > 25)
		{
			$thread['subject'] = my_substr($thread['subject'], 0, 25) . "...";
		}

Any ideas?
See portal.php line 381.
Comment it
// $thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));

And change the character length as you like, done! Wink
No luck. Sad
Well, I dont know then.
Because those way, it's work for me Smile

And I have customize portal for years base on those scripts. See mine. All in threads subject which have my_strlen 55 chars
Found the problem, I had "Forum ID to pull announcements from" blank, I set it to 0 and it worked! Big Grin
Damn, now it's not working again and I can't figure out why. Sad
still working for me Wink
try upload fresh new portal.php and edit again
Did that, I even removed all of the lines from portal.php with $thread[subject] and it didn't do anything (meaning that my portal.php page is pulling the $thread[subject] from somewhere else but a grep turned up nothing). Sad
Damn it! The problem was with a plugin I'm using. Sad Once I disabled "Username Style" it fixed it. Big Grin