Shell Multimedia Tutorial

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

Hey there ... i was just trying to adapt the 'Step by step creation of a full featured user profile' recipe, Michelle did on:

http://shellmultimedia.com/node/5

... when I realized, that due to the overload of request, she quit the support (so to say). So I thought, this group would be the most appropriate place to discuss matters on this tutorial.

Maybe someone in here has successfully adapted the thing. I have a specific problem:

(I just want (node)profiles, that come without the redundant headlines of usernode, so i adapted the recipe without auto nodetitle, token, buddylist, private msg, panels and contemplate.)

I adapted it unto Step 4 where the Edit Account Tab is fixed.

Now, I do see the same Result like shown in the Example:

How it should look ...

... but when i click the 'Edit Account' Tab, the create Content Selection appears below the Tabs:

Screenshot

This Happens, also, when the modifications in template.php are commented out!?

... So - If anyone of you has the slightest Idea, where i should continue my troubleshooting, PLEASE tell me ... maybe its not that complicated after all ...

Thanks for reading all this ;), F.

Comments

Quit support?

michelle's picture

Granted my response time is often measured in days, which isn't quick enough if you're on a deadline, but I do answer all the comments, emails, IRC questions, and misc forum posts that I run into eventually. So, no, I haven't quit supporting it. I have no problem with you looking elsewhere for quicker support, but I wanted to be clear that I'm still doing my best to keep up with all the questions.

As to your question, what is the machine name of your user profile? This is the code that controls it:

    if (($user->uid == $account->uid) || user_access('edit uprofile content')) {
      $items[] = array(
        'path' => "user/". arg(1) ."/edit-profile",
        'title' => t('Edit Profile'),
        'callback' => 'nodeprofile_bonus_lonely_node_page',
        'access' => TRUE,
        'type' => MENU_LOCAL_TASK,
        'callback arguments' => array("uprofile", arg(1)),
      );
    }

Unfortunately, this is one of the places where I hardcoded "uprofile" since I'm not sure what to do with retrieving the name and dealing with the possibility that there may be more than one nodeprofile content type. If you've named your content type something else, then the problem possibly is that it's not finding it and throwing up the general create content page instead.

If that's not it, let me know, and I'll try and dig into it more.

Michelle

Thank ...

mimhakkuh's picture

you so much, Michelle - of course, that was the problem - line 33 and 40 of the nodeprofile_bonus.module file (from the .zip). Great tutorial, now it seems to work really smooth :)
For the support thing - sry, if there was a misunderstanding - for me it sounded like questions should be taken onto a forum.

Cheers, Felix

Glad it's working

michelle's picture

Not sure why you thought support needed to go to the forum? Unless you're referring to my post on the handbook page of the old tutorial? That's a separate issue. I didn't want to keep cluttering up the Drupal handbook with comment after comment. Also, I'm not supporting that old tutorial anymore simply because I don't do it that way anymore and don't recommend it.

The current tutorial, though, on my site, I'm still actively supporting as best as I can. Hope that clears things up.

Michelle

Profiles as nodes

Group organizers

Group notifications

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

Hot content this week