One minute please for config.php question

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
tebe
Forum Members
Forum Members
Posts: 10
Joined: Sat Dec 13, 2008 12:04 am

One minute please for config.php question

Post 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.
tebe
Forum Members
Forum Members
Posts: 10
Joined: Sat Dec 13, 2008 12:04 am

Re: One minute please for config.php question

Post 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
Post Reply

Return to “Developers Discussion”