Forum Moderators: coopster
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/ftphome/tzer.org/components/com_comprofiler/comprofiler.html.php on line 485
This is line 485 (it is long)... any help would be greatly appreciated.
echo "\n\t</td></tr></table><table><tr><td><img src=".$bimage."></td></tr><tr valign=\"bottom\" width=100%><td valign=\"bottom\"><?php if($my->id==$user->id && $ueConfig['allowBpic']==1 && ($ueConfig['allowBpicUpload']==1 ¦¦ $ueConfig['allowAvatarGallery']==1)) { echo "<a href=".sefRelToAbs($ue_userbpic_url)."><img src='".$adminimagesdir."updateprofile.gif' border=0 /> "._UE_UPDATEBPIC."</a>";?></td><td valign=\"bottom\"><?php if($user->bpic!='' && $user->bpic!=null) echo "<a href='".sefRelToAbs("index.php?option=com_comprofiler&Itemid=".$Itemid."&task=userBpic&do=deletebpic")."'>"._UE_DELETE_BPIC."</a>"; }?></td></tr></table>";
<a href="<?php echo sefRelToAbs($ue_userbpic_url);?>">
<img src="<?php echo $adminimagesdir;?>updateprofile.gif" border=0 />
<?php echo _UE_UPDATEBPIC;?></a></td>
<td valign="bottom">
<?php if(($user->bpic!= '') && ($user->bpic!=null))
?>
<a href="<?php echo sefRelToAbs("index.php?option=com_comprofiler&Itemid=" .$Itemid. "&task=userBpic&do=deletebpic");?>"><?php echo _UE_DELETE_BPIC;?></a>
<?php
}
?>
</td></tr></table>
PS In the if clause you should use more brackets, because why do you assume, that == is done after && and not otherwise?
Best regards
<?php
//some code?>
<td><img src="<?php echo $bimage;?>"></td>
It means, that you cannot have an opening of php inside a php (there's a specialistic word for that, but i forgot it). It means that you can't do what you can do with ifs:
if($a = 1)
{
if($a!= 0)
{
}
}
With <? you can't do that.
Best regards
Michal Cibor