![]() |
how to use custom field at the member area
Hi, Im doing the new layout of my site and I want to show some custom fields ($post['field5']) in the member area, I used these for the thread area (postbit_legacy):
PHP Code:
--------------- Added [DATE]1269199465[/DATE] at [TIME]1269199465[/TIME] --------------- Solved, hope this will help to anyone. I made a plugin with this info (inside the member_start hook): PHP Code:
PHP Code:
I optimized the code to this: PHP Code:
|
I updated the code for multiple selection custom fields, hope you can understands it.
PHP Code:
|
From my experience with the memberinfo stuff, you are going to need to use $userinfo instead of $post.
Also, I don't see you registering any of your variables so I'm not sure you'll get anywhere with that. I recommend reading over the Rending Templates article again and looking over the preregister part of it. I haven't done it before though, so I'm not exactly sure what to do on that. |
All times are GMT. The time now is 04:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|