Ok, here's a quick & easy way to add the news avatars. I wouldn't recommend adding it if you have a couple of dozen news posts, but otherwise it won't really have an effect on performance.
In your myvbindex.php find:
// News Comments
Right above that add:
PHP Code:
$newsavatar='';
$newsavatarurl=getavatarurl($news[userid]);
if ($newsavatarurl=='') {
$newsavatarurl='images/clear.gif';
} else {
$newsavatarurl=''.$newsavatarurl.'';
}
eval("\$newsavatar = \"".gettemplate('index_news_avatar')."\";");
Then create a new template called
index_news_avatar with the following content:
PHP Code:
<img src="$bburl/$newsavatarurl" border="0">
(Of course you can edit that if you would like it to link to the news posters profile or something like that)
Then in your index_newsbits template add $newsavatar wherever you'd like the avatar to appear.
That's it.
I
should have a little more time to work on the hack and release the next version by next week. After that I probably won't be releasing any future versions for a while as I'm going to be concentrating on a much bigger project that will combine myvbindex with a bunch of other options. Assuming everything goes well I'll be looking for beta testers in a few weeks, so I'll post more info about it then.