Developer forum

Forum » Templates » Userimages in Forum module

Userimages in Forum module


Reply
Hi,

I am trying to add userimages to the Forum module, like this forum. I have figured out that the the users images are named after the userid så displaying an image in the thread is no problem.

But how can i check if a user has an image or not and display mayby a default image?

Regards / Aki

Replies

 
Reply
Hi Aki

How about like this:

<a href="link_to_user" style="background: url('url_to_default_image')">
  <img src="x.gif"style=" background: url('url_to_user_image')" alt="" border="" />
</a>

// Sebastian
 
Reply
Looks like something that should work. :)


Thanks.

/Aki

 
Reply
Hi Sebastian,

Is there a way to control the file name?
I can see that in it uses the user ID but in my solution is setting "User_000".

Nuno

 

You must be logged in to post in the forum