New tutorial coming

Events happening in the community are now at Drupal community events on www.drupal.org.
michelle's picture


Update Aug 13: Made an aliased link to the tutorial: http://shellmultimedia.com/tutorials/user-profiles

Update May 7th: Partway through this tutorial the new nodeprofile version came out and I decided to switch. The tutorial at node 41 is still there but will not be finished. I have written a new tutorial at

http://dev.shellmultimedia.com/node/48

This tutorial is nearly finished. It needs testing and I need to work on pulling all the CSS out of my theme since a lot of it is intertwined. I'm also planning on making screenshots as I go along. I'd love feedback on it so I can get all the kinks worked out before moving it off the dev site.


I finally finished my profile page, at least as much as I'm going to for the moment. The gallery section needs to wait until I sort out what I'm doing for media on the site. You can see what it looks like here:

http://dev.couleeregiononline.com/users/superadmin/profile

That's my dev site, so feel free to make an account and put in a profile if you want to see what it looks like from a user perspective. I've started on the tutorial, but there's not much there, yet.

http://dev.shellmultimedia.com/node/41

Once it's done, I'll move it to Drupal.org. I tend to work on things in fits and spurts, so it may be a while.

Key points:

  • The profile is done by adding CCK fields to the usernode itself. This practice is not recommended by fago but it works as long as you're willing to live with the limitations (which I'll spell out in the tut).
  • There is a lot of theming both on the output of the profile and the input of the node.
  • I hacked the guestbook quite a bit to get it to work how I wanted, including a few small changes to the module itself which is definitely not a recommended practice.
  • I'm including exports of everything I can to make it easier to get up and running.

Due to some personal issues, there's likely to be a big stall on this until sometime next week, but I figured I'd post anyway so people know I'm working on it. :)

Michelle

EDIT: I changed the link to the tutorial in progress. I decided to shove all my half finished stuff into a dev site.

Comments

...

sun's picture

hmmm... I'm not able to see contents of fieldsets in Firefox.

Daniel F. Kudwien
unleashed mind

Daniel F. Kudwien
netzstrategen

Which version?

michelle's picture

They work fine for me on 2.x. Do other Drupal fieldsets work for you?

Michelle

Still coming, but I need some time

michelle's picture

Due to personal issues, this tutorial is delayed a bit. But I will still be doing it, so just stay tuned. :)

Michelle

Sexier profiles FTW! =)

netranger's picture

Sexier profiles FTW! =)

Thanks for doing this

noborders's picture

Thanks for doing this tutorial. Is the Creating a simple one user = one profile page custom profile tutorial supplementary to this?

No

michelle's picture

Actually, I wrote that tutorial as I learned how to use usernode/nodeprofile. When I got done, I decided that it really was much simpler to just use usernode and forget about nodeprofile. That tutorial is still valid for maximum flexibility, but using the usernode directly works fine for simpler needs like I have.

The tutorial I'm writing is the whole process of creating a custom user profile and usernode is just one of the pieces of it. The tutorial will go into adding views, integrating with buddylist, and theming as well.

Michelle

Bio.module

mfredrickson's picture

You should check out the bio module -- adding fields is highly recommended.

Otherwise, it works very similarly to the usernode module, but it does not require a user to create a node. Plus, you can pick any node type you want. Very cool stuff.

I'm using as the basis of a CRM system in drupal (to be released at http://drupal.org/project/crm)

Good luck
-M

bio

michelle's picture

Someone else (I think it was Robert Douglass?) recommended the bio module but never answered when I asked why. Usernode doesn't require the user to create a node, either. You can also pick any node type you want, but I just added fields to the usernode. I haven't installed bio, but the description made it sound pretty identical to usernode. So I'm wondering what advantage(s) the bio module has?

Thanks,

Michelle

Made some good progress

michelle's picture

I've made quite a bit of progress on the tutorial. It's not plug and play, yet, but there's enough there to get you going if you're willing to put some time into figuring things out. I'll keep working on it as I have time.

If anyone tries it, I'd love to get feedback. I'm trying to retroactively write this from my finished profile page and may have missed important bits. If anything doesn't make sense or doesn't work, please let me know.

Michelle

Comment to make it update

michelle's picture

This comment is just here because otherwise Drupal doesn't let anyone know something's changed on this node. :) Please see the update at the top of the post.

Michelle

Profiles as nodes

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: