» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 70
0 members and 70 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10: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
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym

Register Now! Contact Us

About this Page
This is a discussion on Module to Display Users Online Status within the Nuke 7.x - Modules forums, part of the PHP-Nuke 7.x category; I'm currently trying to figure out how to get this module to work .. This is what it does It ...



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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-17-2004, 07:18 PM
Junior Member
 
Join Date: Apr 2003
Posts: 17
Module to Display Users Online Status
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 02:32 PM
Detailed Users online hartshill Nuke 7.x - General 0 02-15-2005 12:25 PM
User Info Block doesnt display users registered today or Yes Banzai Nuke 6.5 to 6.9 - Blocks 7 06-22-2003 04:21 PM
Site Visitors Block and Hide online status IACOJ Nuke 6.5 to 6.9 - Blocks 5 05-20-2003 11:13 PM
User online status Jessie00721 Open topics 2 04-04-2003 09:22 AM


All times are GMT -5. The time now is 05:32 PM.


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