PDA

View Full Version : need clickable text user email link


btappan
12-01-2004, 04:55 PM
i am using this in my postbit:

<if condition="$bbuserinfo[userid]">
<if condition="$post[email]">$post[email]</if>
<else /></if>

this displays the poster's email address. Is there anyway to make this into a clickable mailto: link that is just text (no buton background)?

Thanks

btappan
12-01-2004, 10:48 PM
i got it:

<if condition="$bbuserinfo[userid]">
<if condition="$post[email]"><a href="mailto:$post[email]"><span class="smallfont">$post[email]</span></a></if>
<else /></if>

Andreas
12-01-2004, 11:11 PM
For privacy and spam reasons i'd strongly recommend NOT to show email-adresses.

btappan
12-02-2004, 12:12 AM
my site is a paid subscription site and the address only shows to registered users, I'm confident this will ensure that email addresses don't show up in the wrong hands. Also I modified it further so that if the user chooses not to recieve email from other members, the address will not be shown.

<if condition="$show['emaillink']">
<if condition="$bbuserinfo[userid]">
<if condition="$post[email]"><a href="mailto:$post[email]"><span class="smallfont">$post[email]</span></a></if>
<else /></if>
<else /></if>