Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
comment name/web solutions?
Anybody have any brilliant solutions for covering a lot of issues with comment name linked as a website when the web field is filled and only a name when no web field is filled? What about if someone forgets the http://, etc?
I’ve been using this basic version, but I get too many errors, and its not flex enough.
<a href="<txp:comment_web>"><txp:comment_name /></a>
matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#2 2007-04-08 18:01:13
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: comment name/web solutions?
You could simply use <txp:comment_name link="1" />
and use the the preference to never display email addresses. It looks after missing http://
.
Alternatively, you could use the chh_if_data pluin.
Offline
Re: comment name/web solutions?
ahh, didn’t know you could do that. its not listed in the wiki as having any attributes, could be added :) thx.
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Pages: 1