MyBB Community Forums

Full Version: Post Titles
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

If a user has a post title that is really long, example: This is my really fantastic awesome yet boring Post Title

You see it on the actual post as: This is my really fantastic awesome yet boring Post Title



NOW, when said user's long post title shows up on the forums index, portal and search, it is displayed like:

This is my really fantasti...



There is a letter character limit set for display for long post titles. where do I edit the letter count set to display on post titles?

I'd appreciate it if anyone can point me in the right direction.

I need it something like:


This is my real...
Open the inc/functions_forumlist.php file and find this bit;


if(my_strlen($lastpost_subject) > 25)
{
$lastpost_subject = my_substr($lastpost_subject, 0, 25)."...";
}

Change the two 25's to whatever length you want to change it to.

That will work in the index for the "Last Post" section. Not sure about other parts.
The solution you provided was site wide, it worked for everything I needed, So grateful, thank you +1
(01-23-2017, 12:09 AM)Michael2014 Wrote: [ -> ]The solution you provided was site wide, it worked for everything I needed, So grateful, thank you +1

Ah right cool! No problem, glad to help Smile