Show custom profile field in ucp_pm_viewmessage

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Show custom profile field in ucp_pm_viewmessage

Post by jackennils »

Hey there,

I know that you can display a custom profile field in viewtopic_body with a code like this:

Code: Select all

<!-- IF postrow.S_PROFILE_SYSTEM -->
	<dd><strong>{postrow.PROFILE_SYSTEM_NAME}{L_COLON}</strong> {postrow.PROFILE_SYSTEM_VALUE}</dd>
<!-- ENDIF -->
But what code do I need to make it work in ucp_pm_viewmessage? :?:

Thanks!
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Show custom profile field in ucp_pm_viewmessage

Post by 3Di »

cpfs2.png
.
cpfs.png
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: Show custom profile field in ucp_pm_viewmessage

Post by jackennils »

That does not answer my question. I do not want automatic display, I want manual display so that I can control its placement and the way it looks.

Edit: Found it myself.

Answer:

Code: Select all

<!-- IF S_PROFILE_SYSTEM -->
	<dd><strong>{PROFILE_SYSTEM_NAME}{L_COLON}</strong> {PROFILE_SYSTEM_VALUE}</dd>
<!-- ENDIF -->
Post Reply

Return to “phpBB Custom Coding”