And what code did you add to your plugin to get the album count or userinfo - I don't see any code there to define those. And, $albums is not something you can use - it is the query, so it's just a pointer really.
As for why you are trying to use $block_data['albumbits2'], I don't know. If you are just trying to only add code if $albumbits2 exists, then I would use that variable.
|