foxfirefey: A fox colored like flame over an ornately framed globe (Default)
foxfirefey ([personal profile] foxfirefey) wrote in [site community profile] dw_dev_training 2009-10-28 08:44 pm (UTC)

Yes!

There are the following functions, mostly self explanatory:

is_community
is_identity -- returns true if the user is an OpenID identity
is_official
is_paid
is_perm
is_redirect -- this user redirects to another user, like with renames
is_syndicated -- for a feed account

It looks like there's no function that combines both, but you can use two functions by using an or (||) in your if statement:

if ( $u->is_personal || $u->is_community ) {
  # This if statement works for personal journals or communities
}

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting