![]() |
Help with Template hook location
Hi , I have created some custom profile fields (field5-7) and I have vb 4.1.11 installed on my forums.
I want to display the custom field data in the signature using templates. 1) I have made a template called "cuz_sig" which is as follows : Code:
PHP Code:
Hook Location : postbit_display_complete Active : Yes I've tried with other postbit hook locations that are available in the drop down , but still not working. 3) PROBLEM : The custom field data doesnt show up! The output is simply blank. 4) If remove the vbif condition tags then output is : Field5: Field6: Field7: 5) Which template hook should I use so that it gets invoked correctly?. It seems that the code has no reference to $post[] or {vb:raw post} bcoz {vb:raw post.fieldx} is returning nothing. Need some help asap! -Thanks |
Are you sure that you didn't set the custom profile fields to be private?
|
They aint private. My selection is
Private Field : No |
Edit: oh, I know - as you mentioned, you need to register $post to your template, like:
Code:
global $template_hook; |
@kh99 : Its working now :D , thanks a TON friend! I really appreciate getting your prompt help :)
|
All times are GMT. The time now is 07:08 AM. |
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:
|