Parašė Jaunelis· 2009 Lie. 6 09:07:55
#73
Tai va kolegos kas mokate gal galite padėti ir pritaikyti šį kodą kad veiktų ant v7 nes man meta tokį error:
Notice: Undefined variable: userdata in /home/darbai/..../themes/..../narys.php on line 3
Table 'studijal3.messages' doesn't exist
Notice: Undefined variaašheme_width in/home/darbai/..../themes/..../narys.php on line 4
Notice: Undefined variaašheme_width in /home/darbai/..../themes/..../narys.php on line 5
Notice: Undefined variable: locale in /home/darbai/..../themes/..../narys.php on line 8
| Žinutės [naujų:
Notice: Undefined variable: aidlink in /home/darbai/..../themes/..../narys.php on line 11
| Administracija | Atsijungti
O kodas yra toks:
echo "<table cellspacing='0' cellpadding='0' width='936'><tr><td class='Linija'></td></tr></table>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='$theme_width' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td class='sub-header'><table width='$theme_width' border='0' cellpadding='0' cellspacing='0' style='background-color: #000000;'><tr>";
if (iMEMBER) {
echo"<td height='33' background='".THEME."images/linija.jpg' class='sub-header'><center>
<a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a> |
<a href='".BASEDIR."messages.php' class='side'>Žinutės [naujų: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></a>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo " | <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a>";
}
echo" | <a href='".BASEDIR."setuser.php?logout=yes' target=''>Atsijungti</a></td>";
} else {
echo" <td class='sub-header'><center>
<td align='center' background='".THEME."images/linija.jpg' class='sub-header'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' value='vardas' onfocus=\"if(this.value=='vardas'){this.value='';}\" onblur=\"if(this.value==''){this.value='vardas';}\" class='textbox-login'>
<input type='password' name='user_pass' value='slaptažodis' onfocus=\"if(this.value=='slaptažodis'){this.value='';}\" onblur=\"if(this.value==''){this.value='slaptažodis';}\" class='textbox-login'>
<input type='submit' name='login' value='' class='ok'> <a href=".BASEDIR."register.php>Registracija</a> | <a href=".BASEDIR."lostpassword.php>Priminti</a>
</form>
</td>
</tr>\n";
}
echo "</td></tr></table></td></tr></table>";
tikrai dekingas busiu kas padės.
P.S. postas šis redaguotas tad nekreipkite i shadowv parašytą postą :D
Redagavo Jaunelis· 2009 Lie. 25 12:07:49