Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 52
3 members and 49 guests
buynm6ymobcha8b, cliaw9cckhereto, int5nwernetmarx
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
Link member
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 85
Join Date: Oct 2002
Location: France
Link member - 10-12-2002, 06:43 AM

Hello, I'm french and have bad english but I have one question.

In your block user menu I see members online.
When I click on member name I see member forum profile.
What is code for this link ?

I know
Code:
modules.php?name=Forums&file=profile&mode=viewprofile&u=
But don't know end of code after equal sign

Can you help me

Friendly
 Send a message via ICQ to breakolami  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Super Moderator
 
coldblooded's Avatar
 
Status: Offline
Posts: 624
Join Date: Jan 2002
Location: USA
10-12-2002, 10:15 PM

Hello, thanks for visiting.

Here is the block. You can look through the code to pick out what you need.

The block uses the database to finish the link.

Your english is very good btw.

Cheers.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 85
Join Date: Oct 2002
Location: France
10-13-2002, 03:55 AM

Thank you coldblooded

But it's not this code I want

On my user menu block I want to go in the forum profile by clicking on online member's name.

With your block I go in phpnuke profile
I don't want
Code:
modules.php?name=Your_Account&op=userinfo&uname=
I want
Code:
modules.php?name=Forums&file=profile&mode=viewprofile&u=
On this site the link is exactly that I want but I don't know the end of code.


Ahhhhhhhhhhhhhh I want only one language all over the world :P
It will be very easy to communicate

Friendly
 Send a message via ICQ to breakolami  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 85
Join Date: Oct 2002
Location: France
10-28-2002, 03:22 AM

Hello
Here is the code from my bloc user info
Just code who is online
Code:
// Who's Online
$content .= "<a href=\"modules.php?name=Members_List\"><img src=\"images/blocks/phpBB2_User_Menu/icon_connect.gif\" border=\"0\" ALT=\"En ligne\"></a>En ligne [ $who_online_num ]:
\n";
$content .= "<img src=images/blocks/phpBB2_User_Menu/icon_users.gif>Invité(s): $guest_online_num
\n";
$content .= "<img src=images/blocks/phpBB2_User_Menu/icon_registered.gif>Membre(s): $member_online_num
\n";
if ($member_online_num > 0) {
	$content .= "$who_online_now
";
}
Can you tell me how modify this one to have a good link.
I want to go in forum profile by clicking online member's name.
I have phpBB 2.0.6 with phpnuke 6.0

Thanks, I hope you understand that I say because I'm french
 Send a message via ICQ to breakolami  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Moderator
 
dar63's Avatar
 
Status: Offline
Posts: 473
Join Date: Oct 2002
Location: UK
10-28-2002, 04:53 PM

Quote:
Originally Posted by breakolami

With your block I go in phpnuke profile
I don't want
Code:
modules.php?name=Your_Account&op=userinfo&uname=
I want
Code:
modules.php?name=Forums&file=profile&mode=viewprofile&u=
Friendly
It's modules.php?name=Forums&file=profile&mode=viewprof ile&u=$uid
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 85
Join Date: Oct 2002
Location: France
10-29-2002, 09:01 AM

I try to replace my line by your's
But have sql errors
I've add sql query and have sql errors

her is code from bloc scroll seen
Code:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2001 by Francisco Burzi (fbc@mandrakesoft.com)         */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/*                                                                      */
/* PHP-Nuke Version: 5.5                                                */
/************************************************************************/
######################################################################
# Questo e un collage da due blocchi
# block-Last_Seen.php
# block-Newest_Link
# mi ero stufato di un blocco cosi lungo
# http://www.hwsolution.net
# All rights beyond the GPL are reserved
######################################################################

if (eregi("block-Last_Seen.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}

global $cookie, $user, $userinfo, $prefix;


        $numusers = 20;
        $username = $cookie[1];

        mysql_query("CREATE TABLE IF NOT EXISTS $prefix"._lastseen." (id INT (15) not null AUTO_INCREMENT, uname TEXT not null, date INT(15) not null, ip CHAR(50), PRIMARY KEY (id), UNIQUE (id))");

        if (isset($username)) {
                $ip = getenv("REMOTE_HOST");
                if (empty($ip)) {
                        $ip = getenv("REMOTE_ADDR");
                }

                $result = mysql_query("SELECT * FROM $prefix"._lastseen." WHERE uname = \"$username\"");
                if (mysql_num_rows($result) > 0) {
                        mysql_query("UPDATE $prefix"._lastseen." SET date = " . time() . " WHERE uname = \"$username\"");
                } else {
                        mysql_query("INSERT INTO $prefix"._lastseen." VALUES (\"\", \"$username\", ".time().", \"".$ip."\")");
                }
        }

$content = "";
$content = " <A name= \"scrollingCode\"></A>
	<MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"120\" scrollamount= \"2\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'>
	<table width=\"100%\">";
    $content .= "<tr><td></td></tr>";
    $content .= "$show";
	$content .= "</table>";
    $a++;$result = mysql_query("SELECT uname, date FROM $prefix"._lastseen." ORDER BY date DESC");
    while (list($uname, $date) = mysql_fetch_row($result)) {
    if ($uname != $username) {
    $realtime = time() - $date;
    $dont = false;
// how many days ago?
    if ($realtime >= (60*60*24*2)) { // if it's been more than 2 days
    $days = floor($realtime / (60*60*24));
    $dont = true;
  } 
	else if ($realtime >= (60*60*24)) { // if it's been less than 2 days
    $days = 1;
    $realtime -= (60*60*24);
  }
    if (!$dont) {
// how many hours ago?
   if ($realtime >= (60*60)) {
//$content .= " ($realtime) ";
   $hours = floor($realtime / (60*60));
   $realtime -= (60*60*$hours);
  }
// how many minutes ago?
   if ($realtime >= 60) {
   $mins = floor($realtime / 60);
   $realtime -= (60*$mins);
  }
// just a little precation, although I don't *think* mins will ever be 60...
   if ($mins == 60) {
   $mins = 0;
   $hours += 1;
  }
  }
   $content .= "<font class=tiny><a href=\"modules.php?name=Your_Account&op=userinfo&amp&uname=".$uname."\">".$uname."</a>:";
   if ($dont) {
   $content .= " ".$days." jours";
  } else {
   if ($days > 0) {
   $content .= " ".$days." jour".(($hours == 0 && $mins == 0)?(""):(","));
  }
   if ($hours > 0) {
   $content .= " ".$hours." ".(($hours > 1)?("heures"):("heure")).(($mins == 0)?(""):(","));
  }
   if ($mins > 0) {
   $content .= " ".$mins." ".(($mins > 1)?("minutes"):("minute"))."";
  }  else { // less than a minute :)
   $content .= " ".$realtime." secondes";
  }
  }
   $content .= " déjÃÂÂÂ*</font>
";
   $days = 0;
   $hours = 0;
   $mins = 0;
   $dont = false;
  }
  }
   $content .= "";
?>
I've found in bloc lastseen
Code:
$myresult = sql_query("select uid from nuke_users where (uname='$uname')", $dbi);
    			list($uid) = sql_fetch_row($myresult, $dbi);
                        $content .= "<font class=tiny><a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=".$uid."\">".$uname."</a>:";
I don't know how to modify my bloc
I try, try, try...................I will become crazy 8O
 Send a message via ICQ to breakolami  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 85
Join Date: Oct 2002
Location: France
10-29-2002, 09:18 AM

I have found !!!!!

I edit bloc-lastseen.php
And just add
Code:
$content = " <A name= \"scrollingCode\"></A>
	<MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"120\" scrollamount= \"2\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'>
	<table width=\"100%\">";
    $content .= "<tr><td></td></tr>";
    $content .= "$show";
	$content .= "</table>";
    $a++;$result = mysql_query("SELECT uname, date FROM $prefix"._lastseen." ORDER BY date DESC");
    while (list($uname, $date) = mysql_fetch_row($result)) {
    if ($uname != $username) {
    $realtime = time() - $date;
    $dont = false;
before line
Code:
// how many days ago?
And it's OK
 Send a message via ICQ to breakolami  
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
Member Counter mkeeping Nuke 7.x - General 0 08-06-2005 07:51 PM
fiBlack 3d Avatar Link (Forum image) link - Problem exxxpress Theme packs 6 05-20-2003 11:09 AM
fantom member breakolami nukemods.com 2 05-18-2003 08:22 AM
New member password karaya Purged Topics 1 02-04-2003 07:50 AM
Another question about link member breakolami Purged Topics 2 10-30-2002 11:09 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