» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 75
0 members and 75 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on Site Info Block within the Purged Topics forums, part of the NM Staff category; Hi, Ive seen a few sites using a Site Info Blosk and was wandering where I could get it :? I'...


Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-19-2003, 05:50 AM
Junior Member
 
Join Date: Jan 2003
Location: England
Posts: 71
Send a message via ICQ to TuNa
Site Info Block
Hi,

Ive seen a few sites using a Site Info Blosk and was wandering where I could get it :?

I've tried posting on the forums and sending a PM to the webmaster without any luck.

Here is the Site Info Block I'm after on the right of this site: http://www.thebigk.us/iF/

Thnx In advance if any1 can help me out
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2003, 07:08 AM
dar63's Avatar
Moderator
 
Join Date: Oct 2002
Location: UK
Posts: 473
You can get it from www.nukescripts.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2003, 11:48 AM
Junior Member
 
Join Date: Jan 2003
Location: England
Posts: 71
Send a message via ICQ to TuNa
Thnx for the reply dar63, but which 1 in the downloads section is it? :?

Also, I'm probably gonna sound stupid here, but does that site have forums? I spent an age trying to find them without anyluck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2003, 12:44 PM
Moderator
 
Join Date: Nov 2002
Posts: 737
Yes it does.

Across the top of the page, you'll see a menu bar. I can't remember if it is in members or all visitors, but when mouseover, a dropdown menu shows up and the forums are in there, about half way down the list if I remember right.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2003, 12:51 PM
Junior Member
 
Join Date: Jan 2003
Location: England
Posts: 71
Send a message via ICQ to TuNa
They must be inactive because I cant find the damn things :x

I even joined the clients part just incase it was there :?

nm, but thnx anyway IACOJ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2003, 02:19 PM
Moderator
 
Join Date: Nov 2002
Posts: 737
Maybe they are upgrading or something. I'll take a look and see if I can find the link for you, and post it here.

EDIT: Found the problem. The original forums over there, were splatt. They are being migrated to phpbb.

This is from Nukescripts page.
Quote:
Note: The forums are being migrated over to phpBB and I am still checking to make sure everything was migrated correctly The Forums will be back up in a couple of days
Posted by Bob Marion last Monday
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2003, 05:46 PM
dar63's Avatar
Moderator
 
Join Date: Oct 2002
Location: UK
Posts: 473
http://www.nukescripts.net/modules.p...cript_Archives

NSN_block-Site_Info_102.zip
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2003, 04:31 PM
Junior Member
 
Join Date: Jan 2003
Location: England
Posts: 71
Send a message via ICQ to TuNa
IACOJ & dar63 thanks alot for your help

Can I pick your brains tho for a minute :?

I want to add, under the name where it says "welcome blah blah," a logout part. but as its in php, and I'm still learning it I dont want to change something and start getting errors.
To you guys this is probably easy, but anyway this is the text from that block:

<?php

/************************************************** **********/
/* */
/* 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-block-Site_Info.php",$PHP_SELF)) { Header("Location: index.php"); }
$content = "";
global $nukeurl, $startdate, $user, $cookie, $prefix, $user_prefix, $dbi, $anonymous;
cookiedecode($user);
$ip = getenv("REMOTE_ADDR");
$username = $cookie[1];
if (!isset($username)) {
$username = "$ip";
$guest = 1;
}
$past = time()-900;
sql_query("DELETE FROM $prefix"._session." WHERE time < $past", $dbi);
$result = sql_query("SELECT time FROM $prefix"._session." WHERE uname='$username'", $dbi);
$ctime = time();
if ($row = sql_fetch_array($result, $dbi)) {
sql_query("UPDATE $prefix"._session." SET uname='$username', time='$ctime', host_addr='$ip', guest='$guest' WHERE uname='$username'", $dbi);
} else {
sql_query("INSERT INTO $prefix"._session." (username, time, host_addr, guest) VALUES ('$username', '$ctime', '$ip', '$guest')", $dbi);
}

$result = sql_query("select uname from $user_prefix"._users." order by uid DESC limit 0,1", $dbi);
list($lastuser) = sql_fetch_row($result, $dbi);
$numrows = sql_num_rows(sql_query("select uid from $user_prefix"._users."", $dbi), $dbi);
$result2 = sql_query("SELECT uname,guest FROM $prefix"._session." where guest=0", $dbi);
$member_online_num = sql_num_rows($result2, $dbi);
$who_online_now = "";
$i = 1;
while ($session = sql_fetch_array($result2, $dbi)) {
if (isset($session["guest"]) and $session["guest"] == 0) {
if ($i < 10) {
$who_online_now .= "0$i:<A HREF=\"modules.php?name=Forums&file=profile&mode=v iewprofile&u=$session[username]\">$session[username]</a>
\n";
} else {
$who_online_now .= "$i:<A HREF=\"modules.php?name=Forums&file=profile&mode=v iewprofile&u=$session[username]\">$session[username]</a>
\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);

//Creating SQL parameter
$curDate2 = "%".$month[0].$month[1].$month[2]."%".$mday."%".$year."%";
$preday = strftime ("%d",$test);
$premonth = strftime ("%B",$test);
$preyear = strftime ("%Y",$test);
$curDateP = "%".$premonth[0].$premonth[1].$premonth[2]."%".$preday."%".$preyear."%";

//Executing SQL Today
$result2 = sql_query("SELECT COUNT(UID) AS userCount from $user_prefix"._users." WHERE user_regdate LIKE '$curDate2'", $dbi);
list($userCount) = sql_fetch_row($result2, $dbi);
//end

//Executing SQL Today
$result3 = sql_query("SELECT COUNT(UID) AS userCount from $user_prefix"._users." WHERE user_regdate LIKE '$curDateP'", $dbi);
list($userCount2) = sql_fetch_row($result3, $dbi);
//end

$result = sql_query("SELECT uname FROM $prefix"._session." where guest=1", $dbi);
$guest_online_num = sql_num_rows($result, $dbi);

$result = sql_query("SELECT uname FROM $prefix"._session." where guest=0", $dbi);
$member_online_num = sql_num_rows($result, $dbi);

$who_online_num = $guest_online_num + $member_online_num;
$content .= "<form action=\"modules.php?name=Your_Account\" method=\"post\">";
if (is_user($user)) {
$content .= "<img src=\"images/blocks/group-4.gif\" height=\"14\" width=\"17\"> "._BWEL.", $username.
\n<hr noshade>\n";
$result = sql_query("select uid from $user_prefix"._users." where uname='$username'", $dbi);
list($uid) = sql_fetch_row($result, $dbi);
$result2 = sql_query("select to_userid from $prefix"._priv_msgs." where to_userid='$uid' and read_msg='0'", $dbi);
$newpms = sql_num_rows($result2, $dbi);
$result3 = sql_query("select to_userid from $prefix"._priv_msgs." where to_userid='$uid' and read_msg='1'", $dbi);
$oldpms = sql_num_rows($result3, $dbi);
$content .= "<img src=\"images/blocks/email-1.gif\" height=\"14\" width=\"17\"> <a href=\"modules.php?name=Private_Messages\">"._BPM."</a>
\n";
$content .= "<img src=\"images/blocks/email-2.gif\" height=\"14\" width=\"17\"> "._BUNREAD.": $newpms
\n";
$content .= "<img src=\"images/blocks/email-3.gif\" height=\"14\" width=\"17\"> "._BREAD.": $oldpms
\n<hr noshade>\n";
} else {
$content .= "<img src=\"images/blocks/group-4.gif\" height=\"14\" width=\"17\"> "._BWEL.", $anonymous\n<hr noshade>";
$content .= ""._NICKNAME." <input type=\"text\" name=\"uname\" size=\"10\" maxlength=\"25\">
";
$content .= ""._PASSWORD." <input type=\"password\" name=\"pass\" size=\"10\" maxlength=\"20\">
";
$content .= "<input type=\"hidden\" name=\"op\" value=\"login\">";
$content .= "<input type=\"submit\" value=\""._LOGIN."\">\n (<a href=\"modules.php?name=Your_Account&amp;op=new_us er\">"._BREG."</a>)<hr noshade>";
}
$content .= "<img src=\"images/blocks/group-2.gif\" height=\"14\" width=\"17\"> <u>"._BMEMP.":</u>
\n";
$content .= "<img src=\"images/blocks/user-1.gif\" height=\"14\" width=\"17\"> "._BLATEST.": <A HREF=\"modules.php?name=Your_Account&amp;op=userin fo&amp;uname=$lastuser\">$lastuser</a>
\n";
$content .= "<img src=\"images/blocks/user-2.gif\" height=\"14\" width=\"17\"> "._BTD.": $userCount
\n";
$content .= "<img src=\"images/blocks/user-3.gif\" height=\"14\" width=\"17\"> "._BYD.": $userCount2
\n";
$content .= "<img src=\"images/blocks/user-4.gif\" height=\"14\" width=\"17\"> "._BOVER.": $numrows
\n<hr noshade>\n";
$content .= "<img src=\"images/blocks/group-3.gif\" height=\"14\" width=\"17\"> <u>"._BVISIT.":</u>\n
\n";
$content .= "<img src=\"images/blocks/user-5.gif\" height=\"14\" width=\"17\"> "._BVIS.": $guest_online_num
\n";
$content .= "<img src=\"images/blocks/user-6.gif\" height=\"14\" width=\"17\"> "._BMEM.": $member_online_num
\n";
$content .= "<img src=\"images/blocks/user-7.gif\" height=\"14\" width=\"17\"> "._BTT.":$who_online_num\n<hr noshade>\n";
if ($member_online_num > 0) {
$content .= "<img src=\"images/blocks/group-1.gif\" height=\"14\" width=\"17\"> <u>"._BON.":</u>
$who_online_now\n<hr noshade>\n";
}
/* Hits for Today */
$t_time = time();
$t_year = date("Y", $t_time);
$t_month = date("n", $t_time);
$t_date = date("j", $t_time);
$result = sql_query("SELECT hits FROM $prefix"._stats_date." WHERE year='$t_year' AND month='$t_month' AND date='$t_date'", $dbi);
list($today) = sql_fetch_row($result, $dbi);
/* Hits for Yesterday */
$y_time = $t_time - 86400;
$y_year = date("Y", $y_time);
$y_month = date("n", $y_time);
$y_date = date("j", $y_time);
$result = sql_query("SELECT hits FROM $prefix"._stats_date." WHERE year='$y_year' AND month='$y_month' AND date='$y_date'", $dbi);
list($yesterday) = sql_fetch_row($result, $dbi);
/* Hits in Total */
$totalhits = 0;
$result = sql_query("SELECT hits FROM $prefix"._stats_year."", $dbi);
while(list($hits) = sql_fetch_row($result, $dbi)) {
$totalhits = $totalhits + $hits;
}
$content .= "<center>"._WERECEIVED."
\n";
$content .= "<a href=\"modules.php?name=Statistics\">$totalhits</a>
\n";
$content .= ""._PAGESVIEWS."
$startdate
</center>";
$content .= "<hr noshade>";
/*$content .= "<center><u>..:"._BLATEST." "._BHITS.":..</u>
";*/
$content .= "<center>"._BHITS." "._BTD.": <a href=\"modules.php?name=Statistics&op=DailyStats&y ear=$t_year&month=$t_month&date=$t_date\">$today</a>
";
$content .= ""._BHITS." "._BYD.": <a href=\"modules.php?name=Statistics&op=DailyStats&y ear=$y_year&month=$y_month&date=$y_date\">$yesterd ay</a>
</center>";
$content .= "<hr noshade>";

$sdt = date("j F Y\nH:i:s T");
$zone = date("Z")/3600;
if ($zone >= 0) {
$zone = "+".$zone;
}
/*$std = strftime (%e %B %Y
%T %Z);*/

$content .= "<center>"._SERDT."
$sdt (GMT $zone)</center>";
$content .= "</form>";

?>

Can you tell/show me where exactly a logout line would go plz?

Thnx in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2003, 05:29 PM
dar63's Avatar
Moderator
 
Join Date: Oct 2002
Location: UK
Posts: 473
The one I tried a while ago included the logout

Code:
<?php

/********************************************************/
/* Site Info Block for PHP-Nuke 5.5.0 thru 6.0.0        */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2002-2003 by NukeScripts Network         */
/********************************************************/

if (eregi("block-Site_Info_BB.php",$PHP_SELF)) { Header("Location: index.php"); }
$content = "";
global $nukeurl, $user, $cookie, $prefix, $user_prefix, $dbi, $anonymous;

// Total Users
if (is_user($user)) {
    $memname = $cookie[1];
    $content .= ""._BWEL.", $memname.
(<a href=\"modules.php?name=Your_Account&amp;op=logout\">"._BLOGOUT."</a>)\n";
    $content .= "<hr noshade size=\"1\">\n";
    if(is_active("Private_Messages")) {
        $result = sql_query("select uid from $user_prefix"._users." where uname='$memname'", $dbi);
        list($uid) = sql_fetch_row($result, $dbi);
        $result2 = sql_query("select privmsgs_to_userid from $prefix"._privmsgs." where privmsgs_to_userid='$uid' and privmsgs_type='1'", $dbi);
        $newpms = sql_num_rows($result2, $dbi);
        $result3 = sql_query("select privmsgs_to_userid from $prefix"._privmsgs." where privmsgs_to_userid='$uid' and privmsgs_type='0'", $dbi);
        $oldpms = sql_num_rows($result3, $dbi);
        $totpms = $newpms + $oldpms;
        $content .= "<a href=\"modules.php?name=Private_Messages\">"._BPM.":</a>
\n";
        $content .= "<big>&middot;</big> "._BUNREAD.": $newpms
\n";
        $content .= "<big>&middot;</big> "._BREAD.": $oldpms
\n";
        $content .= "<big>&middot;</big> "._BTT.": $totpms
\n";
        $content .= "<hr noshade size=\"1\">\n";
    }
} else {
    $content .= ""._BWEL.", $anonymous\n<hr noshade size=\"1\">";
    $content .= "<table border=0 cellpadding=0 cellspacing=0>\n";
    $content .= "<tr><form action=\"modules.php?name=Your_Account\" method=\"post\">\n";
    $content .= "<td>"._BNICK.": <input type=\"text\" name=\"uname\" size=\"10\" maxlength=\"25\">
\n";
    $content .= ""._BPASS.": <input type=\"password\" name=\"pass\" size=\"10\" maxlength=\"20\">
\n";
    $content .= "<input type=\"hidden\" name=\"op\" value=\"login\">\n";
    $content .= "<input type=\"submit\" value=\""._BLOGIN."\"> (<a href=\"modules.php?name=Your_Account&amp;op=new_user\">"._BREG."</a>)\n";
    $content .= "</td>\n";
    $content .= "</form></tr>\n";
    $content .= "</table>\n";
    $content .= "<hr noshade size=\"1\">\n";
}
//Formatting Current Date
$c_time = time();
$curDate = date("M d, Y",$c_time);
$result2 = sql_query("SELECT COUNT(UID) AS userCur from $user_prefix"._users." WHERE user_regdate='$curDate'", $dbi);
list($userCur) = sql_fetch_row($result2, $dbi);
$userCur = number_format($userCur, 0);
//Formatting Previous Date
$p_time = $c_time - 86400;
$preDate = date("M d, Y",$p_time);
$result3 = sql_query("SELECT COUNT(UID) AS userPre from $user_prefix"._users." WHERE user_regdate='$preDate'", $dbi);
list($userPre) = sql_fetch_row($result3, $dbi);
$userPre = number_format($userPre, 0);
//Print Membership
$totalmembers = 0;
$result = sql_query("select uname from $user_prefix"._users." order by uid DESC limit 0,1", $dbi);
list($lastuser) = sql_fetch_row($result, $dbi);
$totalmembers = sql_num_rows(sql_query("select uid from $user_prefix"._users."", $dbi), $dbi);
$totalmem = number_format($totalmembers, 0);
$content .= "<u>"._BMEMP.":</u>
\n";
$content .= "<big>&middot;</big> "._BLATEST.": <A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$lastuser\">$lastuser</a>
\n";
$content .= "<big>&middot;</big> "._BTD.": $userCur
\n";
$content .= "<big>&middot;</big> "._BYD.": $userPre
\n";
$content .= "<big>&middot;</big> "._BTT.": $totalmem
\n<hr noshade size=\"1\">\n";

/* Daily Membership */
$result = sql_query("SELECT count(*) FROM $prefix"._stats_date."", $dbi);
list($days) = sql_fetch_row($result, $dbi);
if ($days == 0) { $daily = 0; } else { $daily = number_format($totalmembers/$days, 0); }
/* Monthly Membership */
$result = sql_query("SELECT count(*) FROM $prefix"._stats_month."", $dbi);
list($months) = sql_fetch_row($result, $dbi);
if ($months == 0) { $monthly = 0; } else { $monthly = number_format($totalmembers/$months, 0); }
/* Yearly Membership */
$result = sql_query("SELECT count(*) FROM $prefix"._stats_year."", $dbi);
list($years) = sql_fetch_row($result, $dbi);
if ($years == 0) { $yearly = 0; } else { $yearly = number_format($totalmembers/$years, 0); }

$content .= "<u>"._BMEMA.":</u>
";
$content .= "<big>&middot;</big> "._BDAIL.": $daily
</center>";
$content .= "<big>&middot;</big> "._BMONT.": $monthly
\n";
$content .= "<big>&middot;</big> "._BYEAR.": $yearly
\n<hr noshade size=\"1\">\n";

// Total Hits
/* Hits for Today */
$t_time = time();
$t_year = date("Y", $t_time);
$t_month = date("n", $t_time);
$t_date = date("j", $t_time);
$result = sql_query("SELECT hits FROM $prefix"._stats_date." WHERE year='$t_year' AND month='$t_month' AND date='$t_date'", $dbi);
list($today) = sql_fetch_row($result, $dbi);
$today = number_format($today, 0);
/* Hits for Yesterday */
$y_time = $t_time - 86400;
$y_year = date("Y", $y_time);
$y_month = date("n", $y_time);
$y_date = date("j", $y_time);
$result = sql_query("SELECT hits FROM $prefix"._stats_date." WHERE year='$y_year' AND month='$y_month' AND date='$y_date'", $dbi);
list($yesterday) = sql_fetch_row($result, $dbi);
$yesterday = number_format($yesterday, 0);
/* Hits in Total */
$totalhits = 0;
$result = sql_query("SELECT hits FROM $prefix"._stats_year."", $dbi);
while(list($hits) = sql_fetch_row($result, $dbi)) {
    $totalhits = $totalhits + $hits;
}
$totalhit = number_format($totalhits, 0);
$content .= "<u>"._BHITS.":</u>
";
$content .= "<big>&middot;</big> "._BTD.": <a href=\"modules.php?name=Statistics&op=DailyStats&year=$t_year&month=$t_month&date=$t_date\">$today</a>
";
$content .= "<big>&middot;</big> "._BYD.": <a href=\"modules.php?name=Statistics&op=DailyStats&year=$y_year&month=$y_month&date=$y_date\">$yesterday</a>
</center>";
$content .= "<big>&middot;</big> "._BTT.": <a href=\"modules.php?name=Statistics\">$totalhit</a>
\n<hr noshade size=\"1\">\n";

/* Hourly Hits */
$result = sql_query("SELECT count(*) FROM $prefix"._stats_hour."", $dbi);
list($hours) = sql_fetch_row($result, $dbi);
if ($hours == 0) { $hours = 0; } else { $hourly = number_format($totalhits/$hours, 0); }
/* Daily Hits */
$result = sql_query("SELECT count(*) FROM $prefix"._stats_date."", $dbi);
list($days) = sql_fetch_row($result, $dbi);
if ($days == 0) { $days = 0; } else { $daily = number_format($totalhits/$days, 0); }
/* Monthly Hits */
$result = sql_query("SELECT count(*) FROM $prefix"._stats_month."", $dbi);
list($months) = sql_fetch_row($result, $dbi);
if ($months == 0) { $months = 0; } else { $monthly = number_format($totalhits/$months, 0); }
/* Yearly Hits */
$result = sql_query("SELECT count(*) FROM $prefix"._stats_year."", $dbi);
list($years) = sql_fetch_row($result, $dbi);
if ($years == 0) { $years = 0; } else { $yearly = number_format($totalhits/$years, 0); }

$content .= "<u>"._BHITA.":</u>
";
$content .= "<big>&middot;</big> "._BHOUR.": $hourly
";
$content .= "<big>&middot;</big> "._BDAIL.": $daily
</center>";
$content .= "<big>&middot;</big> "._BMONT.": $monthly
\n";
$content .= "<big>&middot;</big> "._BYEAR.": $yearly
\n<hr noshade size=\"1\">\n";

//Total Online
online();
$result2 = sql_query("SELECT uname,guest FROM $prefix"._session." where guest=0", $dbi);
$member_online_num = sql_num_rows($result2, $dbi);
$member_online_now = "";
$i = 1;
while ($session = sql_fetch_array($result2, $dbi)) {
    if (isset($session["guest"]) and $session["guest"] == 0) {
            $member_online_now .= "<big>&middot;</big> <A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$session[username]\">$session[username]</a>
\n";
        $member_online_now .= ($i != $member_online_num ? "  " : "");
        $i++;
    }
}
$result3 = sql_query("SELECT uname,guest FROM $prefix"._session." where guest=1", $dbi);
$guest_online_num = sql_num_rows($result3, $dbi);
$guest_online_now = "";
$i = 1;
while ($session = sql_fetch_array($result3, $dbi)) {
    if (isset($session["guest"]) and $session["guest"] == 1) {
            $guest_online_now .= "<big>&middot;</big> "._BGUES." $i
\n";
        $guest_online_now .= ($i != $guest_online_num ? "  " : "");
        $i++;
    }
}
$who_online_num = $guest_online_num + $member_online_num;
$content .= "<u>"._BON.":</u>\n
\n";
$content .= "<big>&middot;</big> "._BVIS.": $guest_online_num
\n";
$content .= "<big>&middot;</big> "._BMEM.": $member_online_num
\n";
$content .= "<big>&middot;</big> "._BTT.":$who_online_num\n<hr noshade size=\"1\">\n";
if ($member_online_num > 0) {
    $content .= "<u>"._BONM.":</u>
$member_online_now\n<hr noshade size=\"1\">\n";
}
if ($guest_online_num > 0) {
    $content .= "<u>"._BONG.":</u>
$guest_online_now\n<hr noshade size=\"1\">\n";
}

// Server Stats
$Today = date("d M Y");
$Time = date("H:i:s");
$Offset = date("O");
$content .= "<u>"._BSERV.":</u>
\n";
$content .= "<big>&middot;</big> "._BDT.": $Today
\n";
$content .= "<big>&middot;</big> "._BTM.": $Time
\n";
$content .= "<big>&middot;</big> "._GMT.": $Offset\n";

?>
Here are the defines for language-english.php also

/************************************************** ***/
/* From file : blocks/block-Site_Info.php */
/************************************************** ***/
define("_BDAIL","Daily");
define("_BDT","Date");
define("_BGUES","Guest");
define("_BHITA","Average Hits");
define("_BHITS","Total Hits");
define("_BHOUR","Hourly");
define("_BLATEST","Latest");
define("_BLOGIN","Login");
define("_BLOGOUT","Logout");
define("_BMEM","Members");
define("_BMEMA","Average Membership");
define("_BMEMP","Total Membership");
define("_BMONT","Monthly");
define("_BNICK","Username");
define("_BON","Online Now");
define("_BONG","Guests Online Now");
define("_BONM","Members Online Now");
define("_BPASS","Password");
define("_BPM","Private Messages");
define("_BREAD","Read");
define("_BREG","Register");
define("_BSERV","Server Stats");
define("_BTD","Today");
define("_BTM","Time");
define("_BTT","Total");
define("_BUNREAD","Unread");
define("_BVIS","Guests");
define("_BVISIT","Visitation");
define("_BWEL","Welcome");
define("_BYD","Yesterday");
define("_BYEAR","Yearly");
define("_GMT","GMT");
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2003, 06:25 PM
Junior Member
 
Join Date: Jan 2003
Location: England
Posts: 71
Send a message via ICQ to TuNa
dar63,

Thnx for your help, but I'm getting errors come up once I activate that block that you have just put the coding up for:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/thld185/public_html/home/includes/sql_layer.php on line 253

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/thld185/public_html/home/includes/sql_layer.php on line 253

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/thld185/public_html/home/includes/sql_layer.php on line 253

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/thld185/public_html/home/includes/sql_layer.php on line 357

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/thld185/public_html/home/includes/sql_layer.php on line 253

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/thld185/public_html/home/includes/sql_layer.php on line 357


Know whats causing this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Icons vanished from the site usser info block killerbee Open topics 1 01-17-2005 10:57 AM
User Info Block Groove Nuke 7.x - Blocks 3 07-27-2004 04:53 PM
Site Info Block w/avatar 6.5 BMWTechNet Nuke 6.5 to 6.9 - Blocks 3 04-16-2003 03:50 PM
site info block for 6.5 chuck Nuke 6.5 to 6.9 - Blocks 9 04-06-2003 07:03 AM
User Info Block + Modules Block = Where can I get it! nasrules Purged Topics 3 03-16-2003 12:16 AM


All times are GMT -5. The time now is 08:19 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31