The BB Code parsing needs to be done in your plugin not the .php file...
Using the 1st version you posted in the above post make the plugin into:
PHP Code:
$numposts='7';
$thrdqry = $vbulletin->db->query_read("
SELECT thread.threadid, thread.title, username, post.dateline, post.pagetext FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "post AS post ON thread.firstpostid = post.postid
WHERE thread.forumid IN (61, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 130, 131, 132, 133, 134, 136, 137, 138, 139) AND thread.visible = '1'
ORDER BY thread.dateline DESC
LIMIT 0, $numposts ");
while ($thrds = $vbulletin->db->fetch_array($thrdqry))
{
$postdate = vbdate($vbulletin->options['dateformat'], $thrds['dateline'], true);
$posttime = vbdate($vbulletin->options['timeformat'], $thrds['dateline']);
//Code I added
$thrds[pagetext] = $bbcode_parser->parse($thrds[pagetext] ,'nonforum', true);
$homepage_recent_post .=<<<EOD
<div class="post-1 post type-post hentry category-uncategorized" id="post-1">
<h2 class="title"><a href="showthread.php?t=$thrds[threadid]" target="_blank" alt="$thrds[title]" title="$thrds[title]">
$thrds[title]
</a>
</h2>
<div class="postdate">
<img src="images/date.png" /> $postdate <img src="images/user.png" /> $thrds[username]
</div>
<div class="entry">
<p>$thrds[pagetext]</p><a href="showthread.php?t=$thrds[threadid]" target="_blank" alt="$thrds[title]" title="$thrds[title]">
Read more..
</a><br/><br/>
</div>
</div>
EOD;
}
Don't forget to put the:
PHP Code:
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),true);
At the top of the plugin now... and you may need global.php too, try it and see.