FoDD
Narys
Pulkininkas
Pranešimai: 359
Įstojęs: 2008 Lap. 1 17:11:32
Man reikia, kad avataro dešinėje rodytų tuos Nustatymai, Pranešimai ir pan. O man dabar rodo po avataru.
<?php
/*---------------------------------------------------+
| PHP -Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($userdata['user_avatar'] != "" && file_exists(IMAGES."avatars/".$userdata['user_avatar'])) {
$avataras = "<a href='".BASEDIR."profilie.php?lookup=".$userdata['user_id']."'><img src='".IMAGES."avatars/".$userdata['user_avatar']."'' border='0'></a>";
} else {
$avataras = "<a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'><img src='".THEME."images/noav.gif''' border='0'></a>";
}
echo $avataras."<br><br><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</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'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
openside($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<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'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
closeside();
?>
suomis
Narys
Generolas
Pranešimai: 1167
Įstojęs: 2005 Gru. 22 00:12:19
<table>
<tr>
<td> -Row 1, Cell 1- </td>
<td> -Row 1, Cell 2- </td>
</tr>
</table>PJAUNAT GRYBĄ BARAVYKĄ - MAFIJOZAI!!!
FoDD
Narys
Pulkininkas
Pranešimai: 359
Įstojęs: 2008 Lap. 1 17:11:32
O galėtum gal kodą perrašyti? Nes nemoku pats. Nežinau kur tuos rows'us perrašinėti..
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
Jei pas tave plati panele tai daryk taip
<?php
/*---------------------------------------------------+
| PHP -Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($userdata['user_avatar'] != "" && file_exists(IMAGES."avatars/".$userdata['user_avatar'])) {
$avataras = "<a href='".BASEDIR."profilie.php?lookup=".$userdata['user_id']."'><img align='left' src='".IMAGES."avatars/".$userdata['user_avatar']."'' border='0'></a>";
} else {
$avataras = "<a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'><img align='left' src='".THEME."images/noav.gif''' border='0'></a>";
}
echo $avataras."<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</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'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
openside($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<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'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
closeside();
?>
FoDD
Narys
Pulkininkas
Pranešimai: 359
Įstojęs: 2008 Lap. 1 17:11:32
Niekas nepasikeitė..
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
Man paciam pasikeicia, tik truksta vietos.
FoDD
Narys
Pulkininkas
Pranešimai: 359
Įstojęs: 2008 Lap. 1 17:11:32
Bet ta ijei trūktų vietos tai persikeltų bet žodžiai netilptų.. o ką tu pakeitei ten tam kode kur parašei?
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
nutryniau br tagus ir align left img padariau.
FoDD
Narys
Pulkininkas
Pranešimai: 359
Įstojęs: 2008 Lap. 1 17:11:32
Manau čia kažkaip reiktų su <table> ir <td>, bet pats nemoku ir nežinau kur ką dėti..
FoDD
Narys
Pulkininkas
Pranešimai: 359
Įstojęs: 2008 Lap. 1 17:11:32
Nu phpfusionink'ai padėkit
sniuff
Narys
Antras po Dievo
Pranešimai: 4491
Įstojęs: 2007 Geg. 14 16:05:52
<?php
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($userdata['user_avatar'] != "" && file_exists(IMAGES."avatars/".$userdata['user_avatar'])) {
$avataras = "<a href='".BASEDIR."profilie.php?lookup=".$userdata['user_id']."'><img src='".IMAGES."avatars/".$userdata['user_avatar']."'' border='0'></a>";
} else {
$avataras = "<a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'><img src='".THEME."images/noav.gif''' border='0'></a>";
}
echo "<table><tr><td>";
echo "<table align='left'><tr align='left'><td align='left'>$avataras</td></tr></table>";
echo "<table align='right'>";
echo "
<tr align='right'><td align='right'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a></td></tr>
<tr align='right'><td align='right'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a></td></tr>
<tr align='right'><td align='right'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a></td></tr>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<tr align='right'><td align='right'><img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a></td></tr>";
}
echo "<tr align='right'><td align='right'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a></td></tr>";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
echo "</tr></td></table>";
} else {
openside($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<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'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
closeside();
?>
Bandykhttp://androider.info/
FoDD
Narys
Pulkininkas
Pranešimai: 359
Įstojęs: 2008 Lap. 1 17:11:32
Man dabar tie visi Nustatymai ir pan gavosi dešinėje bet jei ir lygiuojasi nuo dešinės. O galėtum padaryti, kad lygiutųsi nuo kairės?
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
<?php
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($userdata['user_avatar'] != "" && file_exists(IMAGES."avatars/".$userdata['user_avatar'])) {
$avataras = "<a href='".BASEDIR."profilie.php?lookup=".$userdata['user_id']."'><img src='".IMAGES."avatars/".$userdata['user_avatar']."'' border='0'></a>";
} else {
$avataras = "<a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'><img src='".THEME."images/noav.gif''' border='0'></a>";
}
echo "<table><tr><td>";
echo "<table align='left'><tr align='left'><td align='left'>$avataras</td></tr></table>";
echo "<table align='left'>";
echo "
<tr align='left'><td align='left''><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a></td></tr>
<tr align='left'><td align='left''><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a></td></tr>
<tr align='left'><td align='left''><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a></td></tr>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<tr align='left'><td align='left''><img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a></td></tr>";
}
echo "<tr align='left''><td align='left''><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a></td></tr>";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
echo "</tr></td></table>";
} else {
openside($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<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'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
closeside();
?>
VA. ;)
FoDD
Narys
Pulkininkas
Pranešimai: 359
Įstojęs: 2008 Lap. 1 17:11:32
Aha ir pats jau tiek sumasčiau bet vistiek ačiū.
Peršokti į forumą:
Nebeegzistuojančios svetainės
Žaliems
Bendri PHP-F klausimai
WordPress
Kiti PHP, HTML, MySQL klausimai
Expert PHP, MySQL klausimai
Kitos TVS
C#, Python, Java, JS, C++ klausimai
Naujų modų pristatymai
Mods, Panels & Infusions
Themes
Dalinuosi, dovanoju!
Jūsų saitai
Klausimai apie domenus ir hostingus
VPS/DS serverių konfigūravimas ir valdymas
Viskas apie skaitliukus, top'us ir lankomumą
Dizaino konkursai
Parduodu - perku dizainą, banerį
Parduodu - perku - keičiuosi reklama
Parduodu - perku domeną, tinklapį
Siūlau - ieškau hostingo/VPS serverio
Parduodu - perku skriptą, modifikaciją, tvs
Socialiniai tinklai - Facebook ir kiti
Legalus verslas, teisiniai klausimai
Visa kita kas susiję su darbu ir pinigais
LTStartups.com - Lietuvos startuolių bendruomenė
Off-Topic diskusijos
IT naujienos
Portalo informacija
Narių pasiūlymai
Geležis ir programinė įranga
Grafika
Out Of Place
Su e-verslu nesusijęs darbas ir prekyba
Dalinuosi, dovanoju!