Profile.module's css is no longer loaded when viewing profiles. This was due to the css conditional loading patch - http://drupal.org/node/100563 (see revisions http://cvs.drupal.org/viewcvs/drupal/drupal/modules/profile/profile.modu... and http://cvs.drupal.org/viewcvs/drupal/drupal/modules/profile/profile.modu... to profile.module).
Patch reinstates profile.css when viewing profiles.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | user_css_comment.patch.txt | 513 bytes | dww |
| #6 | profile_css.patch_2.txt | 1.35 KB | dww |
| #3 | profile_css.patch_1.txt | 846 bytes | dww |
| #2 | profile_css.patch.txt | 929 bytes | ChrisKennedy |
Comments
Comment #1
dwwwhere's the patch? ;)
Comment #2
ChrisKennedy commentedBah
Comment #3
dwwyup, that works. the only problem is that core still displays your "profile" even without the profile.module enabled. in that case, we're also not loading the profile.css, so you get the default
<dt>stuff (no bold, indented info). maybe we should include profile.css in user_menu() when we know we're looking at a user page? something like the attached patch?Comment #4
ChrisKennedy commentedAh good point, I didn't think about that case. Updated patch works even with profile.module disabled.
Comment #5
dries commentedThat last patch doesn't cut it for me. It hardcodes a dependency between user.module and profile.module. If user module needs something that should be available when profile.module is disabled, that should be part of user.css not profile.css.
Comment #6
dwwgood point. ;) after further consideration (and a brief discussion in #drupal on IRC), here's what i've come up with:
this patch does that. we just move all the contents from profile.css into user.css, remove the part of profile.module that's including profile.css, and we're done. it's hard to roll a core patch that removes a file, so to actually apply this patch correctly, you need to:
thanks,
-derek
Comment #7
ChrisKennedy commentedEven better.
Comment #8
dries commentedCommitted to CVS HEAD. Thanks.
Comment #9
dwwwhoops, "//" isn't a valid .css comment. thanks to merlin for pointing it out.
Comment #10
dries commentedCommitted to CVS HEAD. Thanks.
Comment #11
(not verified) commented