Tempcode doesn't really have any context of where a template is running, you need to be explicit, using the MEMBER_ID parameter passed into this template...
Thanks, one other issue I cannot fathom. The CPF value is working in both the js file defaults and the template, but when viewing the profile as a Guest the actual CPF value isn't being given so the javascript isn't being output (ie, the recent scrobbles).
I decided to check if the CPF was publicly viewable (it wasn't as it's pretty useless on its own and was outputting the data regardless when I was logged in). Changing it to publicly viewable didn't help (as I imagined it might), the CPF value isn't being output in order to be used when viewing as a guest.
That error seems to happen referencing a non-existent field by number. E.g. too high, too low, or in a gap between field IDs. We'll patch it, but I think your Tempcode must be wrong too.
Okay, perhaps my tempcode was wrong but I don't think it was. Resulted in a white screen everywhere, including Admin Zone so started with a fresh install as I wasn't really sure to how to fix it. Hopefully it was an error on my part, if it happens again I will report.
{+START,IF_NON_EMPTY,{$CPF_VALUE,51,{MEMBER_ID}}}
.....
(+END}
PHP NOTICE [8] Undefined variable: _value in sources\symbols.php on line 2251 (version: 10 RC18, PHP version: 5.6.22, URL: /composr/index.php?page=members&type=view&id=2)