Keyword

How media manager works

  • hares7293
  • hares7293's Avatar Topic Author
  • Offline
  • New Member
More
12 years 3 months ago #66987 by hares7293
How media manager works was created by hares7293
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 ??)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum