Frontend User Directory image and pretty url questions

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
marisafal
Forum Members
Forum Members
Posts: 29
Joined: Thu Mar 20, 2008 9:04 pm

Frontend User Directory image and pretty url questions

Post by marisafal »

Hi there,
I have two questions regarding the UserDirectory module.  I have very limited php/smarty knowledge, so please bear with me.

1. I have on both my summary and detail template a profile image to display if one is uploaded.  Ideally, I'd like to set it so that if there is no image uploaded, then nothing appears.  What's happening is that the image doesn't display, but my 1px border, padding and margin I set for the img does still appear.  It looks as if it's trying to place the style around a 1px wide 30px high blank image.  See attached image.  This is the code that I'm wrapping the image in on the summary page:

Code: Select all

{if $entry.properties.profile_photo != ""}
<div class="avatar"><img src="{$entry.properties.profile_photo}" /></div>
{/if}
I use the same code code elsewhere and it hides the section I want to hide just fine.  But it doesn't seem to work here.  The default code had something that looks like this for the "if" statement:

Code: Select all

{if isset($entry.properties.profile_photo)}
but that didn't work for hiding empty fields (or the image).

I was going to nix trying to figure it out because I saw that I can use a default image (notfound.jpg) in the options tab, but alas when I upload an image with that name that doesn't seem to be working either.

Could anyone point me in the right direction?


2. Is there a way I can set the module to display pretty urls? 


I am running 1.41 Spring Garden
UserDirectory 1.0

Thank you!
Attachments
userdirectory.jpg
userdirectory.jpg (4.99 KiB) Viewed 627 times
marisafal
Forum Members
Forum Members
Posts: 29
Joined: Thu Mar 20, 2008 9:04 pm

Re: Frontend User Directory image and pretty url questions

Post by marisafal »

Might anyone be able to help me?  :D
Post Reply

Return to “Modules/Add-Ons”