Roundcube Community Forum

Release Support => Pending Issues => Topic started by: Spaceman on January 26, 2012, 10:46:02 AM

Title: Customization of RC [DISPLAY PHOTO]
Post by: Spaceman 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. :)
Title: Customization of RC [DISPLAY PHOTO]
Post by: Spaceman on January 30, 2012, 06:15:53 AM
Anyone knows where the file is located? I can't seem to find it :/
Title: Customization of RC [DISPLAY PHOTO]
Post by: JohnDoh on January 30, 2012, 07:39:21 AM
i think you can do it with a plugin on the messages_list hook
Title: Customization of RC [DISPLAY PHOTO]
Post by: Spaceman 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.
Title: Customization of RC [DISPLAY PHOTO]
Post by: candylost on February 03, 2012, 12:38:57 AM
:D Just read.
Title: Customization of RC [DISPLAY PHOTO]
Post by: Spaceman on February 06, 2012, 12:03:51 PM
candylost: read where?

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