2008-01-04, 03:04 PM
2008-01-04, 04:15 PM
[attachment=8368]
MrDoom Wrote:Erm, was that happening before?Original file was above...no problem, but after changing the logoutkey line, it gave me that error.
2008-01-04, 04:41 PM
Please tell me you didn't use Notepad to edit it.
Also, what the hell? (Line 131)
If you're using MyBB 1.2.10, it should be:
Also, you don't have to use <?php and ?> JUST for PHP variables, you can just do this:
Also, what the hell? (Line 131)
<a href="<?php echo $rel; ?>member.php?action=logout&uid=<?php echo $mybb->user["uid"]; ?>&sid=<?php echo $session->sid; ?>
If you're using MyBB 1.2.10, it should be:
<a href="<?php echo $rel; ?>member.php?action=logout&logoutkey=<?php echo $mybb->user['logoutkey']; ?>
Also, you don't have to use <?php and ?> JUST for PHP variables, you can just do this:
<?php echo("<a href=\"{$rel}member.php?action=logout&logoutkey={$mybb->user['logoutkey']}\" target=\"content\" onclick=\"return submitted();\">"); ?>
2008-01-14, 12:13 AM
okay i am getting the error
Parse error: syntax error, unexpected '{' in /mounted-storage/home43a/sub006/sc31956-OAMT/www/index.php on line 58
and the lines are
Parse error: syntax error, unexpected '{' in /mounted-storage/home43a/sub006/sc31956-OAMT/www/index.php on line 58
and the lines are
echo("<a href=\"{$forumpath}showthread.php?tid={$row['tid']}\">{$row['subject']}</a> -
Posted: {$date} {$time} by <a href=\"{$forumpath}member.php?action=profile&uid={$row2['uid']}\">{$row2['username']}</a><br />");
echo("{$message}<br /><br />");
echo("Replies (<a href=\"{$forumpath}showthread.php?tid={$row['tid']}\">{$row['replies']}</a>)<br /><hr />");
2008-01-14, 09:17 AM
Looks ok to me. Which of those lines is 58?
2008-01-14, 10:36 AM
echo("<a href=\"{$forumpath}showthread.php?tid={$row['tid']}\">{$row['subject']}</a> -
that's that line i know it looks okay but its giving me this error would it be my host?
that's that line i know it looks okay but its giving me this error would it be my host?
2008-01-14, 10:50 AM
I don't know why that would happen. It looks fine to me.
What else is above that line?
What else is above that line?
2008-01-14, 11:16 AM
i have PMed you
2008-01-14, 11:56 AM
What you posted here for line 58, is not what you sent in your PM.
This is your PM's code:
It should be:
This is your PM's code:
echo("<a href="{$forumpath}showthread.php?tid={$row['tid']}">{$row['subject']}</a> -
Posted: {$date} {$time} by <a href="{$forumpath}member.php?action=profile&uid={$row2['uid']}">{$row2['username']}</a><br />");
echo("{$message}<br /><br />");
echo("Replies (<a href="{$forumpath}showthread.php?tid={$row['tid']}">{$row['replies']}</a>)<br /><hr />");
It should be:
echo("<a href=\"{$forumpath}showthread.php?tid={$row['tid']}\">{$row['subject']}</a> -
Posted: {$date} {$time} by <a href=\"{$forumpath}member.php?action=profile&uid={$row2['uid']}\">{$row2['username']}</a><br />");
echo("{$message}<br /><br />");
echo("Replies (<a href=\"{$forumpath}showthread.php?tid={$row['tid']}\">{$row['replies']}</a>)<br /><hr />");
Note the escaped " inside the echo's.2008-01-14, 10:14 PM
still gave me that error but my host fixed it for me by doing this
echo "<a href='".$forumpath."showthread.php?tid=".$row['tid']."'>".$row['subject']."</a>";
echo " - Posted: ".$date." ".$time." by <a href='".$forumpath."member.php?action=profile&uid=".$row2['uid']."'>".$row2['username']."</a><br />";
echo("{$message}<br /><br />");
echo"Replies (<a href='".$forumpath."showthread.php?tid=".$row['tid']."'>".$row['replies']."</a>)<br /><hr />";