#2843 - My CPF shown when visiting test's profile

This is a spacer post for a website comment topic. The content this topic relates to: #2843 - My CPF shown when visiting test's profile
Doesn't happen when viewing test's profile via SU, only when I view it normally.
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...

{+START,IF_NON_EMPTY,{$CPF_VALUE,51,{MEMBER_ID}}}
.....
(+END}
Okay, that works. I did look at MEMBER_ID but couldn't work out where to put it. I assumed it would be smart enough to know (unlike myself) :P
Right, I'm tweaking the docs to be clearer.
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.
Added a new CPF, brief line of text with no comcode support (same as last.fm CPF). Filled in the value and saved. Got the following error:-

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)
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.
0 guests and 0 members have recently viewed this.