MyBB Community Forums

Full Version: i can not Post a new Thread !!?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
i have a problem in my form
when i want to post new thread i can see the Post a new Thread button and
show my these error in top
Quote:Parse error: syntax error, unexpected '-', expecting '}' in /home/kurdmax/public_html/mako/forumdisplay.php(1142) : eval()'d code on line 150

my form :


and for test :
Have you tried re-uploading forumdisplay.php? This the file where the error is, so it only makes sense...

What were you doing before you got this error? Have you installed any plugins recently?...
i re-uploding forumdisplay.php and i have net installed any pluging ...
If you're using MyBB 1.4.4, you have got a problem in your forumdisplay_threadlist template. Did you change it recently? I suggest you post the content of it here because it seems like you missed a } for one of the variables.
yes i using MyBB 1.4.4 .
and i did not change it.
and i re-uploding forumdisplay.php ...... but until know i have same problem .
and for } where i mast check it ?

those is a file please if u can check it
DennisTT
can u attach that faile for me and i re-uploding it ??
can any buddy solve my problem ???
?????
If DennisTT is right, this should work (haven't looked through the files you've uploaded):

Go to the Admin Panel. Click on "Templates & Style" and in the left navigation click on "Templates >> Expand Templates (for the default one)" then click on "Forum Display Templates" and fined "forumdisplay_threadlist", click on "Options" which is located to the right of the link, and click "Edit". Remove all the code that's within the textarea box and replace it with this:

<div class="float_left">
	{$multipage}
</div>
<div class="float_right">
	{$newthread}
</div>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
	<tr>
		<td class="thead" colspan="{$colspan}">
			<div style="float: right;">
				<span class="smalltext"><strong><a href="misc.php?action=markread&amp;fid={$fid}">{$lang->markforum_read}</a> | <a href="usercp2.php?action={$add_remove_subscription}subscription&amp;type=forum&amp;fid={$fid}">{$add_remove_subscription_text}</a>{$clearstoredpass}</strong></span>
			</div>
			<div>
				<strong>{$foruminfo['name']}</strong>
			</div>
		</td>
	</tr>
	<tr>
		<td class="tcat" colspan="3" width="66%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} / <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span></td>
		<td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc">{$lang->replies}</a> {$orderarrow['replies']}</strong></span></td>
		<td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=views&amp;order=desc">{$lang->views}</a> {$orderarrow['views']}</strong></span></td>
		{$ratingcol}
		<td class="tcat" align="right" width="20%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong></span></td>
		{$inlinemodcol}
	</tr>
	{$announcementlist}
	{$threads}
	<tr>
		<td class="tfoot" align="right" colspan="{$colspan}">
			<form action="forumdisplay.php" method="get">
				<input type="hidden" name="fid" value="{$fid}" />
				<select name="sortby">
					<option value="subject" {$sortsel['subject']}>{$lang->sort_by_subject}</option>
					<option value="lastpost" {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option>
					<option value="starter" {$sortsel['starter']}>{$lang->sort_by_starter}</option>
					<option value="started" {$sortsel['started']}>{$lang->sort_by_started}</option>
					{$ratingsort}
					<option value="replies" {$sortsel['replies']}>{$lang->sort_by_replies}</option>
					<option value="views" {$sortsel['views']}>{$lang->sort_by_views}</option>
				</select>
				<select name="order">
					<option value="asc" {$ordersel['asc']}>{$lang->sort_order_asc}</option>
					<option value="desc" {$ordersel['desc']}>{$lang->sort_order_desc}</option>
				</select>
				<select name="datecut">
					<option value="1" {$datecutsel['1']}>{$lang->datelimit_1day}</option>
					<option value="5" {$datecutsel['5']}>{$lang->datelimit_5days}</option>
					<option value="10" {$datecutsel['10']}>{$lang->datelimit_10days}</option>
					<option value="20" {$datecutsel['20']}>{$lang->datelimit_20days}</option>
					<option value="50" {$datecutsel['50']}>{$lang->datelimit_50days}</option>
					<option value="75" {$datecutsel['75']}>{$lang->datelimit_75days}</option>
					<option value="100" {$datecutsel['100']}>{$lang->datelimit_100days}</option>
					<option value="365" {$datecutsel['365']}>{$lang->datelimit_lastyear}</option>
					<option value="9999" {$datecutsel['9999']}>{$lang->datelimit_beginning}</option>
				</select>
				{$gobutton}
			</form>
		</td>
	</tr>
</table>
<div class="float_left">
	{$multipage}
</div>
<br style="clear: both" />
{$inline_edit_js}

Btw, we'll get to your support thread as soon as we can, so try to save a pm. Wink
Rcpalace i do what u tell me but untill know i have these error Sad

Quote:Parse error: syntax error, unexpected '-', expecting '}' in /home/kurdmax/public_html/mako/forumdisplay.php(1142) : eval()'d code on line 150

and i test with default Temple it is OK but in my style afresh sky i have problem ?
any answer ?? plz i what for that ?
I see. As soon as I can get to my testing machine, I'll download Afresh Sky and I'll take a look at the forumdisplay templates. Its just a simple syntax error so it shouldn't take too much time.
Best Regards.
thanks Rcpalace for helping and i well wheat for u answer ....

and if any body can help my pleas answer me ..
i solved my problem thanks for helping
how i solved ? i upload new afresh sky and it is OK
Oh great. Saved me the time, I was just about to install the theme to check out the problem. Glad you got it fixed. Smile
Pages: 1 2