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.

Comments

dww’s picture

Status: Needs review » Active

where's the patch? ;)

ChrisKennedy’s picture

Status: Active » Needs review
StatusFileSize
new929 bytes

Bah

dww’s picture

StatusFileSize
new846 bytes

yup, 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?

ChrisKennedy’s picture

Status: Needs review » Reviewed & tested by the community

Ah good point, I didn't think about that case. Updated patch works even with profile.module disabled.

dries’s picture

Status: Reviewed & tested by the community » Needs work

That 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.

dww’s picture

Assigned: Unassigned » dww
Status: Needs work » Needs review
StatusFileSize
new1.35 KB

good point. ;) after further consideration (and a brief discussion in #drupal on IRC), here's what i've come up with:

  1. profile.css is totally wrong. it shouldn't exist at all. everything in there is used by user.module.
  2. better to leave all the class names as "profile", even if it's from user.module, so we don't break existing themes needlessly. plus, it really is your profile, so it doesn't seem crazy.

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:

% rm modules/profile/profile.css
% cvs rm modules/profile/profile.css
% patch -p0 < profile_css.patch_2.txt 

thanks,
-derek

ChrisKennedy’s picture

Status: Needs review » Reviewed & tested by the community

Even better.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

dww’s picture

Status: Fixed » Reviewed & tested by the community
StatusFileSize
new513 bytes

whoops, "//" isn't a valid .css comment. thanks to merlin for pointing it out.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)