Daron Posted April 14, 2011 Posted April 14, 2011 can someone help me with the code to have my users profile pics to display when they battle. i dont need a full battle script as i like mine, i just need the part for displaying the profile pics. Quote
Gaara Ichimaru Posted April 14, 2011 Posted April 14, 2011 Easy peasy, <img src='{$ir['display_pic']}' width='100' height='100' alt='User Display Pic' title='User Display Pic' /> Quote
Daron Posted April 14, 2011 Author Posted April 14, 2011 i got this error Parse error: syntax error, unexpected '<' in heres the code print "</table>"; print "<table width='50%' align='center'><tr><td align=right>Your Health: </td><td><img src=greenbar.png width={$vars['hpperc']} height=10><img src=redbar.png width={$vars['hpopp']} height=10></td><tr><td align=right>Opponents Health: </td><td><img src=greenbar.png width={$vars2['hpperc']} height=10><img src=redbar.png width={$vars2['hpopp']} height=10></td></tr></table>"; <img src='{$ir['display_pic']}' width='100' height='100' alt='User Display Pic' title='User Display Pic' /> $h->endpage(); ?> Quote
Gaara Ichimaru Posted April 14, 2011 Posted April 14, 2011 i got this error Parse error: syntax error, unexpected '<' in heres the code print "</table>"; print "<table width='50%' align='center'><tr><td align=right>Your Health: </td><td><img src=greenbar.png width={$vars['hpperc']} height=10><img src=redbar.png width={$vars['hpopp']} height=10></td><tr><td align=right>Opponents Health: </td><td><img src=greenbar.png width={$vars2['hpperc']} height=10><img src=redbar.png width={$vars2['hpopp']} height=10></td></tr></table>"; <img src='{$ir['display_pic']}' width='100' height='100' alt='User Display Pic' title='User Display Pic' /> $h->endpage(); ?> Lol okai, Replace all that with print "</table>"; print "<table width='50%' align='center'><tr><td align=right>Your Health: </td><td><img src=greenbar.png width={$vars['hpperc']} height=10><img src=redbar.png width={$vars['hpopp']} height=10></td><tr><td align=right>Opponents Health: </td><td><img src=greenbar.png width={$vars2['hpperc']} height=10><img src=redbar.png width={$vars2['hpopp']} height=10></td></tr></table> <img src='{$ir['display_pic']}' width='100' height='100' alt='User Display Pic' title='User Display Pic' />"; $h->endpage(); ?> Quote
Daron Posted April 14, 2011 Author Posted April 14, 2011 now i have this error Parse error: syntax error, unexpected $end in & i copy & pasted what u had. Quote
Gaara Ichimaru Posted April 14, 2011 Posted April 14, 2011 now i have this error Parse error: syntax error, unexpected $end in & i copy & pasted what u had. It's working for me, This is what I've go exactly and if not then it's something else in your attack.php print "<table width='50%' align='center'><tr><td align=right>Your Health: </td><td><img src=greenbar.png width={$vars['hpperc']} height=10><img src=redbar.png width={$vars['hpopp']} height=10></td><tr><td align=right>Opponents Health: </td><td><img src=greenbar.png width={$vars2['hpperc']} height=10><img src=redbar.png width={$vars2['hpopp']} height=10></td></tr></table> <img src='{$ir['display_pic']}' width='100' height='100' alt='User Display Pic' title='User Display Pic' />"; } Quote
Daron Posted April 14, 2011 Author Posted April 14, 2011 ok i fixed it. it was just missing a } right before $h-> endpage() but the pics are so far over lol. Quote
Gaara Ichimaru Posted April 14, 2011 Posted April 14, 2011 ok i fixed it. it was just missing a } right before $h-> endpage() but the pics are so far over lol. Glad I could be of help :) 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.