Hi there. I'm using the Profile pictures module on my drupal 6.16. I lurve this module.
But, how can i NOT display the Category, ( eg. My Pet Photo ) i've created if user do not upload any photo?

As of now, whenever i view my Profile, i can see the category, ( eg. My Pet Photo ), although no photo is uploaded.

Thankz in advance.

---

Radin@R-Man
Webmaster/Founder
http://www.SFOGSzeRo.com

Comments

yeputons’s picture

Status: Active » Needs work

Quick fix:
change in profile_pictures.module line

if (!$acc->{$field->name}) continue;

to

if (empty($acc->{$field->name})) continue;

It and other bug fixes will be commited in CVS soon to pass community's review.

yeputons’s picture

Status: Needs work » Fixed

Fixed in beta1

R-Man’s picture

Thanx for the fast respon. But there's still a problem.

The "Title" of the photo is gone but the "Category" still there when no photo is uploaded.

R-Man’s picture

Oh... another neat feature you can add is maybe the display extra photo can be click and a bigger photo (popup) can be viewed.

yeputons’s picture

StatusFileSize
new809 bytes

Patch for an other issue. My mistake. Correct patch is in the next comment

yeputons’s picture

StatusFileSize
new1.09 KB

Correct patch

R-Man’s picture

Hmm...sorry to ask...but i'm no good in patching module.
Can post the complete correct module?
Thanx...

yeputons’s picture

StatusFileSize
new8.47 KB

It's easy to do it without software. Just open the patch, open the file specified in the first line, remove lines with "-" and add lines with "+".
Complete file (beta1) is attached

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.