[Answered] Updating user profile renders it "unpublished"?

[Answered] Updating user profile renders it "unpublished"?

9 replies
Joined: 09/11/2007
User offline. Last seen 1 year 13 weeks ago.
I noticed that when a user updates his/her profile, the user profile becomes unpublished. How to solve this, based on this tutorial (since it's different from the basic node tutorial in drupal.org)?
Joined: 08/21/2007
User offline. Last seen 7 weeks 2 days ago.
Know the feeling see this topic...

http://shellmultimedia.com/comment/reply/299/1048

Frezno, mite we have the same issue here?

Mouse

Joined: 05/13/2007
User is online
Unpublishing

The unpublishing problem is a known issue from the hack on the edit form to render differently for other than admin users. Just take that out. AFAIK, it's not related to your WSOD problem, mouse77e.

Michelle

rich (not verified)
Putting this blurb in the

Putting this blurb in the 'node-uprofile-edit.php' script seems to fix the unpublishing problem without displaying every option to the user (just make sure all of your user profiles are published before adding this). Just stick it somewhere above the bottom of the script:

print '<div style="display:none;">';
  print drupal_render($form['options']['status']);
print '</div>';

Joined: 05/13/2007
User is online
That works

That works but is still just as hacky. I've finally broken down and looked at doing a form alter and it's not quite as scary as I thought. I'll have that fix in the next revision.

Michelle

Joined: 09/11/2007
User offline. Last seen 1 year 13 weeks ago.
Thanks!

It works!!

Joined: 06/07/2007
User offline. Last seen 50 weeks 3 days ago.
thanks a lot for this simple

thanks a lot for this simple idea, i was nearly going nuts... i spent 3 days just trying to fix this without any success...

Visitor (not verified)
" I'll have that fix in the

" I'll have that fix in the next revision. "

when ?

thanks

Joined: 05/13/2007
User is online
Hard to say

There's a lot of work involved. Hopefully within a month or so.

Michelle

Joined: 09/25/2007
User offline. Last seen 27 weeks 1 day ago.
Almost there ...

Whenever there's no profile yet and I am loggin other person, whenever, I am viewing other person profile, I got this warning.

warning: Invalid argument supplied for foreach() in C:\wamp\www\drupal\modules\user\user.module on line 1529.
This user has not filled out a user profile.

however, if I login as the right person, I got "Create your User Profile" as it should be.

I have no problem to save edited profile.

Post new comment
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options