Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...automatically generated user folders automatically generated user folders
Previous
 
Next
New Post
4/5/2009 7:36 AM
 

Hello,

I would need to know if there is a "quick" way to have user folders (i.e. a folders as Portals/0/[USERNAME] or i.e. a folders inside Portals/0/[USERID])
automatically generated when an user is registered or an user is created by the admin with the User management module.

Any insight will be very appreciated.

Thanks and kind regards to all,
Davide

 
New Post
4/5/2009 8:52 PM
 

 I assume you are going to want to have a module DO something with this folder - a custom module since any 3rd party modules that did a similar function would deal with making sure the folder existed...

Since it seems like it will be a custom module, you should then just have your module check of the userID folder exists, and if not, create it. And then you will have your folder created. Like a 3rd party module would do.

To do what you are asking via the built in controls, would require modifications to core pieces; Which is highly not recommended.

 
New Post
4/5/2009 9:20 PM
Accepted Answer 

I have recently built something like this for a project.  I would suggest that you do this:

- only build the functionality into a module : don't try and modify the core source.

- only create the folder when you actually need it (it is trivial to build a routine to create the folder if it does not exist)

- don't use the userid for the folder : use the username instead.  It is guaranteed unique by the system, same as the userid.  This will make it much easier to track down problems, lost folders, etc.  It will also make sorting through the structure on the server a lot easier.

- remember if you're storing securable items, then create your folders as secure folders in DNN.  You'll need to mess about a bit with this.  But otherwise it's trivial to get the contents of your users folder.  I can just go into site.com/portals/0/users/username and find whatever I want, even if by trial and error.

If you really need the folder created after registration, just put an auto-folder creation module on the page that the registration forwards to.  But it's easier to just create the folder as and when you need it.  That way you don't clutter your server with unnecessary empty folders.

 
New Post
4/6/2009 2:50 PM
 

Bruce Chapman wrote
- don't use the userid for the folder : use the username instead. 


I've always used userid, and I wonder - what is the max length of a username and is that a potential issue? Are there potential extended characters in a username that would wreak havoc when used as a directory or file name?


Eric Swanzey
www.swanzey.com
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...automatically generated user folders automatically generated user folders


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out