BB Code to return value of custom user field

  • Thread starter Thread starter celebrir
  • Start date Start date

celebrir

Guest
Member
I want to create a BB Code which returns the value of a certain simple custom user field.
I have a staff list as a thread on my internal Forum and I want to include the telephone number of the staff members. (Field ID "user_tel").
I figured I need to use the PHP Callback function on the BBcode, handing over the requested UserID as a parameter.
Could look like this: [GETTEL=1][/GETTEL]

So far I have figured that I get my wanted result with $user.Profile.custom_fields.user_tel but then I got...

Read more
 
Top