Image upload file in public page

Permalink
Hi,

I have a question, I need to put an image file into a page accessible to "Registred users"...

So I created a new page with an element :
<?php echo $al->image('photo1', 'profile', t('Choose Image'), $photo1, $args);?>

But the "Choose image" link will not work, it was not clickable...
I asked on the chat (irc) and someone told me that I have to put right (view) on Dashboard.

I did it and it works BUT now the problem is that the registred users saw the DASHBOARD button and can access to dashboard...

How can I put an image "upload" system on a public page (for Registred users) but without give them access to dashboard ?
Second question is it possible to put rights on "file manager" to let users see ALL these files but not ALL files ?

Thanks for your help

Benoit

 
adajad replied on at Permalink Reply
adajad
The easiest way to go here is to use 'Front End File Manager' by JohntheFish: http://www.concrete5.org/marketplace/addons/front-end-file-manager/...

If you don't have any budget at all you will have to tweak the permissions a bit. Are you on basic or advanced permissions?
benoitvdl replied on at Permalink Reply
Hi,

Thanks for you answer, actually on this site I put the "Advanced permissions"...

I don't really need a public filemanager with all functionnalities, I only need that users (registred) should be able to upload images into the file manager. I don't need they access to files into file manager,... But if it's possible to automatically create a set for each user and let them manager this site, it should be great ;-)

Benoit
adajad replied on at Permalink Reply
adajad
If you don't need them to see the uploaded files you can always use the Form block and use 'File Upload'. The uploaded files will then be added to the File Manager but not associated to any set.

Edit: I didn't read your post obviously... I bet you can create a custom form block which also add the files to set (using uploader user name). But if you want to let them view the files you need to give permissions on Dashboard (excluding subpages), Files, File Manager, File Sets.
benoitvdl replied on at Permalink Reply
Thank you,... like this it works.

Now a little question about this form.

I used : <?php echo $al->image('photo', 'profile', t('Choose Image'), $bf, $args);?>

But when my user come back to the edit form, i want that the image field show the current image.

In my database I have the fileID but how can I pass this var to the element to show the image into the field ?

Thanks
benoitvdl replied on at Permalink Reply
No idea ?

I just want to make like for each image field in concrete5.
I want to show the selected image into the field when I edit my new block.

I have the fID of this file but I don't know how to use it into the function to show image thumbnail :

<?php echo $al->image('photo1', 'profile', t('Choose Image'), $photo1, $args);?>

Thank you for your help
amita replied on at Permalink Reply
amita
Even i have same problem with my custom block.Please anybody can help us....