Why don't this work:
I want to make a dynamic images uploads path for every logged-in user:
So I edited the config.php:
This works, even when I manually change the config.php after logging in :
#Default path and URL for uploaded images in the image manager
$hlpname = '/mary';
$config['image_uploads_path'] = '/home/w9836457/domains/notwente.nl/public_html/lattrop/uploads/images' . $hlpname;
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images' . $hlpname;
This don't work:
#Default path and URL for uploaded images in the image manager
$hlpname = '/' . $gCms->variables['username'];
$config['image_uploads_path'] = '/home/w9836457/domains/notwente.nl/public_html/lattrop/uploads/images' . $hlpname;
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images' . $hlpname;
I tried and tried and tried....
May God bless you for helping.
One minute please for config.php question
Re: One minute please for config.php question
Sorry, I have figured it out already.
$hlpname = '/' . $_SESSION['login_user_username'];$config['image_uploads_path'] = '/home/w9836457/domains/notwente.nl/public_html/lattrop/uploads/images' . $hlpname;
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images' . $hlpname;
Thanks for allll your help... oh sorry
$hlpname = '/' . $_SESSION['login_user_username'];$config['image_uploads_path'] = '/home/w9836457/domains/notwente.nl/public_html/lattrop/uploads/images' . $hlpname;
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images' . $hlpname;
Thanks for allll your help... oh sorry