Ok, I realized I added the variable definitions in the wrong block of code. (I was putting them in the Newest Threads block instead of the News block).
It's still not working correctly, but I think I'm getting closer.
To undo the changes I made in the above post and correct them to what I have now, you're just moving some code around:
In vbExternal.php find:
PHP Code:
'attachments' => $show['attachments'],
'cellpadding' => $stylevar[cellpadding],
'thumbnailattachment' => $show['thumbnailattachment'],
'attachedthumbnails' => $vbphrase[attached_thumbnails],
'formspacer' => $stylevar[formspacer],
'thumbnailattachment' => $post[thumbnailattachments],
'imageattachment' => $show['imageattachment'],
'attachedimages' => $vbphrase[attached_images],
'imageattachments' => $post[imageattachments],
'imageattachmentlink' => $show['imageattachmentlink'],
'imageattachmentlinks' => $post[imageattachmentlinks],
'otherattachment' => $show['otherattachment'],
'attachedfiles' => $vbphrase[attached_files],
'otherattachments' => $post[otherattachments],
'moderateattachment' => $show['moderatedattachment'],
'attachmentspendingapproval' => $vbphrase[attachments_pending_approval],
'moderatedattachments' => $post[moderatedattachments],
And DELETE it.
Then find:
PHP Code:
while($News = $db->fetch_array($NewestNews)){
$Data .= ParseTemplate($Template,
array(
'threadid' => $News['threadid'],
'threadname' => $News['title'],
'postuserid' => $News['postuserid'],
'postusername' => $News['postusername'],
'post' => $bbcode_parser->parse(unhtmlspecialchars($News['pagetext']), $f),
'comments' => vb_number_format($News['replycount']),
And UNDERNEATH that ADD:
PHP Code:
'attachments' => $show['attachments'],
'cellpadding' => $stylevar[cellpadding],
'thumbnailattachment' => $show['thumbnailattachment'],
'attachedthumbnails' => $vbphrase[attached_thumbnails],
'formspacer' => $stylevar[formspacer],
'thumbnailattachment' => $post[thumbnailattachments],
'imageattachment' => $show['imageattachment'],
'attachedimages' => $vbphrase[attached_images],
'imageattachments' => $post[imageattachments],
'imageattachmentlink' => $show['imageattachmentlink'],
'imageattachmentlinks' => $post[imageattachmentlinks],
'otherattachment' => $show['otherattachment'],
'attachedfiles' => $vbphrase[attached_files],
'otherattachments' => $post[otherattachments],
'moderateattachment' => $show['moderatedattachment'],
'attachmentspendingapproval' => $vbphrase[attachments_pending_approval],
'moderatedattachments' => $post[moderatedattachments],
This gets rid of some of the extras that were beingt output on the page to make it look like this. I'm still having problems though as you can see from the attached thumbnail. I'm kind of lost at this point I think, so any help anyone would like to offer would be much appreciated. Thanks.