Tarih: 2009-12-23, 19:41:20 Mesaj konusu: User info da bir değişiklik istiyorum
Resimde Cz User İnfo ile Normal User İnfo blogu var, Cz User İnfo blogundaki üyeleri anca üye girişi yaptıgım zaman goruyorum, ama normal user info daki üyeleri üye girişi yapmadan görebiliyorum,
1. Cz user Info blogundaki üyeleri üye girişi yapmadan görmek istiyorum.
2. Normal User Info da olan Özel Mesajlar Okunmuş okunmamış kısmını Cz User Info ya eklemek istiyorum.
// Some global definitions
global $user, $prefix, $gfx_chk, $admin, $userinfo, $db;
$showpms = "0"; //1 to Show Private Messages data - 0 is off
$showmost = "1"; //1 to Show Mostonline data - 0 is off
$dopmpopup = "0"; //1 to popup - 0 to turn off
//You can comment this out if you know its installed.
$db->sql_query("CREATE TABLE IF NOT EXISTS $prefix"._mostonline." (total int(10) NOT NULL default '0', members int(10) NOT NULL default '0', nonmembers int(10) NOT NULL default '0',PRIMARY KEY (`total`))");
$content = "<br />";
//Include the language
include("language/CZUser-Info/CZUser-Info-english.php");
//Lastuser Name
function last_user() {
global $db, $prefix;
$sql = "SELECT username FROM ".$prefix."_users WHERE user_active = 1 AND user_level > 0 ORDER BY user_id DESC LIMIT 1";
list($lastuser) = $db->sql_fetchrow($db->sql_query($sql));
return $lastuser;
}
//Total Members
function numusers() {
global $prefix, $db;
$sql = "SELECT COUNT(*) FROM ".$prefix."_users WHERE user_id > 1";
list($numrows) = $db->sql_fetchrow($db->sql_query($sql));
return $numrows;
}
//Total Waiting
function waiting_users() {
global $prefix, $db;
$sql = "SELECT COUNT(*) FROM ".$prefix."_users_temp";
list($numrowswaiting) = $db->sql_fetchrow($db->sql_query($sql));
return $numrowswaiting;
}
//New Users Today and Yesterday
function new_users() {
global $prefix, $db;
$sql = "SELECT COUNT(*) FROM ".$prefix."_users WHERE user_regdate='".date("M d, Y")."'";
list($userCount[0]) = $db->sql_fetchrow($db->sql_query($sql));
$sql = "SELECT COUNT(*) FROM ".$prefix."_users WHERE user_regdate='".date("M d, Y", time()-86400)."'";
list($userCount[1]) = $db->sql_fetchrow($db->sql_query($sql));
return $userCount;
}
if ($dopmpopup == 1){
getusrinfo($user);
if ($userinfo['user_popup_pm'] && $userinfo['user_new_privmsg']) {
$content .= "<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
<!--
window.open('modules.php?name=Private_Messages&file=index&mode=newpm&popup=1', '', 'HEIGHT=225,resizable=yes,WIDTH=400');
//-->
</script>";
}
}
//Registered users online
$members = $db->sql_query("SELECT w.uname, u.user_id, u.user_level, u.user_allow_viewonline FROM ".$prefix."_session AS w LEFT JOIN ".$prefix."_users AS u ON u.username = w.uname WHERE guest = '0' ORDER by u.user_id ASC");
$guests = $db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest ='1'");
//Online Total data
$online_num[0] = $db->sql_numrows($members);
$online_num[1] = $db->sql_numrows($guests);
$online_num[2] = $online_num[0] + $online_num[1];
//Assemble the online registered users
$who_online_now = "";
$i = 1;
while ($session = $db->sql_fetchrow($members)) {
//Allow View?
if ($session['user_allow_viewonline'] || is_admin($admin)) {
if ($i < 10) $czi = "0$i"; else $czi = $i;
//Break Mostonline Total?
if ($total < $online_num[2]) {
$db->sql_query("DELETE FROM ".$prefix."_mostonline WHERE total='$total' LIMIT 1");
$db->sql_query("INSERT INTO ".$prefix."_mostonline VALUES ('$online_num[2]','$online_num[0]','$online_num[1]')");
}
//Greet User
global $user, $userinfo, $c o o k i e;
c o o k i edecode($user);
$urname = $c o o k i e[1];
$date = date ("H");
if ($date < 11) {
$gr = ""._CZ_GOODMORNINGUSER."$urname\n";
} else if ($date < 17) {
$gr = ""._CZ_GOODAFTERNOONUSER."$urname\n";
} else if ($date < 23) {
$gr = ""._CZ_GOODEVENINGUSER."$urname\n";
} else {
$gr = ""._CZ_GOODMORNINGUSER."$urname\n";
}
/************************************************************/
/* */
/* Updated for PHP-Nuke 5.6 - 18 Jun 2002 NukeScripts */
/* website http://www.nukescripts.com */
/* */
/* Updated for PHP-Nuke 5.5 - 24/03/2002 Rugeri */
/* website http://newsportal.homip.net */
/* */
/* (C) 2002 */
/* All rights beyond the GPL are reserved */
/* */
/* Please give a link back to my site somewhere in your own */
/* */
/************************************************************/
if (eregi("block-User_Info.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
}
$content = "";
global $user, $c o o k i e, $prefix, $user_prefix, $db, $anonymous, $sitekey;
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 10);
c o o k i edecode($user);
$uname = $c o o k i e[1];
$lasturow = $db->sql_fetchrow($db->sql_query("SELECT username FROM $user_prefix"._users." ORDER BY user_id DESC LIMIT 0,1"));
$lastuser = filter($lasturow['username'], nohtml);
$numrows = $db->sql_numrows($db->sql_query("SELECT user_id FROM $user_prefix"._users.""));
$result = $db->sql_query("SELECT uname, guest FROM $prefix"._session." WHERE guest='0'");
$member_online_num = $db->sql_numrows($result);
$who_online_now = "";
$i = 1;
while ($session = $db->sql_fetchrow($result)) {
if (isset($session["guest"]) and $session["guest"] == 0) {
if ($i < 10) {
$who_online_now .= "0$i: <A HREF=\"modules.php?name=Your_Account&op=userinfo&username=$session[uname]\">$session[uname]</a><br>\n";
} else {
$who_online_now .= "$i: <A HREF=\"modules.php?name=Your_Account&op=userinfo&username=$session[uname]\">$session[uname]</a><br>\n";
}
$who_online_now .= ($i != $member_online_num ? " " : "");
$i++;
}
}
$Today = getdate();
//Formatting Current Date
$month = $Today['month'];
$mday = $Today['mday'];
$year = $Today['year'];
//Formatting Previous Date
$pmonth = $Today['month'];
$pmday = $Today['mday'];
$pmday = $mday-1;
$pyear = $Today['year'];
//Month conversion into numeric mode
if ($pmonth=="January") { $pmonth=1; } else
if ($pmonth=="February") { $pmonth=2; } else
if ($pmonth=="March") { $pmonth=3; } else
if ($pmonth=="April") { $pmonth=4; } else
if ($pmonth=="May") { $pmonth=5; } else
if ($pmonth=="June") { $pmonth=6; } else
if ($pmonth=="July") { $pmonth=7; } else
if ($pmonth=="August") { $pmonth=8; } else
if ($pmonth=="September") { $pmonth=9; } else
if ($pmonth=="October") { $pmonth=10; } else
if ($pmonth=="November") { $pmonth=11; } else
if ($pmonth=="December") { $pmonth=12; };
$test = mktime (0,0,0,$pmonth,$pmday,$pyear,1);
//Executing SQL Today
$row = $db->sql_fetchrow($db->sql_query("SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDate2'"));
$userCount = $row['userCount'];
//end
//Executing SQL Today
$row2 = $db->sql_fetchrow($db->sql_query("SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDateP'"));
$userCount2 = $row2['userCount'];
//end
$guest_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest='1'"));
$member_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest='0'"));
burdada blir modul var user ile ilgili cok kullanisli bisey ve istedigin tarzdadir ayrica üyelerine v.i.p admin moderator gibi seceneklerde verebiliyorsun cok kullanisli bir göz atmani tavsiye ederim.. Yanliz ben evoda kullaniyom ve sanirim nukede de olur denemedim nukede Kolay gelsin.
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız