Code error
Posted: Thu Feb 19, 2009 8:03 pm
Hi everybody
I'm adm of one forum .. but I have a question... I'm trying to put two images in terms of a code.. but have one condition to show this images .. and that gives me this error: syntax error, unexpected ','
Here is the code:
What I'm doing wrong?
I thank anyone who can help me
I'm adm of one forum .. but I have a question... I'm trying to put two images in terms of a code.. but have one condition to show this images .. and that gives me this error: syntax error, unexpected ','
Here is the code:
Code: Select all
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<a href="', $scripturl, '?action=pm"><font color="#FFFFFF">',$context['user']['unread_messages'] == 0 ? '<img src="http://i659.photobucket.com/albums/uu314/marcusroots/Topic%20Organizer%20DM/Correio.gif">', $context['user']['unread_messages'] > 0 ? '<img src="http://img403.imageshack.us/img403/5578/correiona9.gif">''</font></a>';What I'm doing wrong?
I thank anyone who can help me