Haked
Narys
Kapitonas
Pranešimai: 569
Įstojęs: 2008 Vas. 24 17:02:25
|
www.tracers.gan.lt/0.PNG
Kodėl baltą kaip pataisyti padėkite :(
Nenoriu kurti temos tai va galite panaikinti iš user_info_panel prisijungimą išvis, kad kai narys prsisijungia mato meniu o šiaip nėra to registraicija ir kur rašyti name ir pass:
User_info_panele
<?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("<img src='/atributai/diskusijos.png'>Informacija");
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<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."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();
?>
Koks yra tavo vardas?
Redagavo Haked 2008 Rugp. 25 17:08:45 |
robert
Narys
Tankas
Pranešimai: 1946
Įstojęs: 2006 Gru. 18 16:12:57
|
img nerodo
|
Haked
Narys
Kapitonas
Pranešimai: 569
Įstojęs: 2008 Vas. 24 17:02:25
|
Rodo viską
Koks yra tavo vardas? |
Dandžu
Narys
Ekspertas
Pranešimai: 3265
Įstojęs: 2007 Lie. 23 13:07:47
|
Prisek visą modą.
|
Haked
Narys
Kapitonas
Pranešimai: 569
Įstojęs: 2008 Vas. 24 17:02:25
|
http://phpfusion.lt/infusions/mo...wnload=178 va jis čia
Koks yra tavo vardas? |
kLx
Narys
Generolas
Pranešimai: 897
Įstojęs: 2007 Geg. 6 21:05:29
|
Messages.php failas :
<?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; }
require_once "../../maincore.php";
header('Refresh: 10; URL=messages.php');
echo "
<style type='text/css'>
body {
color: #5B5B5B;
padding: 0px 0px 0px 0px;
font-family: verdana, arial, sans-serif;
font-size: 10px;
}
.shoutboxname {
color:#113355;
}
.shoutbox {
color:#555;
}
.shoutboxdate {
font-size:9px; color:#333; text-align:right;
}
a {
color:#0066CC; text-decoration:none;
}
a:hover {
color:#333333; text-decoration:none;
}
a.side {
color:#0066CC; text-decoration:none;
}
</style>
<div style='position:absolute;left:0px;top:0px;width:100%;'>
";
function replace_url($text)
{
$res = ' ' . $text;
$res = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">[LIEN]</a>", $res);
$res = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">[LIEN]</a>", $res);
$res = substr($res, 1);
return($res);
}
function replace_mail($text)
{
$text = eregi_replace( "(([a-z0-9_]|\-|\.)+@([^[:space:]]*)([[:alnum:]-]))", "<a href=\"mailto:\\1\">[MAIL]</a>", $text);
return($text);
}
function me_message($text)
{
$command = "/me";
$affichage = "";
$text = str_replace($command, $affichage, $text);
return($text);
}
function news_message($text)
{
$command = "/news";
$affichage = "";
$text = str_replace($command, $affichage, $text);
return($text);
}
$result = dbquery("SELECT count(shout_id) FROM ".$db_prefix."shoutbox");
$numrows = dbresult($result, 0);
$result = dbquery(
"SELECT * FROM ".$db_prefix."shoutbox LEFT JOIN ".$db_prefix."users
ON ".$db_prefix."shoutbox.shout_name=".$db_prefix."users.user_id
ORDER BY shout_datestamp DESC LIMIT 0,".$settings['numofshouts']
);
if (dbrows($result) != 0) {
$i = 0;
$n = 0;
while ($data = dbarray($result)) {
if ($n == 0) {
echo "<div >";
$n++;
} else {
echo "<div style='background-color:#EEEEEE'>";
$n--;
}
if (iADMIN && checkrights("S")) {
echo "[<a href='".ADMIN."shoutbox.php".$aidlink."&action=delete&shout_id=".$data['shout_id']."' target='_blank' class='side'>X</a>][<a href='".ADMIN."shoutbox.php".$aidlink."&action=edit&shout_id=".$data['shout_id']."' target='_blank' class='side'>E</a>]";
}
$settings2 = dbarray(dbquery("SELECT * FROM ".$db_prefix."settings"));
$timestamp = $data['shout_datestamp']+($settings2['timeoffset']*3600);
echo " <span class='shoutboxdate'>".strftime("[%d/%m|%H:%M]", $timestamp)."</span><span class='shoutboxname'> ";
if ((substr($data['shout_message'], 0, 3) == "/me") && (($data[user_level] == "103") || ($data[user_level] == "101") || ($data[user_level] == "102"))) {
echo "<span class='shoutbox'><font color='#9966FF'>* ".$data['user_name']." ".me_message(replace_mail(replace_url(parsesmileys($data['shout_message']))))."</font></span><br>\n";
}
else if ((substr($data['shout_message'], 0, 5) == "/news") && (($data[user_level] == "103") || ($data['shout_ip'] == "new_member"))) {
echo "<span class='shoutbox'><font color='#FF0000'><b>#Flash Info#</b></font><br><center><b>".news_message(replace_mail(replace_url(parsesmileys($data['shout_message']))))."</b></center></span><br>\n";
}
else {
if ($data[user_level] == "103") {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' target='_blank' class='side'><font color='#FF0000'>@</font>".$data['user_name']."</a><b>></b>";
}
else if ($data[user_level] == "101") {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' target='_blank' class='side'>".$data['user_name']."</a><b>></b>";
}
else if ($data[user_level] == "102") {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' target='_blank' class='side'><font color='#FF0000'>%</font>".$data['user_name']."</a><b>></b>";
} else {
echo $data['shout_name']."> ";
}
echo "</span> ";
echo " <span class='shoutbox'>".parseubb(replace_mail(replace_url(parsesmileys($data['shout_message']))))."</span><br>\n";
if ($i != $numrows) echo "\n";
echo "</div>";
}
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
echo "</div>";
?>
|
Haked
Narys
Kapitonas
Pranešimai: 569
Įstojęs: 2008 Vas. 24 17:02:25
|
Ačiū lb, o gal galėtume man dar su user_info_panel padėt>?
Koks yra tavo vardas? |
Žmogus
Narys
Viršesnis už Dievą
Pranešimai: 5621
Įstojęs: 2006 Gru. 8 17:12:08
|
if (iMEMBER) {
openside("<img src='/atributai/diskusijos.png'>Informacija");
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<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."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 {
}
closeside();
?>
|
kLx
Narys
Generolas
Pranešimai: 897
Įstojęs: 2007 Geg. 6 21:05:29
|
<?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; }
require_once "../../maincore.php";
header('Refresh: 10; URL=messages.php');
echo "
<style type='text/css'>
body {
color: #5B5B5B;
padding: 0px 0px 0px 0px;
font-family: verdana, arial, sans-serif;
font-size: 10px;
}
.shoutboxname {
color:#113355;
}
.shoutbox {
color:#555;
}
.shoutboxdate {
font-size:9px; color:#333; text-align:right;
}
a {
color:#0066CC; text-decoration:none;
}
a:hover {
color:#333333; text-decoration:none;
}
a.side {
color:#0066CC; text-decoration:none;
}
</style>
<div style='position:absolute;left:0px;top:0px;width:100%;'>
";
function replace_url($text)
{
$res = ' ' . $text;
$res = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">[LIEN]</a>", $res);
$res = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">[LIEN]</a>", $res);
$res = substr($res, 1);
return($res);
}
function replace_mail($text)
{
$text = eregi_replace( "(([a-z0-9_]|\-|\.)+@([^[:space:]]*)([[:alnum:]-]))", "<a href=\"mailto:\\1\">[MAIL]</a>", $text);
return($text);
}
function me_message($text)
{
$command = "/me";
$affichage = "";
$text = str_replace($command, $affichage, $text);
return($text);
}
function news_message($text)
{
$command = "/news";
$affichage = "";
$text = str_replace($command, $affichage, $text);
return($text);
}
$result = dbquery("SELECT count(shout_id) FROM ".$db_prefix."shoutbox");
$numrows = dbresult($result, 0);
$result = dbquery(
"SELECT * FROM ".$db_prefix."shoutbox LEFT JOIN ".$db_prefix."users
ON ".$db_prefix."shoutbox.shout_name=".$db_prefix."users.user_id
ORDER BY shout_datestamp DESC LIMIT 0,".$settings['numofshouts']
);
if (dbrows($result) != 0) {
$i = 0;
$n = 0;
while ($data = dbarray($result)) {
if ($n == 0) {
echo "<div >";
$n++;
} else {
echo "<div >";
$n--;
}
if (iADMIN && checkrights("S")) {
echo "[<a href='".ADMIN."shoutbox.php".$aidlink."&action=delete&shout_id=".$data['shout_id']."' target='_blank' class='side'>X</a>][<a href='".ADMIN."shoutbox.php".$aidlink."&action=edit&shout_id=".$data['shout_id']."' target='_blank' class='side'>E</a>]";
}
$settings2 = dbarray(dbquery("SELECT * FROM ".$db_prefix."settings"));
$timestamp = $data['shout_datestamp']+($settings2['timeoffset']*3600);
echo " <span class='shoutboxdate'>".strftime("[%d/%m|%H:%M]", $timestamp)."</span><span class='shoutboxname'> ";
if ((substr($data['shout_message'], 0, 3) == "/me") && (($data[user_level] == "103") || ($data[user_level] == "101") || ($data[user_level] == "102"))) {
echo "<span class='shoutbox'><font color='#9966FF'>* ".$data['user_name']." ".me_message(replace_mail(replace_url(parsesmileys($data['shout_message']))))."</font></span><br>\n";
}
else if ((substr($data['shout_message'], 0, 5) == "/news") && (($data[user_level] == "103") || ($data['shout_ip'] == "new_member"))) {
echo "<span class='shoutbox'><font color='#FF0000'><b>#Flash Info#</b></font><br><center><b>".news_message(replace_mail(replace_url(parsesmileys($data['shout_message']))))."</b></center></span><br>\n";
}
else {
if ($data[user_level] == "103") {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' target='_blank' class='side'><font color='#FF0000'>@</font>".$data['user_name']."</a><b>></b>";
}
else if ($data[user_level] == "101") {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' target='_blank' class='side'>".$data['user_name']."</a><b>></b>";
}
else if ($data[user_level] == "102") {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' target='_blank' class='side'><font color='#FF0000'>%</font>".$data['user_name']."</a><b>></b>";
} else {
echo $data['shout_name']."> ";
}
echo "</span> ";
echo " <span class='shoutbox'>".parseubb(replace_mail(replace_url(parsesmileys($data['shout_message']))))."</span><br>\n";
if ($i != $numrows) echo "\n";
echo "</div>";
}
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
echo "</div>";
?>
Čia dar savo kodą redaguotą pataisiau ,nes dar radau klaidą . :)
|
Haked
Narys
Kapitonas
Pranešimai: 569
Įstojęs: 2008 Vas. 24 17:02:25
|
User_info panelė bloga kodų prisirašo ir viskas
Susitvarkiau ačiū jums lb
Koks yra tavo vardas?
Redagavo Haked 2008 Rugp. 25 19:08:45 |
Žmogus
Narys
Viršesnis už Dievą
Pranešimai: 5621
Įstojęs: 2006 Gru. 8 17:12:08
|
<?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("<img src='/atributai/diskusijos.png'>Informacija");
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<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."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";
closeside();
}
?>
|
Lite
Narys
Pulkininkas
Pranešimai: 410
Įstojęs: 2008 Rugp. 13 13:08:22
|
style.css cia kur balta rodo ;]
|
NoNy
Narys
Ekspertas
Pranešimai: 2803
Įstojęs: 2008 Vas. 14 13:02:57
|
Ekraną pasitamsink.
http://r.ura.lt - veikia. http://gaminghell.eu - greit.
Reikia pigių grafikos darbų? Rašyk |
Haked
Narys
Kapitonas
Pranešimai: 569
Įstojęs: 2008 Vas. 24 17:02:25
|
Man jau sutvakrė viskas čiki ačiū shadow ir klx
Koks yra tavo vardas? |