I am trying to take out $customfields and replace it with this:
Code:
<if condition="$userinfo[birthday]"><strong>Birthday</strong>:<br />$userinfo[birthday]<br /></if>
<if condition="$post['field5']"><strong>What's your name</strong>:<br />$post['field5']<br /></if>
<if condition="$post['field6']"><strong>What's your gender</strong>v<br />$post['field6']<br /></if>
<if condition="$post['field2']"><strong>Location</strong>:<br />$post['field2']<br /></if>
<if condition="$post['field1']"><strong>Biography</strong>:<br />$post['field1']<br /></if>
<if condition="$post['field3']"><strong>Interests</strong>:<br />$post['field3']<br /></if>
<if condition="$post['field4']"><strong>Occupation</strong>:<br />$post['field4']<br /></if>
<if condition="$post['field11']"><strong>Xbox Live Gamer Tag</strong>:<br />$post['field11']<br /></if>
<if condition="$post['field12']"><strong>Steam Tag name</strong>:<br />$post['field12']<br /></if>
and I get this:
Quote:
The following error occurred when attempting to evaluate this template:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/binarydr/public_html/forums/includes/adminfunctions_template.php(3028) : eval()'d code on line 259
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
|
What am I doing wrong? I added the memberinfo code if you wanted to look at it also.