The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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?
|
#2
|
||||
|
||||
I love template questions
Code:
<if condition="$post['fieldX']"> Put that wherever you would like it ~Curt |
#3
|
||||
|
||||
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?
|
#4
|
||||
|
||||
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 #? |
#5
|
||||
|
||||
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']"> $post[fieldX] </if> ~Curt |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|