Miranda IM

Go Back   Miranda IM - Forums > Development > Plugins

Plugins For plugin developers and related discussion

Reply
 
Thread Tools Display Modes

  #1  
Old 16 Jun 2005, 9:08 PM
y_b y_b is offline
Miranda Master
 
Join Date: March 2005
Posts: 518
Last Seen mod

I did some quick'n'dirty modifications to LastSeen plugin to fit better to my taste:
  1. ICQ IPs are logged correctly;
  2. Variables can be used in the log filename. You could have separate files for different protocols/contacts or create new file each month;
  3. Rewritten "Protocols to watch". Now selecting/deselecting protocols is easy ;)
  4. Solved enable/disable file logging bug
  5. Introduced 6 new variables:
    • %P - protocol name (ICQ, ICQ1, MSN...);
    • %N - nick on the server;
    • %C - Client Info;
    • %G - Group;
    • %o - Old status;
    • %T - Status message
  6. Option to use # instead of % to get empty strings instead of <unknown>
  7. extended support of multiple yahoo protocols(not tested);
  8. extended support for jabber/s.
  9. popup support
  10. delayed logging to wait for the protocols to update all the settings
  11. option to track idle statuses

The modified Last Seen can be downloaded here. Screenshot is also available.

<important note>
After version 5.0.4.0 is LastSeen-mod not compatible with NewStatusNotify. You must disable NSN and eventually re-enable LastSeenMod.
LastSeenMod has overlapping functionality with NSN and now defines the same core function as NSN (RNDUSERONLINE)
NSN compatible clone is available there.
</important note>

Feedback/suggestions/bug reports are welcome.

ToDo/Done
  • Solve the enable/disable file-logging bug;
  • "Always/Never track this contact" option in the "LastSeen" tab;
  • Support variables in the path;
  • Add variable for additional info (Client for ICQ, Mobile/Web for MSN);
  • Use "Resource" on the place of RealIP for Jabber(This is possible with newer (h+) JGmail);
  • Upload Last Seen mod to FL and publish the sources;
  • PopUps
    • Add collor options to the popups according to status;
    • Avoid multiple popups on login;
    • Don't show popups for "deleted" contacts;
    • Click on the popup shows message window;
Change/Events log
  • v. 5.0.4.3
    • Included seenTS DB setting
    • "suppress online notification" affects only sounds and popups
    • Sounds are working now. Two new are added.
  • v. 5.0.4.2
    • Implemented Idle support (Will include "/Idle" to the status if contact is idle)
  • v. 5.0.4.1
    • Enabled 32bit icons in lastseen history dialog (fixes the "transperancy bug")
    • New variable: %T: Status Message
    • Parser rewritten to be safer
    • Click on popup will open message window
  • v. 5.0.4.0
    • Small memory leak in user info dialog fixed (thanks Tio Duke)
    • Increased the delay to check offline contacts 2->10 seconds
    • If the contact's status changer while we have been offline the time we went offline will be logged (not the current time)
    • Fixed visual glitch in the "last seen history" dialog
    • Suppress the DEFMOD_RNDUSERONLINE core functionality - LastSeenMod is not compatible with NewStatusNotify anylonger
    • Option to enable clist online notify
  • v. 5.0.3.2
    • Better protocol type guessing (based on PFLAG_UNIQUEIDSETTING)
    • Popups colors are configurable
    • Tabbed interface of the option page
  • v. 5.0.3.1 (never released)
    • Avoid multiple popups on login - only those for contacts with different status before logoff
    • implemented delayed logging of the status changes using thread
    • Doesn't show popups is the contact is "hidden"
    • Better tracking if the contact went offline while we were offline
    • %i and %r are replaced by "resource" and "system" for Jabber/JGmail
  • v. 5.0.3.0
    • Enhanced PopUp support:
      • separated fields for PopUp title and text
      • Correct icon is chosen according to the protocol and status
    • New Variable %o - "Old Status"
    • JGmail is recognised as Jabber
  • v. 5.0.2.6
    • Basic PopUp support
  • v. 5.0.2.5
    • Added %G standing for "Group"
    • Using variables in the path of the log file(s) is possible now
  • v. 5.0.2.4
    • Updated MSN capability bits according to this post
  • v. 5.0.2.3
    • Solved enable/disable file logging bug (hopefully)
    • Option to use # instead of % to get empty strings instead of <unknown>
  • v. 5.0.2.2
    • Added %C (Client/version for ICQ; ClientID flags for MSN);
    • Better support for multiple instances of same protocol;
    • Logging contacts of protocol logon/off is back;
  • v. 5.0.2.1
    • Updated plugin info
Last Seen mod is based on Last seen Plugin 5.0.1.1 sources.

LastSeen Mod joined the mgoodies project where the sources are availble in the svn repository

Last edited by borkra; 9 Aug 2009 at 7:23 AM. Reason: New build 5.0.4.3
Reply With Quote

  #2  
Old 23 Jun 2005, 3:27 PM
Mayhem Mayhem is offline
Miranda Master
 
Join Date: March 2005
Posts: 602
finally somebody is working on that! btw can U try to work on this: do not show last seen info about IRC channels but show it about IRC nick that U add to contact list? and using them for private conversation?
thanks

btw how it gets info about that when contact was last seen?
Reply With Quote

  #3  
Old 23 Jun 2005, 4:09 PM
y_b y_b is offline
Miranda Master
 
Join Date: March 2005
Posts: 518
I don't use IRC, but I think it should be possible to track status changes if the IRC contact is in your contact list, but most likely it is not possible to separate the individual contacts form channels (am I using the right terms?...)

LastSeen (mod) logs the time when some contact changes his status. So, the meaning is "When Miranda has been notified for the status change of the contact" but not "When the contact logged-in to the server"
Reply With Quote

  #4  
Old 23 Jun 2005, 4:13 PM
TioDuke TioDuke is offline
Miranda Master
 
Join Date: March 2005
Location: /home/sergio
Posts: 976
@y_b: maybe you can try this to distiguish between real contacts and channels. Most channels begin with the '#' character (though, not always).
Reply With Quote

  #5  
Old 23 Jun 2005, 4:21 PM
y_b y_b is offline
Miranda Master
 
Join Date: March 2005
Posts: 518
May be better approach would be to add something like "Always track this contact" and/or "Never track this contact" in the LastSeen tab of the "user details". But I don't know when I will spend time for this...
Reply With Quote

  #6  
Old 23 Jun 2005, 5:50 PM
Mayhem Mayhem is offline
Miranda Master
 
Join Date: March 2005
Posts: 602
Im for never track this option in contact menu.

btw if contact is on when I connect its the time Ive connect in last seen?
Reply With Quote

  #7  
Old 23 Jun 2005, 5:58 PM
TioDuke TioDuke is offline
Miranda Master
 
Join Date: March 2005
Location: /home/sergio
Posts: 976
I am also for 'never track this user' in last seen tab in user's details (the problem will be peole not having the last seen tab enabled), though.

@Mayhem: the answer to your question is yes.
Reply With Quote

  #8  
Old 23 Jun 2005, 6:57 PM
Mayhem Mayhem is offline
Miranda Master
 
Join Date: March 2005
Posts: 602
or in menu, wheres send file and so. but I wont that menu grow...
maybe last seen can collect last seen message as well and show it in last seen tab.
Reply With Quote

  #9  
Old 23 Jun 2005, 7:34 PM
hotbot hotbot is offline
Member
 
Join Date: April 2005
Location: C:\WINDOWS
Posts: 54
Quote:
ICQ IPs are logged correctly
at last someone fixed that. thx!
Reply With Quote

  #10  
Old 29 Jun 2005, 9:31 AM
Tigerix Tigerix is offline
Miranda Wizard
 
Join Date: April 2005
Location: Freiburg / Germany
Posts: 372
Hello,

I got one little feature requests:
Show Empty variables empty in stead of "<unknown>"

And one little bug report:
The ICQ-IP-Adress is only shown correctly if the user have allready been online before. That means: users ip-adresses who are just coming online are never logged.
(always: <unknown>)

Maybe its a solution to use an delay before writing the ip-adress into the log.

But anyway: Thanks for your work on this great old plugin!
Greetings,
--Tigerix--
Reply With Quote
Reply

Bookmarks

Tags
contacts, last seen, log, notifications, popups, sounds, status changes

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 Off
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +1. The time now is 7:33 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.