Author Topic: Customization of RC [DISPLAY PHOTO]  (Read 3321 times)

Offline Spaceman

  • Newbie
  • *
  • Posts: 9
Customization of RC [DISPLAY PHOTO]
« on: January 26, 2012, 10:46:02 AM »
Hello,

Is it possible to add a contact picture to one of the cols in Message List?

I am not using the , so could I use it to display the sender's picture?

In order to get it done, I suppose I would have to add an sql select statement inside , right?

I've searched and can't seem to find the file which generates the , where can I find it?


Thank you. :)

Offline Spaceman

  • Newbie
  • *
  • Posts: 9
Customization of RC [DISPLAY PHOTO]
« Reply #1 on: January 30, 2012, 06:15:53 AM »
Anyone knows where the file is located? I can't seem to find it :/

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Customization of RC [DISPLAY PHOTO]
« Reply #2 on: January 30, 2012, 07:39:21 AM »
i think you can do it with a plugin on the messages_list hook
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline Spaceman

  • Newbie
  • *
  • Posts: 9
Customization of RC [DISPLAY PHOTO]
« Reply #3 on: February 02, 2012, 11:02:26 AM »
Hi JohnDoh,

I must confess I don't know Object Oriented PHP (I am learning at a very slow pace because the project i'm in doesn't allow much time to learn), so it's a bit difficult sometimes to work around the plugins.

What I would ask is if you could point me to a more specific location as to where the 'cols' in the message list are created so that I can figure out how to put some data inside.

For instance, I'm thinking of using the 'size' and 'threads' cols to put inside the contact's photo (using a db query) and the delete message button.

Can I do that? (I suppose it's not a very organized way to do it, but I'm extremely low on time to learn Object Oriented PHP)

Thank you! :)



edit - ok, so I managed to find the  mail/program/steps/settings/edit_folder.inc file and I can add an extra col called 'photo'.


// Settings: sorting column
...
$select->add(rcube_label('photo'), 'photo');


But I still have no clue as to where I can find the place to add content inside that label / col.
« Last Edit: February 02, 2012, 11:11:28 AM by Spaceman »

Offline candylost

  • Newbie
  • *
  • Posts: 1
    • http://www.doremisoft.net/AVCHD-Converter-Mac/
Customization of RC [DISPLAY PHOTO]
« Reply #4 on: February 03, 2012, 12:38:57 AM »
:D Just read.

Offline Spaceman

  • Newbie
  • *
  • Posts: 9
Customization of RC [DISPLAY PHOTO]
« Reply #5 on: February 06, 2012, 12:03:51 PM »
candylost: read where?

I'm still stuck at this... can you guys help me out? :)