By BruisedGhost on
Hi all,
I am trying to add a upload section to a users profile so that only the user and site admin can see the resume. Essentially I need a new user to be able to login and upload his or her resume via pdf, doc, etc and Im not quite sure how to do this. Is this possible to do with the drupal core upload module?
any help would be most appreciated!
Comments
=-=
not possible out of the box because profiles aren't nodes. However, you can check out some of the modules that allows profiles to be turned into nodes. This may actually be easier with Drupal 6 with the content profile module and the like.
needs to be on drupal 5
I figured that might be the case, unfortunately the site for the most part is completed and its in drupal 5. I thought maybe I could use the WebFM module and create individual folder for each user with individual permissions on that folder. Normally I would do somthing like this however the end user of this site is not terribly computer savy and anyway I could get this automated would be immense help.
I am also using ubercart with this site, after the user purchases the item would it be possible to redirect them to a file upload page?
Try this
You could create a content type with CCK for the resume and use the Content Access module to limit access to a resume node to only the author and the admin.
Try This
Yes. Create a CCK Content Type named Resume and allow file attachments to this content type.
Go into User Management>>Access Control>> and give appropriate create/edit permissions.
Create a view. Check to box to make it a block view. Add some empty text like " No Resume added"
Add filters: Node:Author is currently logged in user. Content type is Resume. Node = published
Save the view.
Go into Admin>>Site Building >> Blocks >> and have the block of the view you just made appear in left or right sidebar or content .. this is your choice.
The important part ... Click configure on the block and Add this code to the text area on "Page Visibility Settings".
Make sure you check the box that says Show if the following PHP code returns TRUE
The code above will only output the box on the user's profile page.
almost
I follow your logic, however it appears that the block is not appearing for any user admin or authenticated.
I suppose Superadmin can see
I suppose Superadmin can see this on any user profile ... but the best way to allow "admin" or whatever role you have defined as administrator on your setup is to either edit the block visibility code or (the easier way) .... clone the view ... rename it ... and go to the new block that your cloned view just made and check the box of the role you want to see it (your admin role).
This way you can add special filters, fields, edit links, etc using views. Good luck!
did that
yeah I did that for administrators to see all uploaded files. I cloned the view and just removed one of the filters
never mind I got it working
never mind I got it working twas a publishing error on my part. Thanks it worked!