Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

How asociate a image with user_title ?

Quote Reply
How asociate a image with user_title ?
<%if user_title = guest%>
<img src="<%image_url%>/fire.gif" width="15" height="15">
<%endif%>

This is not working... can anyone help me to find a code that work if i want asociate a image with the <%user_title%> variable? I'm thinking set 7 images for each user title in my forum.

Thanx in Advance.




http://www.webconferencia.net/
Quote Reply
Re: [acidoinmetal] How asociate a image with user_title ? In reply to
I think you can try:

<%if user_title eq 'Novice'%>
<img src="<%image_url%>/Novice.gif" width="15" height="15">
<%endif%>
Quote Reply
Re: [backdream] How asociate a image with user_title ? In reply to
Your code works perfeclty Smile

BIG thanx Backdream! Wink




http://www.webconferencia.net/
Quote Reply
Re: [acidoinmetal] How asociate a image with user_title ? In reply to
The user_title values themselves can contain HTML, as long as it as all on one line. So, you would enter something like:

0 => <img src="/pics/new_user.gif">New User
5 => <img src="/pics/novice.gif">Novice
50 => <img src="/pics/user.gif">User

... and so on.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] How asociate a image with user_title ? In reply to
Cool!!!!!!! It's a excellent way for do that. Is so simple as include the html code with the correct path to the image (here the tag <%image_url%> doesn't work).

Thanx Jason Wink




http://www.webconferencia.net/