Squidster in IRC mentioned wanting to be able to put fields from profile.module on the main accounts page. I had a few ideas... Here's one of them.
Note -- Table alter is needed, haven't bothered to write the update blurb yet, so here's a mysql query.
ALTER TABLE profile_fields ADD COLUMN onfront TINYINT(1) NOT NULL DEFAULT 0;
(This patch is against DRUPAL-4-7 for reason of the person requesting said feature runs it, obviously will reroll against a more bleeding edge branch sometime... ;)
This version is not core-worthy, but aspires to be someday ;)
--Brandon
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | profile.module_31.patch | 4.63 KB | bdragon |
| #1 | profile.module-accountpage_0.patch | 5.25 KB | bdragon |
| profile.module-accountpage.patch | 5.25 KB | bdragon |
Comments
Comment #1
bdragon commentedI missed part of the INSERT query.
Comment #2
Squidgy commentedAwesome dude - thanks so much again for building this!
For those who're curious, here's a pair of screenies of the results of this patch.
Edit User Page
Edit profile field
Oh, and by the way, is this really for 6.x...? =P
Comment #3
simevery nice
Comment #4
neofactor commentedThis should be CORE now... not ver 6!
I would also like to see either a module or a hack to do the following: On the top of user account, a message from the admin could appear letting users know that there are new profile fields that need filling out. They could be forced to fill it out before moving on.
Thoughts?
Comment #5
neofactor commentedCheck this out: http://drupal.org/node/35728
MyPage like user account page.
Comment #6
bdragon commentedPlease read the note right under the Title field next time. :-|
(fixing title)
Comment #7
mvcThanks, this patch is great. Just one small point: it's "separate" not "seperate".
Comment #8
aerowalk commentedJust found a bug on this patch
This patch will save profile values in user->data
Thus, making profile searching (eg. search user by country, or first name, etc) become misserable @_@
Comment #9
aerowalk commentedI've just created a fix
put this code in user_save (in user.module), just before return $user;
so far it works for me... =/
Comment #10
MattKelly commentedHas anyone else given this patch by aerowalk, combined with bdragon's, a test?
Comment #11
bdragon commentedAttaching this so I don't lose it.
My original patch rerolled aginst DRUPAL-5 (can't remember how recent...). Still has the typo and all that, but should be easier to apply to a Drupal 5 site now.
Comment #12
MattKelly commentedThis works great; is there any way we can get this into core?
Comment #13
beginner commentedComment #14
walker2238 commentedhey I used this patch for version 5.7 but funny thing is that when I add the guestbook module to my profiles page the custom profile fields entered by the user become blank after the user clicks on the delete message link from the guestbook module.
Comment #15
damien tournoud commentedThe profile module is obsolete. Won't fix.