Parašė robert· 2008 Rugp. 14 20:08:33
#1
Sveiki, koduoju savo pirmą temą, ir norėjau padaryti prisijungimą headeryje bet štai kokįgaunu error'ą
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/user/kuriama/themes/kuriama/header.php on line 28
Štai
header.php failas :
<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "
<table width='$theme_width' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."images/header.jpg' height='200' style='margin:11px; background-repeat:no-repeat;'>
<tr>
<td width='249' style='padding-right: 0px; padding-left: 610px; padding-bottom: 15px; padding-top:10px;' valign='middle'>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='235' border='0' cellspacing='2' cellpadding='2'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px solid #999999'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
}
echo "</td>
<td valign='top' style='color:#93ba15;'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilį</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Žinutės [naujų: <b><span style='color:#990000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br><br>
} else {
echo "<table width='249' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' class='ip'>Vardas: </td>
<td> <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right' class='ip'>".$locale['062'].": </td>
<td> <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href=".BASEDIR."register.php>Registracija</a> / <a href=".BASEDIR."lostpassword.php>Slaptažodis</a>\n";
}
echo"</table>\n";
}
echo "</td>
</tr>
</table>\n";
?>
Štai būtent ta
28 eilutė :
echo "<table width='249' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
Gal yra žmonių kurie galėtų man padėti :)
P.S. Prisijungimą headeryje dariau pagal šitą straipsnį
https://webdnd.com/readarticle.p...icle_id=92
Parašė Pongis· 2008 Rugp. 14 20:08:55
#2
<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "
<table width='$theme_width' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."images/header.jpg' height='200' style='margin:11px; background-repeat:no-repeat;'>
<tr>
<td width='249' style='padding-right: 0px; padding-left: 610px; padding-bottom: 15px; padding-top:10px;' valign='middle'>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='235' border='0' cellspacing='2' cellpadding='2'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px solid #999999'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
}
echo "</td>
<td valign='top' style='color:#93ba15;'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilį</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Žinutės [naujų: <b><span style='color:#990000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br><br>";
} else {
echo "<table width='249' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' class='ip'>Vardas: </td>
<td> <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right' class='ip'>".$locale['062'].": </td>
<td> <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href=".BASEDIR."register.php>Registracija</a> / <a href=".BASEDIR."lostpassword.php>Slaptažodis</a>\n";
}
echo"</table>\n";
}
echo "</td>
</tr>
</table>\n";
?>
Parašė robert· 2008 Rugp. 14 22:08:57
#4
Dar vienas klausima kaip padaryti , kad kai žmogus prisijungia virš "Redaguoti proflį rašytų " Labas,
nick" ?|
Parašė Žmogus· 2008 Rugp. 14 22:08:04
#5
Labas, ".$userdata['user_name']."
gal veiks