Hello,

I am using content profile module . So i made two content type - 1: profile 2: otherprofile.

I have also used Account profile to see the account fields when profile edited.
I also want to use for otherprofile edit also.

But in Account profile module admin setting form admin/settings/account_profile
There is radio button to chose one of them content type to show user registration field when edit.

But i need in both what i have to do

I struck over here .I think it should be given by the module itself.

Thanks

Comments

cis.drupal’s picture

Title: Not working with multiple content profile » Account profile Not working with multiple content profile
cis.drupal’s picture

Assigned: cis.drupal » Unassigned
cis.drupal’s picture

Priority: Critical » Normal
Status: Active » Needs work
kenorb’s picture

Status: Needs work » Active
seanb’s picture

StatusFileSize
new1.13 KB

I just created a patch to check wich roles the current user has. It checks if the user has the prefered profile role, or else use the first role it can find. If the user don't have any extra roles (for example user 1 in my case), there is no redirect.

A patch is attached, I hope it helps.

Regards,
Sean

seanb’s picture

Status: Active » Needs review
StatusFileSize
new937 bytes

The previous post can be ignored. As a collegue pointed out, this only works if the content type names are equal to the role names. I created a new patch. This time we check wich content profiles a user has access to. if it's only 1 content type, redirect the user. If a user has more content profiles, we use the default profile.

Regards,
Sean

delykj’s picture

subscribe

kenorb’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Closing as per Drupal 6 end-of-life. Unless somebody can provide a clean, tested patch.