Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
mabit
New Member
New Member



Joined: Mar 18, 2006
Posts: 6

PostPosted: Mon Jul 10, 2006 1:18 pm Reply with quote

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 Sad

My Site is [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message Visit poster's website
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Mon Jul 10, 2006 1:40 pm Reply with quote

That usually happens on an RSS block. Are you sure it's specified as a file block?

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
mabit







PostPosted: Mon Jul 10, 2006 2:47 pm Reply with quote

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

PostPosted: Mon Jul 10, 2006 4:33 pm Reply with quote

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!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
mabit







PostPosted: Mon Jul 10, 2006 4:33 pm Reply with quote

the code from which file? I am a bit of a newbie
 
gregexp







PostPosted: Mon Jul 10, 2006 4:37 pm Reply with quote

The contents of the block file.
 
mabit







PostPosted: Mon Jul 10, 2006 4:43 pm Reply with quote

<?php
// who is where v2.3.x for phpnuke 6.5
//--- by surf (www.surf4all.net - [ Only registered users can see links on this board! Get registered or login! ]
//--- Update by Will (http://www.ig-2000.com - [ Only registered users can see links on this board! Get registered or login! ])
//--- > 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','&quot;');

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]:&nbsp;$title -&gt; <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\">&nbsp;<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\">&nbsp;<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







PostPosted: Mon Jul 10, 2006 5:02 pm Reply with quote

I think you should update it with the block on my site.
 
gregexp







PostPosted: Mon Jul 10, 2006 5:09 pm Reply with quote

I think you should update it with the block on my site.
 
mabit







PostPosted: Mon Jul 10, 2006 5:09 pm Reply with quote

Trying it now

P.S Cool site
 
gregexp







PostPosted: Mon Jul 10, 2006 5:10 pm Reply with quote

thanx
 
mabit







PostPosted: Mon Jul 10, 2006 5:16 pm Reply with quote

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







PostPosted: Mon Jul 10, 2006 9:00 pm Reply with quote

No problem.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©