MyBB Community Forums

Full Version: Posting Parse Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am kind of managing anything code related to a forum that my client has up and running while I complete coding whats left of a cms he commissioned me to do.

I have no experience with MyBB and have looked through the code attempting to spot the error. As far as I know the only code that has been changed recently was the footer template.

Now every time I go to a post made after a specific time last night, or early this morning, they all have the same parse error above them:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/********/public_html/forum/inc/functions_post.php(281) : eval()'d code on line 2
Screenshot: http://i47.tinypic.com/11jra11.png

I am not quite sure what to do about this, please help.
You've got an error in your postbit_online template, post the contents of it here and we'll see what's wrong.
<a href="online.php" title="{$lang->postbit_status_online}"><img src="{$theme['imgdir']}/buddy_online.gif" border="0" alt="{$lang->postbit_status_online}" /></a>
Do you have more than one template set?? That looks OK to me.
This is the one from my theme:
<a href="online.php" title="{$lang->postbit_status_online}"><img src="($theme['imgdir']}/buddy_online.gif" border="0" alt="{$lang->postbit_status_online}" /></a>

edit: they appear to be exactly the same.. :\
That's the one with the error

($theme['imgdir']}

should be

{$theme['imgdir']}

Use this:

<a href="online.php" title="{$lang->postbit_status_online}"><img src="{$theme['imgdir']}/buddy_online.gif" border="0" alt="{$lang->postbit_status_online}" /></a>
(2010-06-12, 10:43 PM)MattRogowski Wrote: [ -> ]Use this:
<a href="online.php" title="{$lang->postbit_status_online}"><img src="{$theme['imgdir']}/buddy_online.gif" border="0" alt="{$lang->postbit_status_online}" /></a>

Working perfect. Thanks. (: