This is not going to work:
HTML Code:
$thread['meta_description'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title($thread['title'], $thread['forumid'], false)));
You would need something like:
HTML Code:
$thread['meta_description'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title($thread['title'].$thread['forumid'], 500, false)));
Please see the api for that function here -
https://members.vbulletin.com/api/vB..._trimmed_title The second parameter must be a number.