PDA

View Full Version : How do I insert text entered in profile fields into a post?


Gutspiller
07-27-2005, 09:51 PM
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?

bigcurt
07-27-2005, 10:53 PM
I love template questions :)

<if condition="$post['fieldX']">


Put that wherever you would like it


~Curt

Gutspiller
07-31-2005, 02:58 AM
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?

Gutspiller
08-01-2005, 06:03 PM
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 #?

bigcurt
08-01-2005, 09:00 PM
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.



<if condition="$post['fieldX']">
$post[fieldX]
</if>


Make sure you replace BOTH "X" Values.


~Curt