alxmarcond Posted April 10, 2009 Share Posted April 10, 2009 okay, so I'm working on this skin for SMF forum softwares and i would like to get the new private messages to turn out something like this 1 message awaits you. 0 messages await you. 2 messages await you. and i have it set up correctly where it changes the message to messages if the value of unread_messages is not equal to zero but the problem is the word await or awaits. Right now it is saying: 1 message await you. 2 messages await you. obviously this is grammatically incorrect. so the obvious way to do this is to just append the word awaits after the messages thing but everytime i do this i get this error: Parse error: syntax error, unexpected ',' in ..... its on the right line so i know its not something else plus when i change it back to its original state it works fine. Here is what works at the moment echo $txt[''], ' <a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], $txt[''], ' ', $context['user']['unread_messages'] != 1 ? $txt['msg_alert_messages'] : $txt['message_lowercase'], '</a>', ' await you.', '<br>'; and here is my attempt: echo $txt[''], ' <a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], $txt[''], ' ', $context['user']['unread_messages'] != 1 ? $txt['msg_alert_messages'], 'await' : $txt['message_lowercase'], 'awaits', '</a>', ' you.', '<br>'; thanks in advance for any help Link to comment https://forums.phpfreaks.com/topic/153429-grammar-with-new-messages/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.