Page 1 of 2

Personal Profile Feature

Posted: Mon May 09, 2005 8:31 am
by rahulmunjal
Dear Friends,
I was wandering if i could see a feature like:

If I click on the person's name (Say John Doe), i should be able to see a bit of his profile also instead of just all the entries that he made.

Right now, the profile may just include Name, E-Mail and 1-2 more fields that we add while creating the new user. Later on, we may add address and all also with that.

Does any of the plugin has this feature?
If not, how can we add this feature in the current code?
I would be highly obliged if some one could help me out to attain this feature.

Regarrds,
Rahul

Re: Personal Profile Feature

Posted: Mon May 09, 2005 1:40 pm
by garvinhicking
Actually, there is no such plugin.

But it can be done by creating a plugin, yes. I just created a simple plugin "serendipity_event_userprofile" which is now part of additional_plugins (should appear there within the next 24 hours).

You can try it out! Clicking on a author now also shows the information panel for him. Have fun :)

Regards,
Garvin

Personal Profile Feature

Posted: Mon May 09, 2005 1:52 pm
by rahulmunjal
Thanks a lot Garvin !
Thanks for your efforts. We demand the things and on the same day, they're up !

I really appreciate your efforts. :tup:

I'll check it and let you know if there are some tweaks to be done in that.

Regards,
Rahul

Re: Personal Profile Feature

Posted: Mon May 09, 2005 1:55 pm
by garvinhicking
Thanks a lot, I appreciate this :)

The plugin should be enhancable easily regarding the amount of fields, have a look at the code, it's not that large :)

Regards,
Garvin

Personal Profile Feature

Posted: Mon May 09, 2005 2:10 pm
by rahulmunjal
Hi Dear,

This is the information that is displayed.

Showing user profile of selected author:

Real name
Admin Person
Your e-mail address
rahul_munjal@satyam.com
City
Country
Occupation
Hobbies
Yahoo
AIM
Jabber
ICQ
MSN

Now, the 2nd task is to add this information and change the database to store this all information.

How difficult is doing that.

Please help me accomplish that task also.

Regards,
Rahul

Re: Personal Profile Feature

Posted: Mon May 09, 2005 2:14 pm
by garvinhicking
That's already in there. Go to your Admin Configuration panel, look at the lower left side. There's a "User Profiles" menu item. :)

Best regards,
Garvin

Personal Profile Feature

Posted: Mon May 09, 2005 2:40 pm
by rahulmunjal
Ohh Very Sorry.

I just overlooked that link. I found that now.

Thanks for the great piece of help. :P

Regards,
Rahul

Personal Profile Feature

Posted: Mon May 09, 2005 3:06 pm
by rahulmunjal
Dear Garvin,
I was just test running the new plugin.
There's a big big bug in that that may corrupt all the user ids and all. :shock:

Whenever u select a user and press Edit...
Change the information. And then as soon as u change the drop down to some other user...
the values get copied automatically. The 2nd user gets deleted and the first user gets duplicated as an affect of that. :oops: :oops:

I thought to bring this into your knowledge so that you could do something in that context because this is a major problem. If someone changes the combo 2-3 times, all the users will be gone. :cry:

Please provide me a solution for this too. :P

Regards,
Rahul :twisted:

Re: Personal Profile Feature

Posted: Mon May 09, 2005 3:19 pm
by garvinhicking
Oh, yes you are right! I fixed it in version 0.2 :)

Personal Profile Feature

Posted: Tue May 10, 2005 6:32 am
by rahulmunjal
Great piece of work Garvin.
But still, there's a small change required. :wink:

Hope you are not getting annoyed at me..... :cry:

In the new version that you've provided, the information is not getting stored.
Only the User Name, E-Mail are stored. Rest all the information is not getting stored even when we press Go Button.

Also, in the last version, Information was getting stored but was not getting displayed.

Looking forward for a solution for that too.

Regards,
Rahul

Re: Personal Profile Feature

Posted: Tue May 10, 2005 1:19 pm
by garvinhicking
Rahul,

thanks for notifying be about this. I've patched version 0.3 of the plugin and it should now work properly!

Regards,
Garvin

Personal Profile Feature

Posted: Wed May 11, 2005 6:31 am
by rahulmunjal
Thanks a lot Garvin.
But still a slight thing... hope this will not take much of your efforts.

Whenever we add the profile, it gets added. No Problem in that. It is also stored in the Database. Great Work !!

But whenever we edit it later, the values are not fetched from the database. I mean, we are not able to view the current values of the profile. Can it be possible that whenever we select a person and click on Edit, the current values in for that profile should be displayed. Right now only e-mail, user id are being displayed. Please it would be good if all the current values are displayed like msn, yahoo id, country, state, etc.

Once this thing gets finalised, i need to change some of the fields to make them our company specific. That it seems i can do myself and not trouble you for that. :wink:
Also, i know if i get stuck somewhere.... u are always there with a helping hand. :D

Thanks and Regards,
Rahul

Personal Profile Feature

Posted: Wed May 11, 2005 7:02 am
by rahulmunjal
Garvin,
Still its overwriting the things when we press edit after choosing the new profile when one profile is open.

Suppose i opened your profile and clicked EDIT and then saved it. Now, if i want to change my profile also, so, i'll choose my name from the Drop Down and will click EDIT.

Doing this will overwrite my user id with your details. My user id, password and everything will be changed to yours..... :(

Please have a look at it again... :)

Regards,
Rahul

Re: Personal Profile Feature

Posted: Wed May 11, 2005 10:54 am
by garvinhicking
Hi Rahul!

Ah, true. I fixed the display part in 0.4. But I could not reproduce your overwrite bug! I also don't see in the code how this could happen.

If it still happens, can you please make screenshots and mark which button you clicked to get to the next screenshot?

Regards,
Garvin

Personal Profile Feature

Posted: Wed May 11, 2005 2:06 pm
by rahulmunjal
Please refer these Images:

Image
http://img.photobucket.com/albums/v670/spy143/0.jpg

Image
http://img.photobucket.com/albums/v670/spy143/2.jpg

Image
http://img.photobucket.com/albums/v670/spy143/3.jpg

Image
http://img.photobucket.com/albums/v670/spy143/4.jpg

Image
http://img.photobucket.com/albums/v670/spy143/5.jpg

Please tell me if you got the problem. It's in alternate versions. I mean... in version 1, this was happening. Then in version 2, it's fine (not happening) but in version 3 again the above scenario is happening.

Regards,
Rahul