Author |
Message |
mabit
New Member


Joined: Mar 18, 2006
Posts: 6
|
Posted:
Mon Jul 10, 2006 1:18 pm |
|
I am using PHP Nuke 7.9 and I have done as the install file asks. But the block keeps saying "There isn't content right now for this block." But i have 14 users online and 6 guest
Please help
My Site is www.mabit-live.co.uk |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Mon Jul 10, 2006 1:40 pm |
|
That usually happens on an RSS block. Are you sure it's specified as a file block? |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
mabit

|
Posted:
Mon Jul 10, 2006 2:47 pm |
|
no its not set up as an RSS Block, when i add the block i use the drop down menu and select the block from there. And give it a title. |
|
|
|
 |
gregexp
The Mouse Is Extension Of Arm

Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol
|
Posted:
Mon Jul 10, 2006 4:33 pm |
|
Its got to be the way the block echos information, could you post the code? |
_________________ For those who stand shall NEVER fall and those who fall shall RISE once more!! |
|
 |
 |
mabit

|
Posted:
Mon Jul 10, 2006 4:33 pm |
|
the code from which file? I am a bit of a newbie |
|
|
|
 |
gregexp

|
Posted:
Mon Jul 10, 2006 4:37 pm |
|
The contents of the block file. |
|
|
|
 |
mabit

|
Posted:
Mon Jul 10, 2006 4:43 pm |
|
<?php
// who is where v2.3.x for phpnuke 6.5
//--- by surf (www.surf4all.net - www.creation-de-site-brest.com)
//--- Update by Will (http://www.ig-2000.com - willlau@easynet.fr)
//--- > Do not display headers when no connection,
//--- > Just one query instead of two.
//--- > Display the time human free, delete the _PAR define.
if (eregi("block-Who-is-Where.php",$_SERVER[PHP_SELF])) {
Header("Location: ../index.php");
die();
}
$content = '';
global $admin, $user, $cookie, $prefix, $user_prefix,$db, $anonymous,$name,$lang;
//
// language system
//
define('_MIN','' ');
define('_SEC','"');
if ($lang=='french') {
define("_MEMBRES","Membres ");
define("_VISITEURS","Visiteurs ");
define("_VISITEUR","Visiteur ");
} else if ($lang=='russian') {
define("_MEMBRES","×ëåíû");
define("_VISITEURS","Ïîñåòèòåëè");
define("_VISITEUR","Ïîñåòèòåëè");
} else if ($lang=='spanish') {
define("_MEMBRES","Miembro");
define("_VISITEURS","Visitante");
define("_VISITEUR","Visitantes");
} else if ($lang=='italian') {
define("_MEMBRES","Membri");
define("_VISITEURS","Ospiti");
define("_VISITEUR","Ospite");
} else if ($lang=='portuguese') {
define("_MEMBRES","Miembro");
define("_VISITEURS","Visitantes");
define("_VISITEUR","Visitante");
} else {
define("_MEMBRES","Members");
define("_VISITEURS","Visitors");
define("_VISITEUR","Visitor");
}
//
// Init
//
$who_online[0] = "";
$who_online[1] = "";
$num[0] = 1;
$num[1] = 1;
/**
* function that displays
* int timeSec : time in seconds
* @return String timeDisplay
*/
function displayTime($sec) {
$minutes = floor($sec / 60);
$seconds = $sec % 60;
if ($minutes == 0) {
return $seconds . _SEC;
}
return $minutes . _MIN . $seconds . _SEC;
}
//
// Query
//
$result = $db->sql_query("select username, guest, module, url, UNIX_TIMESTAMP(now())-time AS time from ".$prefix."_whoiswhere order by username");
$member_online_num = $db->sql_numrows($result);
//
// Display Section
//
while ($session = $db->sql_fetchrow($result)) {
//--- guest can only be 0 or 1
$guest = $session["guest"];
if ($num[$guest] < 10) {
$who_online[$guest] .= "0";
}
if ($guest == 0) {
$title = "<A HREF=\"modules.php?name=Your_Account&op=userinfo&uname=$session[username]\" title=\"" . displayTime($session[time]) . "\">$session[username]</a>";
} else {
//--- Anonymous user
if (isset($admin)) {
$title = '<A title="' . displayTime($session[time]) . "\">$session[username]</a>";
} else {
$title = '<A title="' . displayTime($session[time]) . '">' . _VISITEUR . '</a>';
}
}
$who_online[$guest] .= "$num[$guest]: $title -> <a href=\"$session[url]\" target=\"_blank\">$session[module]</a><br>\n";
$num[$guest]++;
}
//--- Members
if ($who_online[0] != "") {
$content = "<img src=\"images/Who-is-Where/members.gif\"> <span class=\"content\"><b>"._MEMBRES.":</b></span><br>$who_online[0]<br>";
}
//--- Anonymous
if ($who_online[1] != "") {
$content .= "<img src=\"images/Who-is-Where/visitors.gif\"> <span class=\"content\"><b>"._VISITEURS.":</b></span><br>$who_online[1]";
}
// the link will be display only for anonymous user...
// please let it for my future work on this funny block
// it's a copyright don't remove it
if (!isset($user)) {
$content .= "<center>".ucfirst(_BY)." <a href=\"http://www.creation-de-site-brest.com\" target=\"_blank\">Creation site</a></center>";
}
?> |
|
|
|
 |
gregexp

|
Posted:
Mon Jul 10, 2006 5:02 pm |
|
I think you should update it with the block on my site. |
|
|
|
 |
gregexp

|
Posted:
Mon Jul 10, 2006 5:09 pm |
|
I think you should update it with the block on my site. |
|
|
|
 |
mabit

|
Posted:
Mon Jul 10, 2006 5:09 pm |
|
Trying it now
P.S Cool site |
|
|
|
 |
gregexp

|
Posted:
Mon Jul 10, 2006 5:10 pm |
|
|
|
 |
mabit

|
Posted:
Mon Jul 10, 2006 5:16 pm |
|
Thanx that has worked, must have been that i didnt have the custom file. Just need to now find out how to get the user info block to update more frequently. Thanx for the help |
|
|
|
 |
gregexp

|
Posted:
Mon Jul 10, 2006 9:00 pm |
|
|
|
 |
|