emesene forum
August 29, 2008, 11:03:52 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: PROBLEMS WITH 1.0.x? TAKE A LOOK IN HERE - FATAL ERRORS? (1.0.x) REPORT THEM HERE
 
  Home   Forum   Help Search Login Register  
Pages: [1] 2 3 ... 5
  Print  
Author Topic: Last Said plugin  (Read 5304 times)
Astu
Hero Member
*****

l33tness: 2
Offline Offline

Posts: 140


View Profile
« on: January 24, 2008, 12:42:35 PM »

I tried to write a draft of the Last Said plugin, I think that this feature is very useful Cheesy

However is not perfect, for example it needs a better way to print the messages: now it prints in "information" style, maybe a "greyed" style, like official client, would be better.
Maybe I could also add an option to set which date/time display with messages (now it displays day and month).
And it should also display nicknames instead of emails but at the moment I don't know how to do it...

However it's at least usable Grin so I hope it will be useful to you. Obviously you can improve this plugin if you want, it would be great =)

P.S.= To install the plugin copy it into ~/.config/emesene1.0/pluginsEmesene/ or /emesene/install/dir/plugins_base/

[attachment deleted by admin]
___________________________________________

The latest version is here
If you used previous versions and now you get an error, try to delete the file:
Code:
~/.config/emesene1.0/YOUR_EMAIL/LastSaid.conf
« Last Edit: June 22, 2008, 08:02:36 AM by Astu » Logged
Astu
Hero Member
*****

l33tness: 2
Offline Offline

Posts: 140


View Profile
« Reply #1 on: January 30, 2008, 02:29:34 PM »

I added the option to set the style of time showed with messages ( hour, date, nothing...)

It would be useful to improve the way messages are printed since now it's quite ugly... But I have no idea of how to do it, I ask somebody's help  Grin

It would be great also some help for the thing of the nicknames instead of emails...

[attachment deleted by admin]
Logged
Treviño
Full Member
***

l33tness: 1
Offline Offline

Posts: 24


View Profile
« Reply #2 on: January 30, 2008, 08:55:28 PM »

I've added the code to replace the user email with its nick...

For a better output rendering we should study a little the appendOutputText function, maybe creating a new style for such kind of messages...

[attachment deleted by admin]
« Last Edit: January 30, 2008, 09:01:50 PM by Treviño » Logged
Astu
Hero Member
*****

l33tness: 2
Offline Offline

Posts: 140


View Profile
« Reply #3 on: January 31, 2008, 09:17:33 AM »

Great, this plugin it's getting better =)
The best would be to get the nicknames of that conversation using the logger plugin, but for the moment it's anyway really good!

There was some mess with indentation in your code, probably because you used tabs instead of 4 spaces... It works but I corrected it just for readability: I did also a little modify to your code...

I also added your name in authors.

For the output rendering I think the best would be to use the conversation theme of the user printed in grey, I don't know If you get what I mean Grin
« Last Edit: January 31, 2008, 09:29:06 AM by Astu » Logged
Treviño
Full Member
***

l33tness: 1
Offline Offline

Posts: 24


View Profile
« Reply #4 on: January 31, 2008, 05:16:18 PM »

Yes of course... That's exactly what I tought too...

Btw for the moment I've not so much ideas how to get it, since I'm using/modding emesene since few days... Tongue
Logged
dx
h4x0r
Administrator
Hero Member
*****

l33tness: 15
Offline Offline

Posts: 535


<insert stuff>

dx@dxzone.com.ar
View Profile WWW Email
« Reply #5 on: February 06, 2008, 08:28:18 PM »

Nice, simple plugin. I'll add the required code for gray messages in Conversation*.py tomorrow, and then upload to svn. The plugin name still requires some work..


BTW, I did more style changes (like adjusting to 80 columns and turning some attributes into constants), here it is

(warning: not tested)
Logged

asd
Astu
Hero Member
*****

l33tness: 2
Offline Offline

Posts: 140


View Profile
« Reply #6 on: February 08, 2008, 11:58:07 AM »

I'm using you corrected version and it seems to work perfectly, thanks for your help! I'll wait for the thing of grey messages Smiley
Logged
Noran
Sr. Member
****

l33tness: 0
Offline Offline

Posts: 67


View Profile
« Reply #7 on: February 12, 2008, 02:49:09 PM »

since rev1015, it doesn't work.
Logged
louizatakk
Hero Member
*****

l33tness: 1
Offline Offline

Posts: 426



View Profile Email
« Reply #8 on: February 12, 2008, 03:16:17 PM »

since rev1015, it doesn't work.

+1.

DOESN'T WORK SadSad
Logged
C10uD
Administrator
Hero Member
*****

l33tness: 16
Online Online

Posts: 765



View Profile WWW Email
« Reply #9 on: February 13, 2008, 01:32:34 AM »

http://emesene.org/smf/index.php/topic,524.msg4426.html#msg4426
Logged
Astu
Hero Member
*****

l33tness: 2
Offline Offline

Posts: 140


View Profile
« Reply #10 on: February 13, 2008, 09:29:01 AM »

If I'm right, only the line about the config should be changed, now it seems to work as before Cheesy
I made also a little change: now the nick of your friend should support aliases, so, if you give your friend an alias it will be used in lastsaid plugin as in the conversation (I copied this from another plugin =D)
Logged
thur
Hero Member
*****

l33tness: 2
Offline Offline

Posts: 150


View Profile
« Reply #11 on: February 13, 2008, 09:41:14 AM »

Great!
Love this feature!


But this affect the logging stuff?! =]
Logged
Astu
Hero Member
*****

l33tness: 2
Offline Offline

Posts: 140


View Profile
« Reply #12 on: February 13, 2008, 09:56:20 AM »

[...]But this affect the logging stuff?! =]
I didn't exactly understand... However it simply reads the last logs of conversation and prints it, so it doesn't affect anything...
It only needs the logger plugin enabled, maybe you meant this?
Logged
Noran
Sr. Member
****

l33tness: 0
Offline Offline

Posts: 67


View Profile
« Reply #13 on: February 13, 2008, 11:28:49 AM »

I believe i understand his question.
He asks if, when you reads last logs, you simply writes them like in a traditionnal conversation. Because in this case, it probably generates more and more log size each time you gets back last log.

Sorry for my "original" english  Roll Eyes
Logged
thur
Hero Member
*****

l33tness: 2
Offline Offline

Posts: 150


View Profile
« Reply #14 on: February 14, 2008, 07:08:38 AM »

I believe i understand his question.
He asks if, when you reads last logs, you simply writes them like in a traditionnal conversation. Because in this case, it probably generates more and more log size each time you gets back last log.

Sorry for my "original" english  Roll Eyes

exactly what I meant! O.O
thank you Noran! ... now get out of my thoughts! x.x
Logged
Pages: [1] 2 3 ... 5
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!