Hello Kyle,
I tested a few things when sending private messages and here is what I noticed:
- the user can upload a file and I like it! However once uploaded the owner won't find his file in his gallery because the asset value is set to pm.[pm ID] instead of profile.[user ID]
- the user cannot just select the files or albums he wants to share with his message
- In private message plugin configuration (admin side) there is an integration with CB Gallery which is great, but there are no options for managing albums
Easily sharing albums is what we need, if users could just click on the ones they want to share in their private message to send the link it would be perfectly satisfying for us. The user albums can be found with:
Code:
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select($db->quoteName(array('id', 'user_id', 'title')))
->from($db->quoteName('#__comprofiler_plugin_gallery_folders'))
->where($db->quoteName('user_id') . ' = :userid')
->bind(':userid', $user->id);
$db->setQuery($query);
$row = $db->loadRow();
print_r($row);
But how can I customize the private message form?
Please tell me what you think