Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: +Members.php (Atnaujinta)

Parašė WantedBoy· 2008 Lap. 30 14:11:09
#1

Iš neturėjimo ką veikti patobulinau truputi members.php failą (Narių sąrašą). Manau gal kamnors pravers. Rodo: Avatarą, Nick'ą, Gyvenamąją vietą. Galite patarti ką dar įdėti, kad gražiau atrodytų ir išsamiau :)

Atnaujinta: Įdėta registracijos data ir skype, nauja išvaizda, sufixinta. Skype tai AIM laukelis registracijoje. Skype image įdėkite į /images/ direktoriją.




Kaip atrodo : http://img241.imageshack.us/img2...787so4.png



<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 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
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."members-profile.php";
$locale['u048'] = "Ne&#382;inoma";


opentable($locale['400']);
if (iMEMBER) {
   if (!isset($sortby) || !preg_match("/^[0-9A-Z]$/", $sortby)) $sortby = "all";
   $orderby = ($sortby == "all" ? "" : " WHERE user_name LIKE '".stripinput($sortby)."%'");
   $result = dbquery("SELECT * FROM ".$db_prefix."users".$orderby."");
   $rows = dbrows($result);
   if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
   if ($rows != 0) {
      $i = 0;
      echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
<tr>
<th class='tbl2' width='110'><b>Vartotojas</b></th>
<th class='tbl2' width='30%'><b>Gyvenamoji vieta</b></th>
<th align='center' width='30%' class='tbl2' style='white-space:nowrap'><b>U&#382;siregistravo</b></th>
</tr>\n";
      $result = dbquery("SELECT * FROM ".$db_prefix."users".$orderby." ORDER BY user_level DESC, user_name LIMIT $rowstart,20");
      while ($data = dbarray($result)) {
         $cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); $i++;
echo "<tr>\n<td class='$cell_color' width='110'>\n<center><img src='".IMAGES.($data['user_avatar'] ? "avatars/".$data['user_avatar'] : "imagenotfound.jpg")."' width='50' height='50' alt=''></center></td>\n";




         echo "<td rowspan='2' align='center' width='1%' class='$cell_color' style='white-space:nowrap'> ".($data['user_location'] ? $data['user_location'] : $locale['u048'])."</td>\n";
         echo "<td rowspan='2' align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".showdate("shortdate", $data['user_joined'])."</td>\n</tr>";
        echo "<td class='$cell_color' width='110'>\n<a href='profile.php?lookup=".$data['user_id']."'></a><center>".$data['user_name']." <a href='skype:".($data['user_aim'] ? $data['user_aim'] : $locale['u048'])."?chat'><img src='/images/skype_ico.jpg' style='border: none;' width='14' height='14' align='right'></center></a></td>\n";
      }
      echo "</table>\n";
   } else {
      echo "<center><br>\n".$locale['403']."$sortby<br><br>\n</center>\n";
   }
   $search = array(
      "A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R",
      "S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"
   );
   echo "<hr>\n<table align='center' cellpadding='0' cellspacing='1' class='tbl-border'>\n<tr>\n";
   echo "<td rowspan='2' class='tbl2'><a href='".FUSION_SELF."?sortby=all'>".$locale['404']."</a></td>";
   for ($i=0;$i < 36!="";$i++) {
      echo "<td align='center' class='tbl1'><div class='small'><a href='".FUSION_SELF."?sortby=".$search[$i]."'>".$search[$i]."</a></div></td>";
      echo ($i==17 ? "<td rowspan='2' class='tbl2'><a href='".FUSION_SELF."?sortby=all'>".$locale['404']."</a></td>\n</tr>\n<tr>\n" : "\n");
   }
   echo "</tr>\n</table>\n";
} else {
   echo "<center><br>\n".$locale['003']."<br><br>\n</center>\n";
}
closetable();
if ($rows > 20) echo "<div align='center' style='margin-top:5px;'>".makePageNav($rowstart,20,$rows,3,FUSION_SELF."?sortby=$sortby&amp;")."\n</div>\n";

require_once "side_right.php";
require_once "footer.php";
?>



Redagavo WantedBoy· 2008 Lap. 30 18:11:04