I am working on a site where users can submit many different types of content and media, and should be able to sort their own media under their profile (node_profile). This way users can make albums, gallerys, folders for projects, class projects, etc. and their tags dont effect other users content. I know i can use views and tagging to show only content from that user. But my problem is if a user wants to make an image album called "friends" to store those photos in, then that user gets a warning "a node with that name has already been created". So i know it would probably be tags, or categories of some sort, but i cant figure out how to make it they are per user.

So far the best idea i can think of is to ues the rules module to create the users node+profile when the users account is created, along with auto node title making each profile unique. That profile is treated as a vocabulary/container and has content types associated with it (image, video, blog, project) and has free tagging enabled to to make the terms/categories. I could also make a custom content type called album for albums. But thats not the problem. I cant figure out how to make that node_profile have the node types auto associated with it. and since the user will be able to edit their profile those term/category settings should be hidden to users without permissions. So the roles "developer" and "admin" can still see the options. I basically want to hide the entire "Container Information" section on the node edit form so they cant change them.

I just can figure out how to do this. anyone?

Comments

WorldFallz’s picture

I'm not sure I understand the problem, and I've never used node_profile ( i wasn't even aware it was availble for d6), but you don't get any warnings about duplicate node titles unless you've installed a contributed module that does that. Nodes are numbered uniquely-- with core drupal you can have as many different nodes titled "friends" as you like.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

luckysmack’s picture

Basically i want to set it up so the nodes that a user creates are set as children of the node_profile. So, when a user creates their account, the rules.module automatically creates the node profile for that user. The node_profile content type is set to act like a container (as im using category.module and not straight taxonomy). so the nodes that should be associated with it are the image, video, podcats, and project nodetypes so when the user makes one of those nodes it is a child of the node_profile container.

The other reason i want to set it up like this, is if i just have a container called images, and the user wants to take an uploaded image and place it into a gallery they already made, the list will show all gallery names that all users have made since they are all under the images container. I want each users content to be completely separate from other users. If i use the image gallery module only the admin can create any galleries unless i give admin permissions which im not going to do.

Similar to how sites like youtube, myspace, facebook, etc. where users' 'stuff' can be organized with their own tags or galleries without interfering with another users if they were under one container. so i wanted to make all users content to be children of their profile so its theirs, and not just some content they wrote on the site with tags on it

Im sure there may be a few ways to do this but could only think to try it this way as it seemed like it would work the best. Im open to other suggestion as well. But i just tried a few things that show this might not work either. So I guess im still trying to figure it out.

-----------------------------------------------------------------------------------------------------------
"The level of our success is limited only by our imagination" -Aesop

WorldFallz’s picture

Are you sure you're using d6? The only profile as nodes module I know of for d6 (content_profile) already integrates with the user account pages and optionally the registration process as well.

Also, I think you may be overthinking this-- alll user created content is already automaticaally theirs by virtue of the $node->uid (author) attribute. To create various listings of all user related content, you can simply use views with that relationship for filters and arguments. Panels makes it easy organize all that content on the user page or you can try looking at the advanced_profile module.

The node relationship modules are usually used to relate nodes to each other, not users (which is already done automatically).

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

luckysmack’s picture

And im awayre that according to drupal the author owns all the nodes they make via uid. I state i want them to be children because when a user makes a gallery i dont want the heirarchy they can make to organize their media to interfere with other users. So i would say all their content are child nodes of their profile. Im also aware that content_profile does what you said. Im also awarethat when a user makes a node it can have the same node as another nid. but if the user creates a term and has those terms in a list when adding an image to effectively add that image to that nid in the list (or that gallery in this case), the times ive tried this it shows all the terms that all users make including duplicates. So i wanted to isolate a single users content from another users.

As with views, displaying the results of images owned by a user, or the child of a taxonomy is easy with filters and arguements. But i cant get rid of the other users' galleries in the list when a user wants to add their image to one of their galleries they made and not have the options of choosing any gallery from any user from the list of created galleries (via nodereference)

-----------------------------------------------------------------------------------------------------------
"The level of our success is limited only by our imagination" -Aesop

Cannon Fodder: "The term derives from fodder - food for livestock - howe