bk, i was able to take a user provided url from my form and make the users’ names create a link to that url if one was supplied.
Sorry to hijack bkvernst’s thread, but you posted exactly what I’ve been looking for quite some time, wtdtan. I was looking for a way to link a provided url in the user name, or the email address in its absence. You code worked like a charm, but I can’t figure out how to replace it with the email address when the url field is left blank. As it is now, it displays the url of the article being read.
Example.
After applying your code to my template it looks like this
[+comment.custom.url:if=`[+comment.custom.url+]`:isnt=`0`:then=`<a href="[+comment.custom.url+]" title="[+comment.custom.url+]" target=blank>`+][+comment.createdby:isnt=`0`:then=`<b>`+][+comment.createdby:userinfo=`username`:ifempty=`[+comment.custom.name:ifempty=`[+jot.guestname+]`:esc+]`+][+comment.createdby:isnt=`0`:then=`</b>`+][+comment.custom.url:if=`[+comment.custom.url+]`:isnt=`0`:then=`</a>`+]
I’ve tried with ":else", or ":is`0`:then=" to add this
`<a href=mailto:[+comment.custom.email+] title="Email: [+comment.custom.email+]" target=blank>`
but since I’m not really familiar with the syntaxis, at best I get both displayed with jumbled code, when I really want the email address if there isn’t a url available.
Any help is appreciated.
Thanks
--Kurenai