How to display custom fields in ucp_pm_message?

Discussion forum for MOD Writers regarding MOD Development.
Locked
newbie_niles
Registered User
Posts: 26
Joined: Thu Dec 11, 2008 10:44 am

How to display custom fields in ucp_pm_message?

Post by newbie_niles » Sun Aug 30, 2009 3:49 pm

Basically, I want the displayed private message poster info (next to the private message text) to contain custom fields.

I've tried using code like the one below, which works well in the viewtopic_body file (when viewing forum topics), but with "postrow." removed.

How should I rewrite the following section, besides the removal of "postrow.", in order to get the custom field to display?

Code: Select all

		<!-- BEGIN custom_fields -->
	     	      	<!-- IF postrow.custom_fields.PROFILE_FIELD_NAME eq "Incognito" -->
     		            	<dd>{postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
			<!-- ENDIF -->
		<!-- END custom_fields -->

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: How to display custom fields in ucp_pm_message?

Post by Erik Frèrejean » Sun Aug 30, 2009 4:03 pm

phpBB doesn't support cfs there. I've filed a bug report on the issue some time ago.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

newbie_niles
Registered User
Posts: 26
Joined: Thu Dec 11, 2008 10:44 am

Re: How to display custom fields in ucp_pm_message?

Post by newbie_niles » Sun Aug 30, 2009 4:10 pm

Ok, thanks for the quick reply.

(guess it's just a matter of waiting for a future patch then)

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: How to display custom fields in ucp_pm_message?

Post by Erik Frèrejean » Sun Aug 30, 2009 4:17 pm

I have a patch attached to the ticked, so if you *really* need it you can apply that patch. Though keep in mind that it becomes a modification at that point so you'll have to watch the updates.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

Locked

Return to “[3.0.x] MOD Writers Discussion”