phpBB

Development Wiki

Talk:Tutorial.Custom profile fields

From phpBB Development Wiki

Revision as of 10:37, 29 May 2009 by Blablubbb (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

I guess there is a little problem with "IF postrow.custom_fields.PROFILE_FIELD_NAME" because that field_name is language specific, so one possible solution could be to to define language variables and then you use something like: <!-- IF postrow.custom_fields.PROFILE_FIELD_NAME == '{L_FAVORITE_TEAM}' -->

An other solution could be to read out the real (language independent) field_name from the database table phpbb_profile_fields... but I dont know how... I will see, whether I can find a way ...

A third way could be to to make an if for every language, this way you dont need to change php files, but it makes your template much longer --Blablubbb 10:37, 29 May 2009 (UTC)