Although we want to add this as an official feature a temporary hack for hwdVideoShare would be...
Edit his file:
<JoomlaRoot>/components/com_hwdvideoshare/models/upload.php
Around line 936 you will see the function
uploadMedia().
Under the line 943 add the following, so the file reads:
$usersConfig = &JComponentHelper::getParams( 'com_users' );
// check for upload limit (temporary hack)
$db->SetQuery( 'SELECT count(*) FROM #__hwdvidsvideos WHERE user_id = '.$my->id );
$videoCount = $db->loadResult();
echo $db->getErrorMsg();
if ($videoCount > 5) {
global $mainframe;
$mainframe->enqueueMessage("You have reached your maximum upload limit and can not upload any more videos.");
$mainframe->redirect( JURI::root().'index.php?option=com_hwdvideoshare&task=frontpage&Itemid='.$Itemid );
}
$sessid = session_id();
Please note, I have actually added this code into the software but commented it out. It will be uploaded with the
Nightly Build tomorrow night at 18:00 GMT.
The hack would be similar for hwdPhotoShare but I have not added that code yet.
Does this help?