Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Help
Parašė Soo-2· 2008 Sau. 20 17:01:55
#1
sveiki.. cia yra prisijungimo kodas.. man reikia ji iterpti po headeriu ir padaryti taip kad kai prisijungus tas prisijungimo laukelis esantis po headeriu dingtu..
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."
<input type='text' name='user_name' class='textbox' style='width:100px'>
".$locale['062']."
<input type='password' name='user_pass' class='textbox' style='width:100px'>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "".$locale['065']."\n";
}
echo $locale['066']."
</div>\n";
}
O čia iš theme.php išimtas headerio kodas:
function render_header($header_content) {
global $theme_width,$settings;
echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
?>
<html>
<embed src="http://www.siuskis.failai.lt/themes/dizainas/images/logo.png" width="788" height="197" wmode="transparent" type="application/x-shockwave-flash">
</html>
<?
echo "<td height=0 border=0 align=center>
<div style=\"padding-bottom: 0px; padding-left: 0px; padding-right: 0px;\">";
echo"<img src='".THEME."images/1head.png' border='0'></a>
<td height=0 border=0 align=center>
<div style=\"padding-bottom: 0px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='news.php'><img src='".THEME."images/pagrindinis.png' border='0'></a>
<td height=0 border=0 align=center>
<div style=\"padding-bottom: 0px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='members.php'><img src='".THEME."images/info.png' border='0'></a>
<td height=0 border=0 align=center>
<div style=\"padding-bottom: 0px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='reklama.php'><img src='".THEME."images/online.png' border='0'></a>
<td height=0 border=0 align=center>
<div style=\"padding-bottom: 0px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='contact.php'><img src='".THEME."images/admin.png' border='0'></a>
<td height=0 border=0 align=center>
<div style=\"padding-bottom: 0px; padding-left: 0px; padding-right: 0px;\">";
echo"<img src='".THEME."images/2head.png' border='0'></a>
";
//Login Code End
echo"<script type='text/javascript'>LKT_init();</script>";
echo"</td></tr></table>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='2' bgcolor='#F9F9F9' cellspacing='0' border='0'>";
echo "<img src='".THEME."images/pixel.gif' width='100%' height='4'>";
}
Parašė Soo-2· 2008 Sau. 20 18:01:21
#2
Arba nors theme pasakykit kurioje taip jau butu padaryta...
Parašė Enzo· 2008 Sau. 20 18:01:33
#3
gal po du postus nerasinek. Tai tipo dek if iGUEST ir vsio
Parašė Soo-2· 2008 Sau. 20 18:01:27
#4
jus nors man tik idėkit.. labai dėkingas buciau
Parašė Enzo· 2008 Sau. 20 18:01:02
#5
if (iGUEST) {
echo" <td height='35' background='".THEME."images/linija.jpg' class='sub-header' style='padding-top:1px;'><center>
<form name='loginform' method='post' action='".FUSION_SELF."'>
Vartotojas <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
Slaptažodis <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
<input type='submit' name='login' value='Prisijungti' class='button'>";
if ($settings['enable_registration']) {
echo " <a href=".BASEDIR."register.php>Registracija</a> | <a href=".BASEDIR."lostpassword.php>Priminti</a><center><br>\n";
}
} else
Pabandyk
Redagavo Enzo· 2008 Sau. 20 18:01:06
Parašė Soo-2· 2008 Sau. 20 18:01:07
#6
kažkaip tai iterpiau error nemeta bet rodo va taip:http://www.ipix.lt/out.php/i341074_125.JPG
Redagavo Soo-2· 2008 Sau. 20 19:01:34
Parašė Soo-2· 2008 Sau. 20 19:01:12
#7
sorry už flood bet labai reik paglbos :(:(
Parašė MaFetas· 2008 Sau. 20 19:01:21
#8
Siūlau apsižiūrėti čia, gal tau kas tiks:
http://www.grafa.biz/forum/temat...
O tema perkeliu i
Bendri PHP-F klausimai nes nelabai tinka į šį forumą :)