The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
how to show custom fields in showthread profile
hi i want to define some custom filed like Mobile model and ... then show them in profile of members in showthread.
what shoud i do? by the way my version os 4.0.2 |
#2
|
|||
|
|||
This isn't to hard and this is what I did:
1. Create a new plugin via the plugin manager. 2. product - vbulletin 3. Hook - postbit_display_start 4. title - extra profile fields 5. execution order - mine is set at 5. 6. plugin php code: Code:
if($post[fieldx]) $html .= '<dt>Name</dt> <dd>'.$post[fieldX].'</dd>'; if($post[fieldx]) $html .= '<dt>Name</dt> <dd>'.$post[fieldX].'</dd>'; $html .='<br /><br />'; $template_hook['postbit_userinfo_right_after_posts'] .= $html; |
#3
|
||||
|
||||
but it didn't work for me.
|
#4
|
|||
|
|||
Works for me sorry it didn't for you.
|
#5
|
|||
|
|||
why I get bad request error when I try to open thread?
|
#6
|
|||
|
|||
The fields were made b4 you made the plugin active right? Did you put the changes needed in red to represent your profiles & field numbers?
|
#7
|
||||
|
||||
right but i did it.
for example i want 2 custom set: 1)gender: female or male 2)mobile: nokia,apple,sony ericsson what shoud i do exactly? tnx for your answer |
#8
|
|||
|
|||
Quote:
Code:
if($post[fieldx]) $html .= '<dt>mobile</dt> <dd>'.$post[fieldX].'</dd>'; if($post[fieldx]) $html .= '<dt>gender</dt> <dd>'.$post[fieldX].'</dd>'; |
#9
|
||||
|
||||
tnx man .I'll try it
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|