Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > PHP-Nuke 7.x > Nuke 7.x - Modules

Reply
 
LinkBack Thread Tools Display Modes
Module to Display Users Online Status
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 17
Join Date: Apr 2003
Module to Display Users Online Status - 08-17-2004, 08:18 PM

I'm currently trying to figure out how to get this module to work ..

This is what it does

It displays the users Photo if there online it displays

them in a table 4 across and just adds a new one as its required this is what l got so far

Code:
<?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    header("Location: ../../../index.php");
    die ();
}
$index = 0;
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
global $count, $prefix; 
echo"
";
OpenTable();
$sql = "SELECT time FROM ".$prefix."_userinfo_where WHERE username='$user_id'";
$imgs = dir('modules/Photo/memberphotos');
while ($file = $imgs->read()) {
    if (eregi("gif", $file) || eregi("jpg", $file)) {
	$imglist .= "$file ";
    }
}
closedir($imgs->handle);
$imglist = explode(" ", $imglist);
sort($imglist);
for ($i=0; $i < sizeof($imglist); $i++) {
    if($imglist[$i]!="") {
$image=$imglist[$i];  
$user_id = $image; 
$user_id = eregi_replace(".jpg","",$user_id); 
$user_id = eregi_replace(".gif","",$user_id);
list($username) = mysql_fetch_row(mysql_query("SELECT username from ".$prefix."_users WHERE user_id='$user_id'"));
$count = 0; 
echo "<table border=1>"; 
$asin = explode(".", $image);
$count++; 
if($count == 1) { echo "<tr>"; } 
echo" <td>
<center><a href=\"modules.php?name=Your_Account&op=userinfo&username=$username\"><center><img src=\"modules/Photo/memberphotos/$image\" border=\"0\" alt=\"$username\">
$username
</center></td>";
   if($count == 4)   { echo "</tr>"; } 
   if($count == 5)   { $count = 0; } 
    } 
    echo "</table>"; 
    CloseTable();
} 
    include("footer.php");

?>
Its should also have the option to just show there username or photo kinda like a hide photo Option

Example Show Photo : Just Show Name(s)

Any help would be appreciated
XtraX
   
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
Changing de Username display in the 'Online Now' Theberge43 Nuke 7.x - Blocks 0 07-28-2005 03:32 PM
Detailed Users online hartshill Nuke 7.x - General 0 02-15-2005 01:25 PM
User Info Block doesnt display users registered today or Yes Banzai Nuke 6.5 to 6.9 - Blocks 7 06-22-2003 05:21 PM
Site Visitors Block and Hide online status IACOJ Nuke 6.5 to 6.9 - Blocks 5 05-21-2003 12:13 AM
User online status Jessie00721 Open topics 2 04-04-2003 10:22 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.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