PHPFusion - tai laisvai platinama nemokama turinio valdymo sistema (TVS), kurios pagalba galite greitai, lengvai ir
patogiai susikurti norimą internetinį puslapį. Plačiau apie sistemą...
Jaunelis 2024 Lie. 25 11:07:43 Oho vis dar veikia svetainė Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas
And2s 2024 Lie. 17 19:07:04 2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija ačiū Ozz kad saugoji šitą kultūrinį reliktą
ozzWANTED 2024 Sau. 17 01:01:00 Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės.
Sveikas, kokį kodą reikia dėti į user_info_panel, kad rodytų mlm_panel vidutinį nario įvertinimą pavyzdys šiame saite (dešinėje). Mėginau iš profile.php imti, bet neveikė.
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";
// 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>
";
<?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";
// 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>
";