Author Topic: .  (Read 202111 times)

0 Members and 1 Guest are viewing this topic.

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [Mod] Letze aktive User / Last active users
« Reply #60 on: December 02, 2005, 09:59:20 AM »
hallo!
is it possible to hide users own name so that  user can't see his own name in the list ?

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Letze aktive User / Last active users
« Reply #61 on: December 02, 2005, 01:56:03 PM »
is it possible to hide users own name so that  user can't see his own name in the list ?

Soll der User prinzipell seinen Namen nicht sehen ?
Oder ...
Soll der User nach Einstellung im Kontrollzentrum seinen Namen nicht sehen ?
(diese Variante funktioniert eigentlich schon ... wenn der User -Online-Status verstecken- aktiviert hat ...)

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [Mod] Letze aktive User / Last active users
« Reply #62 on: December 02, 2005, 03:46:02 PM »
er soll seinen namen nur in der " Letzte aktive User / Last active users" - Liste nicht sehen...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Letze aktive User / Last active users
« Reply #63 on: December 03, 2005, 04:16:42 AM »
hallo!
is it possible to hide users own name so that user can't see his own name in the list ?
Try replace
Code: [Select]
                WHERE user_level >= '".GUEST."' with:
Code: [Select]
                WHERE user_level >= '".USER."' AND user_id <> ".$user_info['user_id']."
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Jako

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [Mod] Letze aktive User / Last active users
« Reply #64 on: December 03, 2005, 03:33:42 PM »
ich hab jetzt einfach mal versucht diese code in de member.php einzufügen, damit jeder user sehen kann wer zuletzt auf seinem profil war.

Code: [Select]
//-----------------------------------------------------
//--- Last active User --------------------------------
//-----------------------------------------------------
$last_action_user_list = "";
$sql = "SELECT user_name, user_id, user_lastaction FROM ".USERS_TABLE."
                WHERE user_level >= '".GUEST."'
                   ORDER BY user_lastaction DESC
                LIMIT 5";
   $result = $site_db->query($sql);

   while ($row = $site_db->fetch_array($result)) {
   $last_action_user_list .= "<a href =\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$row['user_id'])."\"><b>".$row['user_name']."</b></a><br ><span class=\"smalltext\">".format_date($config['date_format']." ".$config['time_format'], $row['user_lastaction'])."</span><br >";
   }

$user_last_action_box = $site_template->parse_template("user_last_action_box");
$site_template->register_vars(array(
 "user_last_action_box" => $user_last_action_box,
 "lang_user_last_action" => $lang['lang_user_last_action'],   
 "user_last_action_list" => $last_action_user_list
));
 unset($user_last_action_box);
 unset($last_action_user_list);

das funktioniert aber nicht weil mir dann im profil gar nix angezeigt wird...

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Letze aktive User / Last active users
« Reply #65 on: December 04, 2005, 12:23:14 AM »
@Jako,
1. Nur mit dem Einfügen des Codes in die member.php passiert auf deinen Memberseiten noch garnichts.
2. Mit der zusätzlichen Einbindung der Tags {user_last_action_box} und {lang_user_last_action} in deinen Member-Templates wird dir dann die Last-User-Box angezeigt.
3. Diese Last-User-Box zeigt dir dann aber selbstverständlich immer noch die letzten Besucher auf der Website (nicht nur im Profil) an, da du aus der 'USER_TABLE' die 'user_lastaction' ausliest und wie gesagt, betrifft das die gesamte Website.
4. Für die Umsetzung deiner Vorstellungen müssen mehrere Änderungen vorgenommen werden ... neues Feld in der 'USER_TABLE' , query zum Aktualisieren des Feldes beim Seitenzugriff , query zum Auslesen des Feldes ... analog zum MOD Last User ... u.e.m.
5. Für die Ausgabe der Profilhits gibt es einen MOD ... Dazu musst du aber die Suche bemühen ...  :wink:

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Jako

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [Mod] Letze aktive User / Last active users
« Reply #66 on: December 04, 2005, 05:03:13 AM »
den mod für die für die profil hits gibt es nicht mehr, es gibt zwar noch das topic aber der mod wurde rausgelöscht...

leider bin ich nicht so fit in php deshalb könnte bei der anzeige der letzten user auf den profilen noch etwas hilfe gebrauchen.

Offline Jako

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [Mod] Letze aktive User / Last active users
« Reply #67 on: December 14, 2005, 05:04:12 PM »
well, maybe in english

is it possible to change this mod so that every user can see on his profile who last visited it?

come on, i really need this  :wink:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Letze aktive User / Last active users
« Reply #68 on: December 15, 2005, 12:32:18 AM »
4images does not store such information, so without a completly different mod, this is not possible.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Jako

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [Mod] Letze aktive User / Last active users
« Reply #69 on: December 15, 2005, 04:24:19 PM »
4images does not store such information, so without a completly different mod, this is not possible.

I alreads saw this, so it must be possible.

For Example look here:

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Letze aktive User / Last active users
« Reply #70 on: December 15, 2005, 05:52:47 PM »
@ Jako
read V@nos post carefully : without a completly different mod, this is not possible ... !

so ... please post your request in ... Mods & Plugins (Requests & Discussions) ... not in this topic !
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline chip

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • pixelmall.de
Re: [Mod] Letze aktive User / Last active users
« Reply #71 on: January 15, 2006, 08:44:20 PM »


Hi everyone,

Thanks Cr@zy Sash for this one  :D.


I do have a problem:

my guests are always shown with date: 01.01.1970 and time 1.00


Anyone an idea?



Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Letze aktive User / Last active users
« Reply #72 on: January 15, 2006, 10:19:39 PM »
1) the guest account is being used for every not logged in visitor, so their activity is not being logged.
2) IMO guests should not be showed at all.
replace
Code: [Select]
WHERE user_level >= '".GUEST."' with
Code: [Select]
WHERE user_level > '".GUEST."'
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline chip

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • pixelmall.de
Re: [Mod] Letze aktive User / Last active users
« Reply #73 on: January 15, 2006, 10:48:53 PM »

okay, thanks V@no

Offline Birne

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [Mod] Letze aktive User / Last active users
« Reply #74 on: January 17, 2006, 06:57:27 PM »
Hi !

how to make this list for user, who are not logged in, invisible ?
I´m using this Mod in my home.html - Template.
Currently all User can see this list !

regards Birne