Page 1 of 1
Profile Plugin, User Editing
Posted: Tue Jan 09, 2007 8:20 pm
by snorkle256
I have been scouring the forum for any information relating to this but I have not seen much.
What I am trying to do is to allow my users to edit their own profiles.
When allowing a group to see the profiles link, it also causes the configuration link to appear, showing settings (albeit unchangeable to them) that I would rather user unable to see. This is no problem as User Profiles appear also in personal configuration.
Still, how do I allow a user to edit his/her own profile?
If there actually is such information contained already in the forum, my fault, but I have been searching through it for a few days and have not found the answer I needed.
Thank you in advanced for you divine help.
Re: Profile Plugin, User Editing
Posted: Tue Jan 09, 2007 8:22 pm
by garvinhicking
Hi!
If your users access their personal configuration, they should be able to edit their profile there? Isn't this possible? What does happen?
Best regards,
Garvin
no edit button
Posted: Tue Jan 09, 2007 9:54 pm
by snorkle256
the profiles show in the personal configuration and users are able to view each others profiles but when selected on their own profile there is no editing available for them.

Shown for user snorkle.
Re: no edit button
Posted: Tue Jan 09, 2007 10:57 pm
by garvinhicking
Hi!
Thanks, that already helps a bit. Which userprofile plugin are you using exactly, and which serendipity version?
Best regards,
Garvin
Posted: Tue Jan 09, 2007 11:02 pm
by snorkle256
Serendipity 1.0.1, User Profile .18 (is that really supposed to be 1.8?)
I've tried to find a newer version but alas everytime I user Spartacus or just the plugin link here, its the same one so I assumed it was the newer.
Yet I've seen you referencing a few different version, which should I be using?
Posted: Tue Jan 09, 2007 11:08 pm
by garvinhicking
Hi!
Okay, that one is the recent version.
I believe it's because of this check in serendipity_event_userprofiles.php:
Code: Select all
return ($user['userlevel'] < $serendipity['serendipityUserlevel'] || $user['authorid'] == $serendipity['authorid'] || $serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN);
maybe you could try to change it to:
Code: Select all
return ($user['userlevel'] <= $serendipity['serendipityUserlevel'] || $user['authorid'] == $serendipity['authorid'] || $serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN);
? But I believe there's an other error so that $user['authorid'] is not == $serendipity['authorid']. Maybe you could echo both values, if you know how to?
If not I'll try to look into this next week. Another try you might want to do is to upgrade to Serendipity 1.1 - I believe the $serendipity['authorid'] value was fixed there in some ways, but I'm not sure.... ('Im running out of time this week *g*)
Best regards,
Garvin
Posted: Tue Jan 09, 2007 11:11 pm
by snorkle256
Thanks for the quick reply. I have been planning on upgrading but as of yet haven't. I will cure this promptly.
As far as the php goes, I am comfortable editing the lines but not to create them. I will take a look at what you have shown.
I'll let know know how it turns out.
Thanks again.
Update good, edit bad
Posted: Wed Jan 10, 2007 2:30 pm
by snorkle256
Ok, the update is complete and I am happy that I am running the current version of s9y. However, the edit you suggested give a user the ability to edit everyones profiles. Not good.
What would echoing both values accomplish if i were able to do it and how woudl I go about doing so?; Just talking another php script designed just to echo both to learn their values??
Posted: Wed Jan 10, 2007 3:37 pm
by snorkle256
I think I've decided that I don't want to use the Profiles plugin as of right now.
I had the though that once I gain more users, that drop down box is going to be a pain.
I supposed I will have to wait for a major edit of this plugin that simply places the profile editing form directly into a users personal configuration.
Until then I'm just going to uninstall it.
Posted: Thu Jan 11, 2007 9:38 am
by garvinhicking
Hi!
I'll try to see to make it work at the end of next week or the week after that, when I have more time. I'll let you know here in this thread once it is done!
Best regards,
Garvin
Posted: Sun Jan 14, 2007 5:44 pm
by garvinhicking
Hi!
I just committed a new version 0.20 of the userprofiles plugin which should accommodate your wishes!
HTH,
Garvin