Quote:
Originally Posted by marquisite
Hello there, this mod is great! I have a request however...
Is it possible to specify a maximum line/character count for the thread preview? Some posts on a forum this modification was installed on are huge, and for preview purposes the first couple of lines, first paragraph, or first 100 or so characters would be more than sufficient.
Is this easily implementable into this modification? Thank you 
|
While I can't see myself adding this as a standard option in future releases, you can achieve this yourself via a quick edit to
/forum/vbpost_ajax.php.
FIND:
PHP Code:
//if ($_SERVER['REQUEST_METHOD'] == 'POST' AND
ABOVE THAT, ADD:
PHP Code:
$post['message'] = fetch_trimmed_title($post['message'], 100, true);
Obviously, change 100 to however many characters you would like displayed. Also, changing true to
false will remove the trailing ellipses (...) if desired.