Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Temoje balta

Parašė Haked· 2008 Rugp. 25 16:08:45
#1






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();
?>



Redagavo Haked· 2008 Rugp. 25 17:08:45

Parašė robert· 2008 Rugp. 25 17:08:48
#2

img nerodo :|

Parašė Haked· 2008 Rugp. 25 17:08:31
#3

Rodo viską :|

Parašė Dandžu· 2008 Rugp. 25 17:08:27
#4

Prisek visą modą.

Parašė Haked· 2008 Rugp. 25 17:08:24
#5

http://phpfusion.lt/infusions/mo...wnload=178 va jis čia

Parašė kLx· 2008 Rugp. 25 18:08:02
#6

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."&amp;action=delete&amp;shout_id=".$data['shout_id']."' target='_blank' class='side'>X</a>][<a href='".ADMIN."shoutbox.php".$aidlink."&amp;action=edit&amp;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>";

?>



Parašė Haked· 2008 Rugp. 25 18:08:55
#7

Ačiū lb, o gal galėtume man dar su user_info_panel padėt>? :)

Parašė Žmogus· 2008 Rugp. 25 19:08:01
#8

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();
?>



Parašė kLx· 2008 Rugp. 25 19:08:51
#9

<?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."&amp;action=delete&amp;shout_id=".$data['shout_id']."' target='_blank' class='side'>X</a>][<a href='".ADMIN."shoutbox.php".$aidlink."&amp;action=edit&amp;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ą . :)

Parašė Haked· 2008 Rugp. 25 19:08:18
#10

User_info panelė bloga kodų prisirašo ir viskas :(
Susitvarkiau ačiū jums lb ;)

Redagavo Haked· 2008 Rugp. 25 19:08:45

Parašė Žmogus· 2008 Rugp. 25 19:08:23
#11

<?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();
}
?>



Parašė Lite· 2008 Rugp. 25 21:08:43
#12

style.css cia kur balta rodo ;]

Parašė NoNy· 2008 Rugp. 25 21:08:49
#13

Ekraną pasitamsink.

Parašė Haked· 2008 Rugp. 26 04:08:46
#14

Man jau sutvakrė viskas čiki ačiū shadow ir klx ;)