Hi guys!
I had just managed to set up a private messaging functionality in member area using messages.php clonable template and databound forms.
The template looks like this:
In list-view, the private messages are shown for the receiver members using:
Now I'm thinking it would be nice to allow members to access/display not only the received messages list, but sent messages list, too. So I'm wondering, could I use somehow a dropdown-box with 2 options: Received messages (preselected) and Sent messages in order to switch/filter the results accordingly? Any idea?
Thanks!
I had just managed to set up a private messaging functionality in member area using messages.php clonable template and databound forms.
The template looks like this:
- Code: Select all
<cms:template title='Messages' clonable='1'>
<cms:editable name='senderid' required='1' type='text' />
<cms:editable name='sendername' required='1' type='text' />
<cms:editable name='message' required='1' type='textarea' />
<cms:editable name='receiverid' required='1' type='text' />
</cms:template>
In list-view, the private messages are shown for the receiver members using:
- Code: Select all
<cms:pages masterpage='members/messages.php' custom_field="receiverid==<cms:show k_member_id />">
... message info displayed here .....
</cms:pages>
Now I'm thinking it would be nice to allow members to access/display not only the received messages list, but sent messages list, too. So I'm wondering, could I use somehow a dropdown-box with 2 options: Received messages (preselected) and Sent messages in order to switch/filter the results accordingly? Any idea?
Thanks!