I'm not certain if this is a bug or not but thought you'd be interested to know.

I'm using the Online Status module in the User Profile. Within MySite->Settings->Profile, I see "Online Status" listed as one of the options and check the checkbox to include it in the user's MyStite. Then, when I go to configure the "Default page content" and select to configure "Profile", I do not see "Online Status" as an option.

I am using Drupal 5.5 with PostgreSQL.

Comments

agentrickard’s picture

Status: Needs review » Active

Very likely a bug.

http://drupal.org/project/onlinestatus is the module, right?

agentrickard’s picture

OK. This is a documented issue with how the profile plugin works. Not all users have the same profile fields.

Default configuration at /settings/mysite/types/profile takes the data from user 1.

But the configuration for 'default content' uses user 0. Looking for a fix.

Currently, the defaults set under settings are applied to new users.

WISEOZ’s picture

Yes, you have the link to that module correct.

I can't personally do much more than test and configure (although I have created some custom droplets from Views with the argument handling code you provided ;>). My business partner is going to see what he can see and we'll let you know if anything stands out. My other option is to create a custom droplet to pull the online status information in directly but I didn't want to go hacking that just yet.

agentrickard’s picture

Status: Active » Needs review

Try this.

Edit profile.inc, lines 296:

function mysite_type_profile_elements($uid = 1) {
  $data = array();
  if ($uid == 0) {
    $uid = 1;
  }

That should fix the issue.

WISEOZ’s picture

Status: Active » Needs review

BRILLIANT! .. yet again!!! It worked like a charm!

And, I must say that of all the Drupal people and modules we've worked with so far you and MySite have been the best. You're very intelligent and responsive and the MySite module has offered us a tremendous solution for improving the user experience over the drab user profile and the disjointed blog and guestbook and so on.

Are you available for any Drupal work beyond MySite? Do you do theming? We are neck deep in Drupal and have a list of work that we will probably want to farm out real soon.

agentrickard’s picture

Status: Needs review » Reviewed & tested by the community

Thanks. Send me a note using my contact form. Typically, I do not take contract work, since I have a day job.

agentrickard’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Fixed in 5.x.3. Thanks.