Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Vidutinis įvertinimas

Parašė DuRaCeLL· 2008 Vas. 29 23:02:31
#4

Nesuprantu lyg ir įdedu, bet įvertinimą rodo tik kai nueinu į tam tikro žmogaus profilį. ir aš nerandu to:
openside($userdata['user_name']);




<?php
if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
       include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
       include INFUSIONS."user_info_panel/locale/English.php";
}


if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside($locale['WWOLD_001']." <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>" ."<span style='color:#".$userdata['user_color']."'>".$userdata['user_prefix'].$userdata['user_name'].'</span></a>');
$sk = 0;
   $result = dbquery("SELECT * FROM ".$db_prefix."user_ratings WHERE rate_subject = '".$userdata['user_id']."'");
   if (dbrows($result)) {
      while ($data = dbarray($result)) $sk = $sk+$data['rate_opt'];
   }
   $vert = (dbrows($result) > 0 ? round($sk/dbrows($result),2) : "Nėra");
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
   if ($msg_count > "0")
   {   
   echo "<b><a href='".BASEDIR."messages.php?folder=inbox' class='side'><center><img border='0'  src='".BASEDIR."infusions/user_info_panel/images/newpm.gif'></a></b></center><br>\n";

   echo"<center><b>".$userdata['user_name']."</b>, ".$locale['on129']."<br>[<b>";
   echo"<a href='".BASEDIR."messages.php?folder=inbox' class='side'>";
   //echo dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_folder='0'");
   echo "".sprintf($locale['on132'], $msg_count).($msg_count == 1 ? $locale['on134'] : $locale['on135'])."</a></b>] ".$locale['on130']."";


   // Get folder size restrictions (room for future option to restrict number of pm's for a specific user)
   $pw_user = $userdata['user_id'];
   $limit = dbarray(dbquery("SELECT * FROM ".$db_prefix."messages_options WHERE user_id='0'"));
   $limit_inbox = $limit['pm_inbox'];

   // Set display of top bar
   $how = dbquery("SELECT count(message_to) FROM ".$db_prefix."messages WHERE message_to='$pw_user' AND message_folder='0'");
   if ($limit_inbox != "0") { $inbox_display = " <span class='small'>".$locale['on133']." [<b>".dbresult($how, 0)." / ".$limit_inbox."</b>]</span>"; } else { $inbox_display = " (".$cnt_inbox.")"; }
   echo " <b><a href='".BASEDIR."messages.php?folder=inbox'>".$locale['on131']."</a></b><br>".$locale['on136']." <b> ".$inbox_display."</b></center>";

   } else {
      
      echo "<center>".$locale['WWOLD_701']." <span id=\"digitalclock\"></span></center>";
      echo "<script type='text/javascript'>
      function calctime()
      {
      var currenttime = new Date();
      var hours = currenttime.getHours();
      var minutes = currenttime.getMinutes();
      var seconds = currenttime.getSeconds();
      if (hours == 0)
      { hours = 12; }
      if (hours < 10)
      { hours = \"0\" + hours; }
      if (minutes < 10)
      { minutes = \"0\" + minutes; }
      if (seconds < 10)
      { seconds = \"0\" + seconds; }
      var clocklocation = document.getElementById('digitalclock');
      clocklocation.innerHTML = hours + \":\" + minutes + \":\" + seconds;
      setTimeout(\"calctime()\", 1000);
      }
      calctime();
      </script>
 ";

   }

genshadow($userdata['user_avatar']);
}


if (iMEMBER) {
echo "<br><img src='".INFUSIONS."user_info_panel/images/icon_members.gif' alt=''> <b>".$locale['WWOLD_002']."</b><br><img src='".THEME."images/bullet.gif' alt=''>
<a href='".BASEDIR."edit_profile.php'>".$locale['080']."</a><br><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php'>".$locale['081']."</a><br><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php'>".$locale['082']."</a><br>";

if (iADMIN) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php$aidlink'>".$locale['083']."</a><br>\n";
}

echo "<a href=\"javascript:show_hide(ShowHide001)\">
<img src='".THEME."images/bullet.gif' border='0' alt=''> <span>".$locale['WWOLD_101']."</span></a>
<div id='ShowHide001'>&nbsp;&nbsp;<img src='".THEME."images/bullet.gif' alt=''> <a>Vid. įvertinimas:</a> <b>$vert</b><br>&nbsp;&nbsp;<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=n' class='side'>".$locale['WWOLD_102']."</a><br>&nbsp;&nbsp;<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=l' class='side'>".$locale['WWOLD_103']."</a><br>&nbsp;&nbsp;<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=a' class='side'>".$locale['WWOLD_104']."</a></div><script type='text/javascript'>show_hide(ShowHide001)</script><br><br>";

echo "<img src='".INFUSIONS."user_info_panel/images/icon_docs.gif' alt=''> <b>".$locale['WWOLD_004']."</b><br>";
if (iMEMBER && EPS) {
echo "<img src='".THEME."images/bullet.gif' border='0' alt=''> ".$locale['560']." ".check_rang($userdata['user_id'])."<br>
<img src='".THEME."images/bullet.gif' border='0' alt=''> ".$locale['561']." ".show_points($userdata['user_id'])."<br>\n";

}

if (iMEMBER)
{
 $caution_r = dbquery("SELECT * from ".$db_prefix."cautions WHERE user_id=".$userdata['user_id']);
 $caution = dbarray($caution_r);
 $c_count = mysql_numrows($caution_r);
 echo "<img src='".THEME."images/bullet.gif' border='0' alt=''> ".$locale['on138']." ".$c_count."<br>";
}

echo "<br><br><center><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'> <span>".$locale['084']." </span></a> <img src='".THEME."images/bullet.gif' alt=''></center>\n";
closeside();

} else {

openside($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".BASEDIR."setuser.php'>
".$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'>".$locale['063']."<br><br>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['065']."<br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['066']."
</div>\n";
closeside();
}
?>





Štai mano user_info_panel.php jei gali sutvarkyk. ;)

eXtazY: Bandyk dabar

Redagavo eXtazY· 2008 Vas. 29 23:02:47