Page 1 of 1

One minute please for config.php question

Posted: Sat Dec 27, 2008 2:20 pm
by tebe
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.

Re: One minute please for config.php question

Posted: Sat Dec 27, 2008 5:33 pm
by tebe
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