Hello,
When a registered user wants to add an image or a video it's the standard 'images' folder which is chosen.
I installed JFuploader for creating folders for all users like "images/uploaders/username/"
Is there a way to let users see only their own folders.
Is the path relative to a php file ? Perhaps that i can use a mysql query like that ?
$user =& JFactory::getUser();
$u_id = $user->id;
$db =& JFactory::getDBO();
$query1 = "SELECT username FROM jooml_users WHERE id=".$db->quote($u_id).";";
$db->setQuery($query1);
$result1 = $db->loadResult();
Path will be images/uploaders/$result1/
Thanks for any help
(I know i can change the path for images and files in joomla media manager but how to set the path relative to my user/username ??)
When a registered user wants to add an image or a video it's the standard 'images' folder which is chosen.
I installed JFuploader for creating folders for all users like "images/uploaders/username/"
Is there a way to let users see only their own folders.
Is the path relative to a php file ? Perhaps that i can use a mysql query like that ?
$user =& JFactory::getUser();
$u_id = $user->id;
$db =& JFactory::getDBO();
$query1 = "SELECT username FROM jooml_users WHERE id=".$db->quote($u_id).";";
$db->setQuery($query1);
$result1 = $db->loadResult();
Path will be images/uploaders/$result1/
Thanks for any help
(I know i can change the path for images and files in joomla media manager but how to set the path relative to my user/username ??)