![]() |
How do I insert text entered in profile fields into a post?
My users need headers and footers to their post. So I have 2 profile fields acting as the entry for the header and the footer. What code do I use to grab the text entered into those profile fields so that it appears before and after "$post[message]" in the postbit template?
|
I love template questions :)
Code:
<if condition="$post['fieldX']"> Put that wherever you would like it ~Curt |
Maybe you can answer this question too. How do I get it so my header is up against the very top and my footer is against the very bottom?
|
I get this error:
The following error occurred when attempting to evaluate this template: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /path/includes/adminfunctions_template.php(3096) : eval()'d code on line 63 Am I suppose to include anything more than that after changing the X to the field #? |
I am sorry I did not give you all the code, It was probably too early in the morning for me to be thinking, I am soo sorry..here is the code you will need.
Code:
<if condition="$post['fieldX']"> ~Curt |
All times are GMT. The time now is 03:05 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:
|