Cledus: The ?: is in the wrong order. It should be:
Code:
$this->block_data['mymodification'] = $this->profile->userinfo['field24'] ? "Stuff: $this->profile->userinfo['field24']" : "Nothing to see here";
On another topic, for anyone interested, and to get some feedback on whether this is done properly:
I wanted to get mysql data on my new tab, and
$db and
$vbulletin->db didn't work - they aren't around when this code gets called. In the class_profileblock.php file, when it's building the static blocks such as user statistics and buddy list, it uses this:
Code:
$this->registry->db
It gets me the info, so it works, but is there a preferable way to do it?
Edit: $this->registry seems to be the same as $vbulletin elsewhere...