Hi Drupalers,

I wanted to provide a "new" module for users as nodes. Unlukyli in a forum post I can not attach fieles so i will oben a new task.

Hi,

as I promissed yesterday in my post I worte a "new" module for user as nodes. Thanks to Jeff Robbinson and his bio.module. I lend some code from him!!!!!!

OK I made a work around, that needs to be reviewed by some good Drupal coder, I´m just a webdesigner.

What does the module.

1. It provides a node type for each user where any user just can have one! This node type is created and publish the moment anybody goes to the user account.
2. It provides by default two tab´s in the core user profile. One for viewing the content type and one for editing.

In admin>>settings>>user_tab you can make the following settings: 1. Rename the Tab to anything you like, 2. Take over the core user profile 3. View the tab at the core user profile.

In admin>>content>>types you will find the basic node type called "User Profile". It just has an Title and Body field but with CCK, Views and theming you can do a lot with it. With the node type you can make user listings based on the "user profile" etc.

Don´t forget to configure the rights.

TODO: write a uninstall to delet the nodes after uninstaling the module or a user! Maybe find a better way for the auto creation process of the node.

I hope that someone will help me to bring it to an end and make a god module out of it.

Dirk

here comes the module

Comments

designwork’s picture

StatusFileSize
new196 bytes

Now the install

Dirk

designwork’s picture

StatusFileSize
new250 bytes

the info

Dirk

nancydru’s picture

You need to apply for a CVS account and submit this as a contributed module.

designwork’s picture

StatusFileSize
new6.64 KB

Hi Nancy,

how do i do this?

Dirk

PS I found still an access problem with the "edit your user profile" tab, but its solved now. See the new module.
Will you test it and give me some feedback?

sepeck’s picture

Status: Active » Closed (won't fix)

See http://drupal.org/node/22286 Contributed module to get started. Marking this as won't fix.

kbahey’s picture

There are modules that already do this or part of this.

They are

- bio
- nodeprofile
- usernode

Better join forces with them rather than write a new thing with duplication of effort.

designwork’s picture

Hi kbahey,

yes I know about that modules. First I was refering a discussion at www.drupal.org/node/160546 reading this and some other issues. I decided to make my own try. You may ask why. First all of the modules you mention have different pros and con.

But basicly all of them from a usability point do not behave like the core user.module. You go to create content to create your "profile". I belive thta this is a weak point of all of them. If I´m a user I want to stay in one "frame to do all my things" like in xing or google. This is what our clients expect from us when they want a new "CMS-website".

Lets go and see what the modules do exactly: Usernode auto generates a node for each user, to use it in views ect. You can use CCK to put some fields in it but it will never rederect you to your account after editing your content. You may not rename it or give it a different title it will breake. You can via your template overide the default user profile and than you have one user one node profile! How to put additional pages in a user page with usernode and you have no tabs like in core.

Nodeprofile looks like a more advanced solution, but it will not autocreate, a node for each user. Its needs one more module to restrict the node population to one: nodefamily. It wont give you additional tabs in your profile. It just displays new content types at the user profile with two subtabs. If you want to create or edit your content you will not be rederected to your profile after this. i allready had a conversation with fago some month ago about this.

Both of these modules use a lot of code, so its not easy for any developer to make some custom features for them.

Finally the bio moduleOne node for each user, but not auto created. First the user have to go to create content and then he has only the right to edit it. He may not go to create content any more. But he has to find a different link else where to edit his Profile. You have a function link in it to display a link of the user on any node type that he created (First you chose the node). This for me is a dubbel of the submitted by link. Than you may chose wich content type to display at the user profile instad of the bio. But why I nerver got the point. If you chose to display, view and edit the bio node at the user profile the tab is a "MENU CALLBACK" and let you edit the node via the user profile. The content of the node is displayed at the core profile "view tab".

God is that you have a tab in the user profile, god is that you can take over the core profile. God is that it has only 300 lines of code, easy to custom.

So after all this research I did and looking around in the forums, developing two big websites for my german clients I allways found that it was all to complicated and I did not liked the usability of all of them. Not as a user not as a admin. So I developed some modules for my clients with help of a very god coder Jutta Horstmann, that have a usability more like xing or google. But when we developed the modules there where very client specific and not meet the expectations of a drupal user.

So there for I decided to make my own try. My module can auto create a node for every user, it has two tabs in the user profile one for viewing and one for editing, like the core profile. I think this is easier for a site user (one profile page, one behavior). It does not display the content of this new node at the core profile (view tab), its displayed under the new user tab. You can rename the tab via the admin settings. For me very important, because I do not have theme the template.php for this. So for me this tab can be "biography" for you it can be "my sports" but in the background everything stays the same. You may take over the core profile if you want. After edditing your content you will be rederected to your profile page. Any user can give the node an individual title. So you have the tab "my sports" and an user title "bike", but if you go to edit it will show you "my account" as title to let it clear where you are.

So its not perfect but give it a try.

Dirk

lias’s picture

Will you be supporting this module for drupal 6 and future versions? Following progress of this and other module possibilities for user as node.

designwork’s picture

Hi Isabug,

this is not an oficial drupal module. And I got no CVS account, so I will not support this module. I will try to join my forces with the maintainer of the bio module.

Dirk

lias’s picture

Thanks for the reply and your work. I know that I have gone back and forth trying to decide which module(s) to use for user profiles.

nancydru’s picture

designwork’s picture

Hi Nancy,

thanks for the hint´s. But I allready applied for a CVS account but my project was not exepted. And I´m not programing on on a windows machine. I´m a apple nurde.

But anyhow thanks.

Dirk

bgogoi’s picture

r u still maintaining this personally .. somewhere.. I can download the latest?

designwork’s picture

Hi bgogoi,

what drupal do you run? I' have several "modules" like this for 5 and one alpha for 6.

So tell me what you need.

Dirk