Ok I've made some changes to get post authors to correctly display:
Changed in vbbridge.php
PHP Code:
$sql = "select replycount, postuserid FROM " . TABLE_PREFIX . "thread where threadid = '$results->vb_threadid'";
to
PHP Code:
$sql = "select replycount, postuserid, postusername FROM " . TABLE_PREFIX . "thread where threadid = '$results->vb_threadid'";
and
PHP Code:
$ret = Array('id' => $results->vb_threadid, 'count' => $results2[replycount], 'thread_starter' => $results2[postuserid], 'replies' => $results3, 'vb_parser' => $parser);
to
PHP Code:
$ret = Array('id' => $results->vb_threadid, 'count' => $results2[replycount], 'thread_starter' => $results2[postuserid], 'replies' => $results3, 'vb_parser' => $parser, 'postusername' => $results2[postusername]);
Then in the instructions for the Author (wordpress templates) - this was only being called once and resulted in the same author being displayed in all my posts on the main page:
Changed:
PHP Code:
if (function_exists('Comment_Handler') and $vbridge == '') {
to
PHP Code:
if (function_exists('Comment_Handler')) {
Also to removed the following from the comment code (redundant since a function call is already made by the author portion of the code)
PHP Code:
if (function_exists('Comment_Handler')) {
$vbridge = Comment_Handler($post->ID);
global $vbulletin;
}
Everything fully working on
LineageJunkies.com