Custom Profile Fields Show for SOME Users, Not Others

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
AMMyers
Registered User
Posts: 9
Joined: Mon Dec 19, 2016 1:12 pm

Re: Custom Profile Fields Show for SOME Users, Not Others

Post by AMMyers »

...well, what do you know. I could have sworn I tried that, but I just moved it again, and it works! Thanks so much for your help, everyone (and especially Brf with the save!).

For anyone else with a similar issue, the final code within functions_profile_fields:

Code: Select all

// Go through the fields in correct order
foreach (array_keys($this->profile_cache) as $used_ident)
	{
	foreach ($field_data as $user_id => $row)
		{
		$uid = $bitfield = $options = '';
		$allowed_bbcode = $allowed_smilies = $allowed_urls = true;
		generate_text_for_storage($row['pf_' . $used_ident], $uid, $bitfield, $options, $allowed_bbcode, $allowed_smilies, $allowed_urls);
		$row['pf_' . $used_ident] = generate_text_for_display($row['pf_' . $used_ident],
		$uid, $bitfield, $options);
		$user_fields[$user_id][$used_ident]['value'] = $row['pf_' . $used_ident];
		$user_fields[$user_id][$used_ident]['data'] = $this->profile_cache[$used_ident];
		}
	}
Locked

Return to “[3.0.x] Support Forum”